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/dist-3.5-236/lib/C/fake/dup2.C Examining data/dist-3.5-236/lib/C/fake/getopt.C Examining data/dist-3.5-236/lib/C/fake/rename.C Examining data/dist-3.5-236/lib/C/fake/scandir.C Examining data/dist-3.5-236/lib/C/fake/setsid.C Examining data/dist-3.5-236/pat/patchlevel.h Examining data/dist-3.5-236/patchlevel.h Examining data/dist-3.5-236/revision.h FINAL RESULTS: data/dist-3.5-236/lib/C/fake/getopt.C:75:12: [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. V_FUNC(int getopt, (nargc, nargv, ostr) data/dist-3.5-236/lib/C/fake/scandir.C:110:4: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char *) dp, (char *) dp_save, sizeof(Direntry_t)); ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 497 in approximately 0.11 seconds (4526 lines/second) Physical Source Lines of Code (SLOC) = 213 Hits@level = [0] 0 [1] 0 [2] 1 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 9.38967 [1+] 9.38967 [2+] 9.38967 [3+] 4.69484 [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.