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/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.h Examining data/pd-pool-0.2.2+git20161105.1.4b157f51/source/main.cpp Examining data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp Examining data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp FINAL RESULTS: data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.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 tmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp:52:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(tmp," , "); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp:129: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 tmp[1024]; // CnvFlnm checks for size of string buffer data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp:145: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 tmp[1024]; // CnvFlnm checks for size of string buffer data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp:163: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 tmp[1024]; // CnvFlnm checks for size of string buffer data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp:192: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 tmp[1024]; // CnvFlnm checks for size of string buffer data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:457:13: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(buf+offs," , "); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:596: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 tmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:656:13: [2] (buffer) wchar_t: 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. wchar_t wtmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:657:23: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int err = MultiByteToWideChar(CP_UTF8,0,tmp,strlen(tmp),wtmp,1024); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:664:13: [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 ctmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:686:13: [2] (buffer) wchar_t: 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. wchar_t wtmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:743:13: [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 tmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:744:13: [2] (buffer) wchar_t: 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. wchar_t wtmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:745:23: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int err = MultiByteToWideChar(CP_ACP,0,c,strlen(c),wtmp,1024); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:752:13: [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 tmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:775:13: [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 tmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:776:13: [2] (buffer) wchar_t: 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. wchar_t wtmp[1024]; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:901:9: [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 tmp[1024],*t = tmp; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:911:13: [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 cmp[2] = {0,0}; // set to some unusual initial value data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:976: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 tmp[1024],*t = tmp; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/data.cpp:114:14: [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 i,cnt = strlen(src); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:450: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). int offs = strlen(buf); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:458: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). int l = strlen(buf+offs)+offs; data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:657:57: [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 err = MultiByteToWideChar(CP_UTF8,0,tmp,strlen(tmp),wtmp,1024); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:677: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). (ConstTextPtr)tmp,strlen(tmp),&inlen, data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:745:54: [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 err = MultiByteToWideChar(CP_ACP,0,c,strlen(c),wtmp,1024); data/pd-pool-0.2.2+git20161105.1.4b157f51/source/pool.cpp:765: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). (ConstTextPtr)c,strlen(c),&inlen, ANALYSIS SUMMARY: Hits = 28 Lines analyzed = 3075 in approximately 0.08 seconds (38562 lines/second) Physical Source Lines of Code (SLOC) = 2499 Hits@level = [0] 1 [1] 7 [2] 21 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 29 [1+] 28 [2+] 21 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 11.6046 [1+] 11.2045 [2+] 8.40336 [3+] 0 [4+] 0 [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.