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/rs-20200313/rs.c Examining data/rs-20200313/rs.h Examining data/rs-20200313/utf8.c FINAL RESULTS: data/rs-20200313/rs.c:364:15: [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 ((ch = getopt(ac, av, "c::C::s::S::k:K:g:G:w:tTeEnyjhHmz")) != -1) { data/rs-20200313/rs.c:130:8: [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. const char delim[2] = { isep, '\0' }; data/rs-20200313/rs.c:284: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(ep, ep - nelem, sizeof(*ep)); data/rs-20200313/utf8.c:42: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(dst, mbs, len + 1); data/rs-20200313/rs.c:146:24: [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 (flags & NOARGS && strlen(curline) < (size_t)owidth) data/rs-20200313/utf8.c:37: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). len = strlen(mbs); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 640 in approximately 0.05 seconds (12253 lines/second) Physical Source Lines of Code (SLOC) = 499 Hits@level = [0] 3 [1] 2 [2] 3 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 6 [2+] 4 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 18.0361 [1+] 12.024 [2+] 8.01603 [3+] 2.00401 [4+] 0 [5+] 0 Dot directories skipped = 2 (--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.