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/python-regex-0.1.20200714/regex_2/_regex.c Examining data/python-regex-0.1.20200714/regex_2/_regex.h Examining data/python-regex-0.1.20200714/regex_2/_regex_unicode.c Examining data/python-regex-0.1.20200714/regex_2/_regex_unicode.h Examining data/python-regex-0.1.20200714/regex_3/_regex.c Examining data/python-regex-0.1.20200714/regex_3/_regex.h Examining data/python-regex-0.1.20200714/regex_3/_regex_unicode.c Examining data/python-regex-0.1.20200714/regex_3/_regex_unicode.h FINAL RESULTS: data/python-regex-0.1.20200714/regex_2/_regex.c:43: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 TRACE(X) printf X; data/python-regex-0.1.20200714/regex_3/_regex.c:43: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 TRACE(X) printf X; data/python-regex-0.1.20200714/regex_2/_regex.c:224:14: [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 uppercase[0x100]; data/python-regex-0.1.20200714/regex_2/_regex.c:225:14: [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 lowercase[0x100]; data/python-regex-0.1.20200714/regex_3/_regex.c:238:14: [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 uppercase[0x100]; data/python-regex-0.1.20200714/regex_3/_regex.c:239:14: [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 lowercase[0x100]; ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 109255 in approximately 5.15 seconds (21195 lines/second) Physical Source Lines of Code (SLOC) = 92647 Hits@level = [0] 2 [1] 0 [2] 4 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 8 [1+] 6 [2+] 6 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 0.0863493 [1+] 0.0647619 [2+] 0.0647619 [3+] 0.0215873 [4+] 0.0215873 [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.