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/taggrepper-0.05/src/files.h Examining data/taggrepper-0.05/src/taggrepper.c Examining data/taggrepper-0.05/src/tagregexps.h Examining data/taggrepper-0.05/src/tagregexps.c Examining data/taggrepper-0.05/src/files.c Examining data/taggrepper-0.05/src/common.h FINAL RESULTS: data/taggrepper-0.05/src/taggrepper.c:204:7: [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. printf(VERSION_STRING, PACKAGE_NAME, PACKAGE_VERSION); data/taggrepper-0.05/src/taggrepper.c:179:9: [3] (buffer) getopt_long: 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. c = getopt_long(argc, argv, "t:a:l:y:g:c:mrvh0", data/taggrepper-0.05/src/taggrepper.c:182:9: [3] (buffer) getopt_long: 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. c = getopt_long(argc, argv, "t:a:l:y:g:c:rvh0", data/taggrepper-0.05/src/files.c:268:9: [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(filename); data/taggrepper-0.05/src/tagregexps.c:73:37: [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). rc = pcre_exec(re, NULL, subject, strlen(subject), 0, 0, ovector, 3); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1130 in approximately 0.05 seconds (23009 lines/second) Physical Source Lines of Code (SLOC) = 803 Hits@level = [0] 29 [1] 2 [2] 0 [3] 2 [4] 1 [5] 0 Hits@level+ = [0+] 34 [1+] 5 [2+] 3 [3+] 3 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 42.3412 [1+] 6.22665 [2+] 3.73599 [3+] 3.73599 [4+] 1.24533 [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.