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/spew-1.0.8/src/TimeHack.h Examining data/spew-1.0.8/src/TransferInfoList.h Examining data/spew-1.0.8/src/TransferInfoList.cpp Examining data/spew-1.0.8/src/TimeHack.cpp Examining data/spew-1.0.8/src/NumbersTransfer.cpp Examining data/spew-1.0.8/src/SequentialTransferInfoList.h Examining data/spew-1.0.8/src/common.h Examining data/spew-1.0.8/src/TransferInfo.cpp Examining data/spew-1.0.8/src/TransferInfoListFactory.h Examining data/spew-1.0.8/src/WriteJob.h Examining data/spew-1.0.8/src/SpewTuiWindow.cpp Examining data/spew-1.0.8/src/GarbageTransfer.cpp Examining data/spew-1.0.8/src/SpewTuiStatisticsWindow.h Examining data/spew-1.0.8/src/SpewDisplay.h Examining data/spew-1.0.8/src/Tui.cpp Examining data/spew-1.0.8/src/ReadJob.h Examining data/spew-1.0.8/src/SequentialTransferInfoList.cpp Examining data/spew-1.0.8/src/SpewTuiWindow.h Examining data/spew-1.0.8/src/Transfer.cpp Examining data/spew-1.0.8/src/SpewTuiProgressWindow.h Examining data/spew-1.0.8/src/SpewTui.cpp Examining data/spew-1.0.8/src/SpewTuiHelpWindow.cpp Examining data/spew-1.0.8/src/spew.cpp Examining data/spew-1.0.8/src/RandomTransferInfoList.h Examining data/spew-1.0.8/src/NumbersTransfer.h Examining data/spew-1.0.8/src/BytePatternTransfer.h Examining data/spew-1.0.8/src/SpewTuiStatusWindow.cpp Examining data/spew-1.0.8/src/Tui.h Examining data/spew-1.0.8/src/BytePatternTransfer.cpp Examining data/spew-1.0.8/src/RandomTransferInfoList.cpp Examining data/spew-1.0.8/src/Log.cpp Examining data/spew-1.0.8/src/RandomTransfer.h Examining data/spew-1.0.8/src/Random.h Examining data/spew-1.0.8/src/SpewTuiProgressWindow.cpp Examining data/spew-1.0.8/src/Log.h Examining data/spew-1.0.8/src/TransferInfoListFactory.cpp Examining data/spew-1.0.8/src/TransferFactory.h Examining data/spew-1.0.8/src/TransferFactory.cpp Examining data/spew-1.0.8/src/Job.cpp Examining data/spew-1.0.8/src/SpewTuiStatusWindow.h Examining data/spew-1.0.8/src/Job.h Examining data/spew-1.0.8/src/GarbageTransfer.h Examining data/spew-1.0.8/src/Transfer.h Examining data/spew-1.0.8/src/SpewTuiHelpWindow.h Examining data/spew-1.0.8/src/ReadJob.cpp Examining data/spew-1.0.8/src/Random.cpp Examining data/spew-1.0.8/src/SpewConsole.h Examining data/spew-1.0.8/src/SpewConsole.cpp Examining data/spew-1.0.8/src/WriteJob.cpp Examining data/spew-1.0.8/src/SpewTui.h Examining data/spew-1.0.8/src/TransferInfo.h Examining data/spew-1.0.8/src/SpewTuiStatisticsWindow.cpp Examining data/spew-1.0.8/src/RandomTransfer.cpp Examining data/spew-1.0.8/src/common.cpp Examining data/spew-1.0.8/src/SpewDisplay.cpp FINAL RESULTS: data/spew-1.0.8/src/Log.cpp:99:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mDisplayStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:101:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mDisplayStderrFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:103:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:105:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStderrFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:137:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mDisplayStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:139:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mDisplayStderrFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:141:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:143:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStderrFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:163:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mDisplayStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:175:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mDisplayStderrFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:194:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:209:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStdoutFile, fmt, ap); data/spew-1.0.8/src/Log.cpp:223:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(mLogStderrFile, fmt, ap); data/spew-1.0.8/src/SpewTuiStatisticsWindow.cpp:281:17: [4] (format) snprintf: 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. int len = snprintf(NULL, 0, (char *)mTotalRunTime.getElapsedTimeStr().c_str()); data/spew-1.0.8/src/SpewTuiStatusWindow.cpp:91:10: [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. len = vsnprintf(msg, 256, fmt, ap), data/spew-1.0.8/src/common.cpp:128:4: [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. vsnprintf(tmpStr, MAX_SPRINTF_CHARS, fmt, ap); data/spew-1.0.8/src/spew.cpp:176:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/spew-1.0.8/src/spew.cpp:187:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/spew-1.0.8/src/spew.cpp:274:4: [4] (format) snprintf: 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. snprintf(outStr, sizeof(outStr) - 1, fmtStr, data/spew-1.0.8/src/spew.cpp:288:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, outStr); data/spew-1.0.8/src/spew.cpp:941:4: [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. vsnprintf(msg, MAX_TMP_STR_LEN, fmt, ap); data/spew-1.0.8/src/SpewConsole.cpp:287:24: [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. const char *lines = getenv("LINES"); data/spew-1.0.8/src/SpewConsole.cpp:305:23: [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. const char *cols = getenv("COLUMNS"); data/spew-1.0.8/src/Tui.cpp:137:26: [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. const char *colsEnv = getenv("COLUMNS"); data/spew-1.0.8/src/Tui.cpp:146:26: [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. const char *rowsEnv = getenv("LINES"); data/spew-1.0.8/src/spew.cpp:456:11: [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. if (getenv(SPEWRC_ENV)) data/spew-1.0.8/src/spew.cpp:458:23: [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. rcFilePath = getenv(SPEWRC_ENV); data/spew-1.0.8/src/spew.cpp:462:23: [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. char *home = getenv("HOME"); data/spew-1.0.8/src/Log.cpp:66: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). int Log::open() data/spew-1.0.8/src/Log.cpp:71:23: [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). logStdoutFile = fopen(mLogfilePath.c_str(), "a+"); data/spew-1.0.8/src/Log.cpp:189:4: [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 timestamp[TIMESTAMP_STR_LEN + 1]; data/spew-1.0.8/src/Log.cpp:235:4: [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 timestamp[TIMESTAMP_STR_LEN + 1]; data/spew-1.0.8/src/Log.cpp:251:4: [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 timestamp[TIMESTAMP_STR_LEN + 1]; data/spew-1.0.8/src/Log.h:46:8: [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(); data/spew-1.0.8/src/NumbersTransfer.cpp:165:7: [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(mBuffer + bufferOffset, &data, datum_size); // Expensive. data/spew-1.0.8/src/RandomTransfer.cpp:169:7: [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(mBuffer + bufferOffset, &data, datum_size); // Expensive. data/spew-1.0.8/src/RandomTransferInfoList.cpp:181:7: [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(&tmpTranInfo, data/spew-1.0.8/src/RandomTransferInfoList.cpp:184:7: [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(&mInternalTransferInfoList[posA], data/spew-1.0.8/src/RandomTransferInfoList.cpp:187:7: [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(&mInternalTransferInfoList[posB], data/spew-1.0.8/src/ReadJob.cpp:95: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). mFd = open(mFileName.c_str(), flags); data/spew-1.0.8/src/SpewTuiStatusWindow.cpp:87:4: [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 msg[256]; data/spew-1.0.8/src/TimeHack.cpp:191:4: [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 tmpStr[MAX_STR_CHARS + 1]; data/spew-1.0.8/src/TimeHack.cpp:208:4: [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 tmpStr[MAX_STR_CHARS + 1]; data/spew-1.0.8/src/TimeHack.cpp:222:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmpStr, "%02d:%02d:%02d", hours, minutes, seconds); data/spew-1.0.8/src/WriteJob.cpp:98: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). mFd = open(mFileName.c_str(), flags, S_IRUSR|S_IWUSR); data/spew-1.0.8/src/common.cpp:192: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(result, currentBrokenDownTimePtr, sizeof(struct tm)); data/spew-1.0.8/src/spew.cpp:273:4: [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 outStr[4096]; data/spew-1.0.8/src/spew.cpp:396:4: [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 rcArgs[MAX_TMP_STR_LEN]; data/spew-1.0.8/src/spew.cpp:524:22: [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). FILE *rcfile = fopen(pathIter->c_str(), "r"); data/spew-1.0.8/src/spew.cpp:934:4: [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 msg[MAX_TMP_STR_LEN]; data/spew-1.0.8/src/spew.cpp:1487:24: [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 ((rtn = gLogger->open()) != EXIT_OK) data/spew-1.0.8/src/BytePatternTransfer.cpp:53:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int BytePatternTransfer::read(const TransferInfo &transInfo, string &errorMsg) data/spew-1.0.8/src/BytePatternTransfer.cpp:64:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t count = ::read(mFd, mBuffer, bufferSize); data/spew-1.0.8/src/BytePatternTransfer.h:44:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(const TransferInfo &transInfo, string &errorMsg); data/spew-1.0.8/src/GarbageTransfer.cpp:47:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int GarbageTransfer::read(const TransferInfo &transInfo, string &errorMsg) data/spew-1.0.8/src/GarbageTransfer.cpp:57:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t count = Transfer::read(transInfo, errorMsg); data/spew-1.0.8/src/GarbageTransfer.h:41:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(const TransferInfo &tranInfo, string &errorMsg); data/spew-1.0.8/src/Log.cpp:284:18: [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 noteLen = strlen(timestamp) + strlen(note) + 6; data/spew-1.0.8/src/Log.cpp:284:38: [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 noteLen = strlen(timestamp) + strlen(note) + 6; data/spew-1.0.8/src/NumbersTransfer.cpp:48:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int NumbersTransfer::read(const TransferInfo &transInfo, string &errorMsg) data/spew-1.0.8/src/NumbersTransfer.cpp:59:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t count = Transfer::read(transInfo, errorMsg); data/spew-1.0.8/src/NumbersTransfer.h:41:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(const TransferInfo &tranInfo, string &errorMsg); data/spew-1.0.8/src/RandomTransfer.cpp:50:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int RandomTransfer::read(const TransferInfo &transInfo, string &errorMsg) data/spew-1.0.8/src/RandomTransfer.cpp:62:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t count = Transfer::read(transInfo, errorMsg); data/spew-1.0.8/src/RandomTransfer.h:43:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(const TransferInfo &tranInfo, string &errorMsg); data/spew-1.0.8/src/ReadJob.cpp:151:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ret = mTransfer->read(*nextTransfer, mLastErrorMsg); data/spew-1.0.8/src/SpewConsole.cpp:112:16: [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). return cols/strlen(NO_HACK_STR); data/spew-1.0.8/src/SpewTuiHelpWindow.cpp:98:47: [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). HEADER_START_X + (mWindowWidth - strlen(HEADER_STR))/2, data/spew-1.0.8/src/SpewTuiHelpWindow.cpp:105:47: [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). PROMPT_START_X + (mWindowWidth - strlen(PROMPT_STR))/2, data/spew-1.0.8/src/SpewTuiProgressWindow.cpp:148:18: [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). mNextHackX += strlen(WRITE_HACK_STR); data/spew-1.0.8/src/SpewTuiProgressWindow.cpp:167:18: [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). mNextHackX += strlen(WRITE_HACK_STR);; data/spew-1.0.8/src/SpewTuiProgressWindow.cpp:175:18: [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). mNextHackX += strlen(ERROR_HACK_STR); data/spew-1.0.8/src/SpewTuiProgressWindow.cpp:183:18: [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). mNextHackX += strlen(END_ERROR_HACK_STR); data/spew-1.0.8/src/SpewTuiProgressWindow.cpp:191:18: [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). mNextHackX += strlen(NO_HACK_STR); data/spew-1.0.8/src/SpewTuiProgressWindow.cpp:200:18: [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). mNextHackX += strlen(NO_HACK_STR); data/spew-1.0.8/src/Transfer.cpp:52:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int Transfer::read(const TransferInfo &transInfo, string &errorMsg) data/spew-1.0.8/src/Transfer.cpp:61:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t count = ::read(mFd, data/spew-1.0.8/src/Transfer.h:59:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(const TransferInfo &tranInfo, string &errorMsg) = 0; data/spew-1.0.8/src/spew.cpp:404:13: [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(rcArgs); data/spew-1.0.8/src/spew.cpp:428:44: [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 (strncmp(argv[i], "--no-rcfiles", strlen("--no-rcfiles")) == 0) data/spew-1.0.8/src/spew.cpp:944:8: [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(msg) > 0) ANALYSIS SUMMARY: Hits = 81 Lines analyzed = 8893 in approximately 0.19 seconds (46834 lines/second) Physical Source Lines of Code (SLOC) = 5957 Hits@level = [0] 45 [1] 30 [2] 23 [3] 7 [4] 21 [5] 0 Hits@level+ = [0+] 126 [1+] 81 [2+] 51 [3+] 28 [4+] 21 [5+] 0 Hits/KSLOC@level+ = [0+] 21.1516 [1+] 13.5974 [2+] 8.56136 [3+] 4.70035 [4+] 3.52526 [5+] 0 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.