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/mfgtools-1.4.43/libuuu/backfile.h Examining data/mfgtools-1.4.43/libuuu/buffer.cpp Examining data/mfgtools-1.4.43/libuuu/buffer.h Examining data/mfgtools-1.4.43/libuuu/cmd.cpp Examining data/mfgtools-1.4.43/libuuu/cmd.h Examining data/mfgtools-1.4.43/libuuu/config.cpp Examining data/mfgtools-1.4.43/libuuu/config.h Examining data/mfgtools-1.4.43/libuuu/error.cpp Examining data/mfgtools-1.4.43/libuuu/fastboot.cpp Examining data/mfgtools-1.4.43/libuuu/fastboot.h Examining data/mfgtools-1.4.43/libuuu/fat.cpp Examining data/mfgtools-1.4.43/libuuu/fat.h Examining data/mfgtools-1.4.43/libuuu/ffu_format.h Examining data/mfgtools-1.4.43/libuuu/hidreport.cpp Examining data/mfgtools-1.4.43/libuuu/hidreport.h Examining data/mfgtools-1.4.43/libuuu/http.cpp Examining data/mfgtools-1.4.43/libuuu/http.h Examining data/mfgtools-1.4.43/libuuu/libcomm.h Examining data/mfgtools-1.4.43/libuuu/liberror.h Examining data/mfgtools-1.4.43/libuuu/libuuu.h Examining data/mfgtools-1.4.43/libuuu/notify.cpp Examining data/mfgtools-1.4.43/libuuu/rominfo.cpp Examining data/mfgtools-1.4.43/libuuu/rominfo.h Examining data/mfgtools-1.4.43/libuuu/sdp.cpp Examining data/mfgtools-1.4.43/libuuu/sdp.h Examining data/mfgtools-1.4.43/libuuu/sdps.cpp Examining data/mfgtools-1.4.43/libuuu/sdps.h Examining data/mfgtools-1.4.43/libuuu/sparse.cpp Examining data/mfgtools-1.4.43/libuuu/sparse.h Examining data/mfgtools-1.4.43/libuuu/sparse_format.h Examining data/mfgtools-1.4.43/libuuu/tar.cpp Examining data/mfgtools-1.4.43/libuuu/tar.h Examining data/mfgtools-1.4.43/libuuu/trans.cpp Examining data/mfgtools-1.4.43/libuuu/trans.h Examining data/mfgtools-1.4.43/libuuu/usbhotplug.cpp Examining data/mfgtools-1.4.43/libuuu/version.cpp Examining data/mfgtools-1.4.43/libuuu/zip.cpp Examining data/mfgtools-1.4.43/libuuu/zip.h Examining data/mfgtools-1.4.43/uuu/buildincmd.cpp Examining data/mfgtools-1.4.43/uuu/buildincmd.h Examining data/mfgtools-1.4.43/uuu/uuu.cpp Examining data/mfgtools-1.4.43/uuu/autocomplete.cpp FINAL RESULTS: data/mfgtools-1.4.43/uuu/autocomplete.cpp:210:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. ssize_t count = readlink("/proc/self/exe", result, PATH_MAX); data/mfgtools-1.4.43/libuuu/cmd.cpp:621:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. #define _popen popen data/mfgtools-1.4.43/libuuu/fat.h:64:11: [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. uint16_t access; data/mfgtools-1.4.43/libuuu/libcomm.h:41:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define log printf data/mfgtools-1.4.43/libuuu/libcomm.h:42:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define dbg printf data/mfgtools-1.4.43/libuuu/libcomm.h:54:21: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size_t len = std::vsnprintf(nullptr, 0, fmt, args); data/mfgtools-1.4.43/libuuu/libcomm.h:60:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. std::vsnprintf((char*)c_str(), len+1, fmt, args); data/mfgtools-1.4.43/uuu/uuu.cpp:110:21: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size_t len = std::vsnprintf(NULL, 0, fmt, args); data/mfgtools-1.4.43/uuu/uuu.cpp:116:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. std::vsnprintf((char*)c_str(), len + 1, fmt, args); data/mfgtools-1.4.43/libuuu/cmd.cpp:708:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. auto ptr = getenv(key.c_str()); data/mfgtools-1.4.43/libuuu/buffer.cpp:774:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->data() + one.decompress_offset, buff.data(), one.actual_size); data/mfgtools-1.4.43/libuuu/buffer.cpp:1220:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_pDatabuffer, p, sz); data/mfgtools-1.4.43/libuuu/buffer.cpp:1297:12: [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). int fd = open(filename.c_str(), O_RDONLY); data/mfgtools-1.4.43/libuuu/buffer.cpp:1428:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data.data(), this->data() + offset, size); data/mfgtools-1.4.43/libuuu/fastboot.cpp:56:2: [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 buff[65]; data/mfgtools-1.4.43/libuuu/fastboot.cpp:131: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:175: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:193: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:210: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:227: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:311: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:404:6: [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). of.open(localfile, ofstream::binary); data/mfgtools-1.4.43/libuuu/fastboot.cpp:586: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/fat.cpp:178:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->data() + off, pcluster, sz); data/mfgtools-1.4.43/libuuu/hidreport.cpp:83:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_out_buff.data() + m_size_payload, buff + off, s); data/mfgtools-1.4.43/libuuu/http.cpp:261:2: [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 s_port[10]; data/mfgtools-1.4.43/libuuu/http.cpp:367:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)str.c_str(), m_buff.data(), i + 2); data/mfgtools-1.4.43/libuuu/http.cpp:428:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buff, m_buff.data() + m_data_start, trim_transfered); data/mfgtools-1.4.43/libuuu/sdp.cpp:179: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:203: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:273: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:394: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:449: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:515: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:575: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdp.cpp:627:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ivt.data(), pIVT, sz); data/mfgtools-1.4.43/libuuu/sdp.cpp:655: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). if (dev.open(ctx->m_dev)) data/mfgtools-1.4.43/libuuu/sdps.cpp:98:9: [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(dev.open(pro->m_dev)) data/mfgtools-1.4.43/libuuu/sparse.cpp:121:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_data.data() + pos, p, sz); data/mfgtools-1.4.43/libuuu/tar.cpp:51:2: [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 end_of_file_blocks[2*TAR_BLOCK_SIZE]; data/mfgtools-1.4.43/libuuu/trans.cpp:58:15: [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). int USBTrans::open(void *p) data/mfgtools-1.4.43/libuuu/trans.cpp:105:15: [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). int HIDTrans::open(void *p) data/mfgtools-1.4.43/libuuu/trans.cpp:107: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 (USBTrans::open(p)) data/mfgtools-1.4.43/libuuu/trans.cpp:248: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). int BulkTrans::open(void *p) data/mfgtools-1.4.43/libuuu/trans.cpp:250: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 (USBTrans::open(p)) data/mfgtools-1.4.43/libuuu/trans.h:45:14: [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 int open(void *) { return 0; } data/mfgtools-1.4.43/libuuu/trans.h:68:6: [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). int open(void *p) override; data/mfgtools-1.4.43/libuuu/trans.h:80:6: [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). int open(void *p) override; data/mfgtools-1.4.43/libuuu/trans.h:97:6: [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). int open(void *p) override; data/mfgtools-1.4.43/uuu/autocomplete.cpp:208:3: [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 result[PATH_MAX]; data/mfgtools-1.4.43/uuu/autocomplete.cpp:224:3: [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 path[MAX_PATH]; data/mfgtools-1.4.43/libuuu/buffer.cpp:78:27: [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 (m_ext == nullptr || strlen(m_ext) == 0) data/mfgtools-1.4.43/libuuu/buffer.cpp:112:43: [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). *outbackfile = filename.substr(0, pos + strlen(m_ext)); data/mfgtools-1.4.43/libuuu/buffer.cpp:114:31: [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(filename.size() >= pos + strlen(m_ext) + 1) data/mfgtools-1.4.43/libuuu/buffer.cpp:115:41: [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). *outfilename = filename.substr(pos + strlen(m_ext) + 1); data/mfgtools-1.4.43/libuuu/buffer.cpp:236:25: [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 (filename.size() < strlen(m_Prefix)) data/mfgtools-1.4.43/libuuu/buffer.cpp:240:23: [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 (path.compare(1, strlen(m_Prefix), m_Prefix) == 0) data/mfgtools-1.4.43/libuuu/buffer.cpp:243:33: [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). pos = filename.find('/', 1 + strlen(m_Prefix)); data/mfgtools-1.4.43/libuuu/buffer.cpp:245:39: [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). *outbackfile = filename.substr(1 + strlen(m_Prefix), pos - 1 - strlen(m_Prefix)); data/mfgtools-1.4.43/libuuu/buffer.cpp:245:67: [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). *outbackfile = filename.substr(1 + strlen(m_Prefix), pos - 1 - strlen(m_Prefix)); data/mfgtools-1.4.43/libuuu/cmd.cpp:642: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). str.resize(strlen(str.c_str())); data/mfgtools-1.4.43/libuuu/cmd.cpp:879:55: [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). shared_ptr<FileBuffer> p(new FileBuffer((void*)buff, strlen(buff))); data/mfgtools-1.4.43/libuuu/cmd.cpp:905:22: [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 (str.substr(0, strlen(uuu_version)) == uuu_version) data/mfgtools-1.4.43/libuuu/cmd.cpp:907:34: [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 (check_version(str.substr(strlen(uuu_version), 10))) data/mfgtools-1.4.43/libuuu/fastboot.cpp:63:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (m_pTrans->read(buff, 64, &actual)) data/mfgtools-1.4.43/libuuu/fastboot.cpp:75:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (m_pTrans->read(input->data(), sz, &rz)) data/mfgtools-1.4.43/libuuu/hidreport.cpp:56:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int HIDReport::read(std::vector<uint8_t> &buff) data/mfgtools-1.4.43/libuuu/hidreport.cpp:64:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ret = m_pdev->read(buff.data(), m_size_in + m_size_payload, &rs); data/mfgtools-1.4.43/libuuu/hidreport.h:50:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(std::vector<uint8_t> &buff); data/mfgtools-1.4.43/libuuu/sdp.cpp:82:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ret = p->read(m_input); data/mfgtools-1.4.43/libuuu/sdp.cpp:669:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = report.read(v); data/mfgtools-1.4.43/libuuu/trans.cpp:48:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int TransBase::read(vector<uint8_t> &buff) data/mfgtools-1.4.43/libuuu/trans.cpp:51:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const auto ret = read(buff.data(), buff.size(), &size); data/mfgtools-1.4.43/libuuu/trans.cpp:161:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int HIDTrans::read(void *buff, size_t size, size_t *rsize) data/mfgtools-1.4.43/libuuu/trans.cpp:265:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int BulkTrans::read(void *buff, size_t size, size_t *rsize) data/mfgtools-1.4.43/libuuu/trans.h:48:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(void *buff, size_t size, size_t *return_size) = 0; data/mfgtools-1.4.43/libuuu/trans.h:50:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(std::vector<uint8_t> &buff); data/mfgtools-1.4.43/libuuu/trans.h:83:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(void *buff, size_t size, size_t *return_size) override; data/mfgtools-1.4.43/libuuu/trans.h:99:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(void *buff, size_t size, size_t *return_size) override; data/mfgtools-1.4.43/uuu/uuu.cpp:192:6: [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(chip) >= 7) data/mfgtools-1.4.43/uuu/uuu.cpp:262:34: [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). str.insert(start + per.size() + strlen(g_vt_yellow), g_vt_default); data/mfgtools-1.4.43/uuu/uuu.cpp:500:21: [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). str.insert(1 + strlen(g_vt_red) + err.size(), g_vt_default); data/mfgtools-1.4.43/uuu/uuu.cpp:506:21: [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). str.insert(1 + strlen(g_vt_green) + strlen("Done"), g_vt_default); data/mfgtools-1.4.43/uuu/uuu.cpp:506:42: [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). str.insert(1 + strlen(g_vt_green) + strlen("Done"), g_vt_default); ANALYSIS SUMMARY: Hits = 84 Lines analyzed = 10962 in approximately 0.28 seconds (38986 lines/second) Physical Source Lines of Code (SLOC) = 7948 Hits@level = [0] 58 [1] 33 [2] 41 [3] 1 [4] 8 [5] 1 Hits@level+ = [0+] 142 [1+] 84 [2+] 51 [3+] 10 [4+] 9 [5+] 1 Hits/KSLOC@level+ = [0+] 17.8661 [1+] 10.5687 [2+] 6.41671 [3+] 1.25818 [4+] 1.13236 [5+] 0.125818 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.