Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/bossa-1.9.1/src/Applet.cpp
Examining data/bossa-1.9.1/src/Applet.h
Examining data/bossa-1.9.1/src/BSDPortFactory.cpp
Examining data/bossa-1.9.1/src/BSDPortFactory.h
Examining data/bossa-1.9.1/src/BossaAbout.cpp
Examining data/bossa-1.9.1/src/BossaAbout.h
Examining data/bossa-1.9.1/src/BossaApp.cpp
Examining data/bossa-1.9.1/src/BossaApp.h
Examining data/bossa-1.9.1/src/BossaBitmaps.cpp
Examining data/bossa-1.9.1/src/BossaBitmaps.h
Examining data/bossa-1.9.1/src/BossaForm.cpp
Examining data/bossa-1.9.1/src/BossaForm.h
Examining data/bossa-1.9.1/src/BossaIcon.cpp
Examining data/bossa-1.9.1/src/BossaInfo.cpp
Examining data/bossa-1.9.1/src/BossaInfo.h
Examining data/bossa-1.9.1/src/BossaLogo.cpp
Examining data/bossa-1.9.1/src/BossaProgress.cpp
Examining data/bossa-1.9.1/src/BossaProgress.h
Examining data/bossa-1.9.1/src/BossaThread.cpp
Examining data/bossa-1.9.1/src/BossaThread.h
Examining data/bossa-1.9.1/src/BossaWindow.cpp
Examining data/bossa-1.9.1/src/BossaWindow.h
Examining data/bossa-1.9.1/src/CmdOpts.cpp
Examining data/bossa-1.9.1/src/CmdOpts.h
Examining data/bossa-1.9.1/src/Command.cpp
Examining data/bossa-1.9.1/src/Command.h
Examining data/bossa-1.9.1/src/D2xNvmFlash.cpp
Examining data/bossa-1.9.1/src/D2xNvmFlash.h
Examining data/bossa-1.9.1/src/D5xNvmFlash.cpp
Examining data/bossa-1.9.1/src/D5xNvmFlash.h
Examining data/bossa-1.9.1/src/Device.cpp
Examining data/bossa-1.9.1/src/Device.h
Examining data/bossa-1.9.1/src/Driver.h
Examining data/bossa-1.9.1/src/EefcFlash.cpp
Examining data/bossa-1.9.1/src/EefcFlash.h
Examining data/bossa-1.9.1/src/EfcFlash.cpp
Examining data/bossa-1.9.1/src/EfcFlash.h
Examining data/bossa-1.9.1/src/FileError.h
Examining data/bossa-1.9.1/src/Flash.cpp
Examining data/bossa-1.9.1/src/Flash.h
Examining data/bossa-1.9.1/src/Flasher.cpp
Examining data/bossa-1.9.1/src/Flasher.h
Examining data/bossa-1.9.1/src/LinuxPortFactory.cpp
Examining data/bossa-1.9.1/src/LinuxPortFactory.h
Examining data/bossa-1.9.1/src/OSXPortFactory.cpp
Examining data/bossa-1.9.1/src/OSXPortFactory.h
Examining data/bossa-1.9.1/src/PosixSerialPort.cpp
Examining data/bossa-1.9.1/src/PosixSerialPort.h
Examining data/bossa-1.9.1/src/Samba.cpp
Examining data/bossa-1.9.1/src/Samba.h
Examining data/bossa-1.9.1/src/SerialPort.h
Examining data/bossa-1.9.1/src/Shell.cpp
Examining data/bossa-1.9.1/src/Shell.h
Examining data/bossa-1.9.1/src/ShumaTechLogo.cpp
Examining data/bossa-1.9.1/src/WinPortFactory.cpp
Examining data/bossa-1.9.1/src/WinPortFactory.h
Examining data/bossa-1.9.1/src/WinSerialPort.cpp
Examining data/bossa-1.9.1/src/WinSerialPort.h
Examining data/bossa-1.9.1/src/WordCopyApplet.cpp
Examining data/bossa-1.9.1/src/WordCopyApplet.h
Examining data/bossa-1.9.1/src/WordCopyArm.cpp
Examining data/bossa-1.9.1/src/WordCopyArm.h
Examining data/bossa-1.9.1/src/bossac.cpp
Examining data/bossa-1.9.1/src/bossash.cpp
Examining data/bossa-1.9.1/src/FreeBSDPortFactory.cpp
Examining data/bossa-1.9.1/src/FreeBSDPortFactory.h
Examining data/bossa-1.9.1/src/PortFactory.h

FINAL RESULTS:

data/bossa-1.9.1/src/BossaWindow.cpp:329:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(_filePicker->GetPath().mb_str(), F_OK))
data/bossa-1.9.1/src/BossaWindow.cpp:391:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(_filePicker->GetPath().mb_str(), F_OK))
data/bossa-1.9.1/src/BossaWindow.cpp:427:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(_filePicker->GetPath().mb_str(), F_OK))
data/bossa-1.9.1/src/Command.cpp:65:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(message, ap);
data/bossa-1.9.1/src/Command.cpp:102:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/bossa-1.9.1/src/bossac.cpp:126:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(message, ap);
data/bossa-1.9.1/src/CmdOpts.cpp:121:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((rc = getopt_long(_argc, _argv, optstring, long_opts, &optIdx)) != -1)
data/bossa-1.9.1/src/WinPortFactory.cpp:116:15:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    _cfgMgr = LoadLibrary("cfgmgr32");
data/bossa-1.9.1/src/CmdOpts.cpp:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[40];
data/bossa-1.9.1/src/CmdOpts.cpp:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char optstring[_numOpts * 3 + 1];
data/bossa-1.9.1/src/Command.cpp:258:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[36];
data/bossa-1.9.1/src/Command.cpp:634:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile = fopen(argv[3], "wb");
data/bossa-1.9.1/src/Command.cpp:763:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile = fopen(argv[2], "rb");
data/bossa-1.9.1/src/Flasher.cpp:94:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile = fopen(filename, "rb");
data/bossa-1.9.1/src/Flasher.cpp:186:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile = fopen(filename, "rb");
data/bossa-1.9.1/src/Flasher.cpp:288:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile = fopen(filename, "wb");
data/bossa-1.9.1/src/PosixSerialPort.cpp:62:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
PosixSerialPort::open(int baud,
data/bossa-1.9.1/src/PosixSerialPort.cpp:71:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    _devfd = ::open(_name.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
data/bossa-1.9.1/src/PosixSerialPort.cpp:76:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        _devfd = ::open(dev.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
data/bossa-1.9.1/src/PosixSerialPort.h:40:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(int baud = 115200,
data/bossa-1.9.1/src/Samba.cpp:150:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (_port->open(921600) && init())
data/bossa-1.9.1/src/Samba.cpp:164:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (_port->open(bps) && init())
data/bossa-1.9.1/src/SerialPort.h:56:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open(int baud = 115200,
data/bossa-1.9.1/src/WinPortFactory.cpp:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szNtDeviceName[MAX_PATH];
data/bossa-1.9.1/src/WinSerialPort.cpp:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100];
data/bossa-1.9.1/src/WinSerialPort.cpp:73:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
WinSerialPort::open(int baud, int data, SerialPort::Parity parity, SerialPort::StopBit stop)
data/bossa-1.9.1/src/WinSerialPort.h:43:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(int baud = 115200,
data/bossa-1.9.1/src/bossac.cpp:361:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if(!port->open(1200))
data/bossa-1.9.1/src/bossash.cpp:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *tokv[5];
data/bossa-1.9.1/src/BossaThread.cpp:215:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        flasher.read(_filename.mb_str(), _size, _offset);
data/bossa-1.9.1/src/Command.cpp:149:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(arg);
data/bossa-1.9.1/src/Command.cpp:163:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(arg);
data/bossa-1.9.1/src/Command.cpp:429:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _samba.read(addr, buf.get(), count);
data/bossa-1.9.1/src/Command.cpp:643:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _samba.read(addr, buf, fbytes);
data/bossa-1.9.1/src/Command.cpp:870:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(argv[1]) < 2 ||
data/bossa-1.9.1/src/Command.cpp:962:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(argv[2]);
data/bossa-1.9.1/src/Command.cpp:1121:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _flasher.read(argv[1], count, offset);
data/bossa-1.9.1/src/D2xNvmFlash.cpp:178:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _samba.read(NVM_UR_ADDR, userRow.get(), NVM_UR_SIZE);
data/bossa-1.9.1/src/D2xNvmFlash.cpp:207:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal(_regions.get().begin(), _regions.get().end(), current.begin()))
data/bossa-1.9.1/src/D2xNvmFlash.cpp:306:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _samba.read(_addr + (page * _size), buf, _size);
data/bossa-1.9.1/src/D5xNvmFlash.cpp:172:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _samba.read(NVM_UP_ADDR, userPage.get(), NVM_UP_SIZE);
data/bossa-1.9.1/src/D5xNvmFlash.cpp:201:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal(_regions.get().begin(), _regions.get().end(), current.begin()))
data/bossa-1.9.1/src/D5xNvmFlash.cpp:297:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _samba.read(_addr + (page * _size), buf, _size);
data/bossa-1.9.1/src/EefcFlash.cpp:307:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _samba.read(_onBufferA ? _pageBufferA : _pageBufferB, data, _size);
data/bossa-1.9.1/src/EefcFlash.cpp:335:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000);
data/bossa-1.9.1/src/EfcFlash.cpp:239:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _samba.read(_addr + page * _size, data, _size);
data/bossa-1.9.1/src/EfcFlash.cpp:267:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000);
data/bossa-1.9.1/src/Flasher.cpp:266:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Flasher::read(const char* filename, uint32_t fsize, uint32_t foffset)
data/bossa-1.9.1/src/Flasher.h:100:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(const char* filename, uint32_t fsize, uint32_t foffset = 0);
data/bossa-1.9.1/src/PosixSerialPort.cpp:214:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
PosixSerialPort::read(uint8_t* buffer, int len)
data/bossa-1.9.1/src/PosixSerialPort.cpp:244:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            retval = ::read(_devfd, (uint8_t*) buffer + numread, len - numread);
data/bossa-1.9.1/src/PosixSerialPort.cpp:275:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(&byte, 1) != 1)
data/bossa-1.9.1/src/PosixSerialPort.cpp:296:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000);
data/bossa-1.9.1/src/PosixSerialPort.h:48:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(uint8_t* data, int size);
data/bossa-1.9.1/src/Samba.cpp:80:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _port->read(dummy, sizeof(dummy));
data/bossa-1.9.1/src/Samba.cpp:93:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _port->read(cmd, 3);
data/bossa-1.9.1/src/Samba.cpp:102:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _port->read(cmd, 2);
data/bossa-1.9.1/src/Samba.cpp:213:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (_port->read(cmd, sizeof(uint8_t)) != sizeof(uint8_t))
data/bossa-1.9.1/src/Samba.cpp:257:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (_port->read(cmd, sizeof(uint32_t)) != sizeof(uint32_t))
data/bossa-1.9.1/src/Samba.cpp:352:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bytes = _port->read(blk, sizeof(blk));
data/bossa-1.9.1/src/Samba.cpp:443:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (_port->read(buffer, size) != size)
data/bossa-1.9.1/src/Samba.cpp:461:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Samba::read(uint32_t addr, uint8_t* buffer, int size)
data/bossa-1.9.1/src/Samba.cpp:564:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size = _port->read(cmd, sizeof(cmd) - 1);
data/bossa-1.9.1/src/Samba.cpp:600:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _port->read(cmd, 3); // Expects "X\n\r"
data/bossa-1.9.1/src/Samba.cpp:624:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _port->read(cmd, 3); // Expects "Y\n\r"
data/bossa-1.9.1/src/Samba.cpp:634:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _port->read(cmd, 3); // Expects "Y\n\r"
data/bossa-1.9.1/src/Samba.cpp:658:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _port->read(cmd, 12); // Expects "Z00000000#\n\r"
data/bossa-1.9.1/src/Samba.h:65:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(uint32_t addr, uint8_t* buffer, int size);
data/bossa-1.9.1/src/SerialPort.h:64:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int read(uint8_t* data, int size) = 0;
data/bossa-1.9.1/src/Shell.cpp:91:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(name);
data/bossa-1.9.1/src/WinSerialPort.cpp:177:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
WinSerialPort::read(uint8_t* data, int size)
data/bossa-1.9.1/src/WinSerialPort.h:51:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(uint8_t* data, int size);
data/bossa-1.9.1/src/bossac.cpp:53:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read;
data/bossa-1.9.1/src/bossac.cpp:172:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      'r', "read", &config.read,
data/bossa-1.9.1/src/bossac.cpp:306:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (config.read && (config.write || config.verify))
data/bossa-1.9.1/src/bossac.cpp:312:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (config.read || config.write || config.verify)
data/bossa-1.9.1/src/bossac.cpp:437:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (config.read)
data/bossa-1.9.1/src/bossac.cpp:440:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            flasher.read(argv[args], config.readArg, config.offsetArg);

ANALYSIS SUMMARY:

Hits = 78
Lines analyzed = 13987 in approximately 0.56 seconds (24786 lines/second)
Physical Source Lines of Code (SLOC) = 10474
Hits@level = [0] 154 [1]  49 [2]  21 [3]   2 [4]   6 [5]   0
Hits@level+ = [0+] 232 [1+]  78 [2+]  29 [3+]   8 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 22.1501 [1+] 7.44701 [2+] 2.76876 [3+] 0.763796 [4+] 0.572847 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.