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/ssdeep-2.14.1+git20180629.57fcfff/cycles.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/edit_dist.c Examining data/ssdeep-2.14.1+git20180629.57fcfff/edit_dist.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/engine.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/filedata.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/filedata.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/find-file-size.c Examining data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c Examining data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/main.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/main.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp Examining data/ssdeep-2.14.1+git20180629.57fcfff/match.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/sample.c Examining data/ssdeep-2.14.1+git20180629.57fcfff/ssdeep.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/sum_table.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h Examining data/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp FINAL RESULTS: data/ssdeep-2.14.1+git20180629.57fcfff/ssdeep.h:112:18: [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 MM_INIT printf data/ssdeep-2.14.1+git20180629.57fcfff/ssdeep.h:121:9: [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. #define snprintf _snprintf data/ssdeep-2.14.1+git20180629.57fcfff/ssdeep.h:121:25: [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. #define snprintf _snprintf data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:43:10: [4] (format) _sntprintf: 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. #define _sntprintf snprintf data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:43:21: [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. #define _sntprintf snprintf data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:44:21: [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 _tprintf printf data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:45:10: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _ftprintf fprintf data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:45:21: [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. #define _ftprintf fprintf data/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp:12:3: [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/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp:30:3: [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/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp:40:5: [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. if (vfprintf(HANDLE,MSG,ap) < 0) \ data/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp:80:3: [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/ssdeep-2.14.1+git20180629.57fcfff/cycles.cpp:51:3: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath(fn,d_name); data/ssdeep-2.14.1+git20180629.57fcfff/cycles.cpp:107:3: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath(fn,d_name); data/ssdeep-2.14.1+git20180629.57fcfff/cycles.cpp:158:3: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath(fn,d_name); data/ssdeep-2.14.1+git20180629.57fcfff/main.cpp:74:13: [3] (buffer) getopt: 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 ((i=getopt(argc,argv,"gavhVpdsblcxt:rm:k:")) != -1) { data/ssdeep-2.14.1+git20180629.57fcfff/main.cpp:242:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath(input, fn); data/ssdeep-2.14.1+git20180629.57fcfff/sample.c:80:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(1); data/ssdeep-2.14.1+git20180629.57fcfff/ssdeep.h:120:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. #define realpath(A,B) _fullpath(B,A,PATH_MAX) data/ssdeep-2.14.1+git20180629.57fcfff/ssdeep.h:126:5: [3] (buffer) getopt: 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. int getopt(int argc, char *const argv[], const char *optstring); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:26:8: [2] (buffer) TCHAR: 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 TCHAR DOUBLE_DIR[4] = data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:371: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 sum[FUZZY_MAX_RESULT]; data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:420:3: [2] (buffer) TCHAR: 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. TCHAR new_fn[SSDEEP_PATH_MAX]; data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:446:3: [2] (buffer) TCHAR: 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. TCHAR dirname[SSDEEP_PATH_MAX], new_fn[SSDEEP_PATH_MAX], expanded_fn[SSDEEP_PATH_MAX]; data/ssdeep-2.14.1+git20180629.57fcfff/engine.cpp:65:3: [2] (buffer) TCHAR: 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. TCHAR expanded_fn[SSDEEP_PATH_MAX]; data/ssdeep-2.14.1+git20180629.57fcfff/engine.cpp:76:12: [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). handle = fopen(fn, "rb"); data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:62: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. unsigned char window[ROLLING_WINDOW]; data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:122: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 digest[SPAMSUM_LENGTH]; data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:175: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(newstate, state, sizeof(struct fuzzy_state)); data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:404:5: [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, self->bh[bi].digest, (size_t)i); data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:445: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(result, self->bh[bi].digest, (size_t)i); data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:523: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. unsigned char buffer[4096]; data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:595:18: [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 *handle = fopen(filename, "rb"); data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:858: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 s1b1[SPAMSUM_LENGTH], s1b2[SPAMSUM_LENGTH]; data/ssdeep-2.14.1+git20180629.57fcfff/fuzzy.c:859: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 s2b1[SPAMSUM_LENGTH], s2b2[SPAMSUM_LENGTH]; data/ssdeep-2.14.1+git20180629.57fcfff/main.cpp:124:31: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). s->threshold = (uint8_t)atol(optarg); data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp:43:21: [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). s->known_handle = fopen(fn,"rb"); data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp:52: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 buffer[MAX_STR_LEN]; data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp:94: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 buffer[MAX_STR_LEN]; data/ssdeep-2.14.1+git20180629.57fcfff/sample.c:64:19: [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 * handle = fopen(fn,"wb"); data/ssdeep-2.14.1+git20180629.57fcfff/sample.c:103:12: [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). handle = fopen(FILENAME,"rb"); data/ssdeep-2.14.1+git20180629.57fcfff/sum_table.h:2:23: [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 const unsigned char sum_table[64][64] = data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:52:21: [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). #define _tfopen fopen data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:20:42: [1] (buffer) _tcslen: 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 ((!_tcsncmp(d,_TEXT("."),1) && (_tcslen(d) == 1)) || data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:21:43: [1] (buffer) _tcslen: 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). (!_tcsncmp(d,_TEXT(".."),2) && (_tcslen(d) == 2))); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:52:39: [1] (buffer) _tcslen: 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). _tmemmove(new_str,new_str+tsize,_tcslen(new_str)); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:68:15: [1] (buffer) _tcslen: 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). size_t sz = _tcslen(fn), tsize = sizeof(TCHAR); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:98:30: [1] (buffer) _tcslen: 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). size_t pos, next_dir, sz = _tcslen(fn), tsize = sizeof(TCHAR); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:100:23: [1] (buffer) _tcslen: 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). for (pos = 0; pos < _tcslen(fn) ; pos++) data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:400:8: [1] (buffer) _tcslen: 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). (_tcslen(fn) == 18) && data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:405:8: [1] (buffer) _tcslen: 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). (_tcslen(fn) == 9) && data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:410:8: [1] (buffer) _tcslen: 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). (_tcslen(fn) == 6) && data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:463:7: [1] (buffer) _tcslen: 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 (_tcslen(fn) == 2 && isalpha(fn[0]) && fn[1] == _TEXT(':')) { data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:472:9: [1] (buffer) _tcslen: 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 = _tcslen(fn); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:495:5: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(expanded_fn, fn, SSDEEP_PATH_MAX); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:511:3: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(dirname, fn, SSDEEP_PATH_MAX); data/ssdeep-2.14.1+git20180629.57fcfff/dig.cpp:540:2: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(expanded_fn, new_fn, SSDEEP_PATH_MAX); data/ssdeep-2.14.1+git20180629.57fcfff/edit_dist.c:58: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). a_len = strlen(a); data/ssdeep-2.14.1+git20180629.57fcfff/edit_dist.c:60: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). b_len = strlen(b); data/ssdeep-2.14.1+git20180629.57fcfff/engine.cpp:72:5: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(expanded_fn, fn, SSDEEP_PATH_MAX); data/ssdeep-2.14.1+git20180629.57fcfff/engine.cpp:103:17: [1] (buffer) _tcslen: 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). fn_length = _tcslen(fn); data/ssdeep-2.14.1+git20180629.57fcfff/filedata.cpp:140: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). size_t i, sz = strlen(tmp2); data/ssdeep-2.14.1+git20180629.57fcfff/find-file-size.c:158:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(fd, buf, blk_size); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:73:9: [1] (buffer) _tcslen: 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 = _tcslen(tmp); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:124:16: [1] (buffer) _tcslen: 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). size_t pos = _tcslen(s); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:144: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). size_t pos = strlen(s); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:165:15: [1] (buffer) _tcslen: 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). size_t sz = _tcslen(fn); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:186:17: [1] (buffer) _tcslen: 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). size_t size = _tcslen(s); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:234:11: [1] (buffer) _tcslen: 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). end = _tcslen(s); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:257: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). if (start > strlen(fn) || new_start < start) data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:260: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). while (new_start < strlen(fn)) data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:275: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). size_t size=strlen(s); data/ssdeep-2.14.1+git20180629.57fcfff/helpers.cpp:321: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). end = strlen(s); data/ssdeep-2.14.1+git20180629.57fcfff/main.cpp:230:5: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(fn, input, SSDEEP_PATH_MAX); data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp:110: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(buffer) > 0) data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp:293:19: [1] (buffer) _tcslen: 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). size_t fn_len = _tcslen(f->get_filename()); data/ssdeep-2.14.1+git20180629.57fcfff/match.cpp:304:24: [1] (buffer) _tcslen: 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). std::max(fn_len,_tcslen((*it)->get_filename())))) && data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:60:10: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define _tcsncpy strncpy data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:60:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define _tcsncpy strncpy data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:61:10: [1] (buffer) _tcslen: 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). #define _tcslen strlen data/ssdeep-2.14.1+git20180629.57fcfff/tchar-local.h:61: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). #define _tcslen strlen data/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp:96:9: [1] (buffer) _tcslen: 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 = _tcslen(fn); data/ssdeep-2.14.1+git20180629.57fcfff/ui.cpp:126:9: [1] (buffer) _tcslen: 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 = _tcslen(fn); ANALYSIS SUMMARY: Hits = 83 Lines analyzed = 4966 in approximately 0.20 seconds (25212 lines/second) Physical Source Lines of Code (SLOC) = 3210 Hits@level = [0] 47 [1] 40 [2] 23 [3] 8 [4] 12 [5] 0 Hits@level+ = [0+] 130 [1+] 83 [2+] 43 [3+] 20 [4+] 12 [5+] 0 Hits/KSLOC@level+ = [0+] 40.4984 [1+] 25.8567 [2+] 13.3956 [3+] 6.23053 [4+] 3.73832 [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.