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/zpspell-0.4.3/zstring.cpp Examining data/zpspell-0.4.3/zsconn.h Examining data/zpspell-0.4.3/main.cpp Examining data/zpspell-0.4.3/zsconn.cpp Examining data/zpspell-0.4.3/zstring.h FINAL RESULTS: data/zpspell-0.4.3/main.cpp:118:19: [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 ( ( o = getopt( argc, argv, "aBm" )) != -1 ) { data/zpspell-0.4.3/main.cpp:61: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 buf[BUFSIZ]; data/zpspell-0.4.3/main.cpp:65: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). if ( strlen(buf) == 0 ) break; ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 441 in approximately 0.02 seconds (27563 lines/second) Physical Source Lines of Code (SLOC) = 290 Hits@level = [0] 0 [1] 1 [2] 1 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 2 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 10.3448 [1+] 10.3448 [2+] 6.89655 [3+] 3.44828 [4+] 0 [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.