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/rgxg-0.1.2/src/common_macros.h Examining data/rgxg-0.1.2/src/cidr.h Examining data/rgxg-0.1.2/src/alternation.c Examining data/rgxg-0.1.2/src/rgxg.h Examining data/rgxg-0.1.2/src/range.c Examining data/rgxg-0.1.2/src/cidr.c Examining data/rgxg-0.1.2/src/range.h Examining data/rgxg-0.1.2/src/escape.c Examining data/rgxg-0.1.2/src/escape.h Examining data/rgxg-0.1.2/src/main.c Examining data/rgxg-0.1.2/src/alternation.h Examining data/rgxg-0.1.2/tests/check_rgxg_net.c Examining data/rgxg-0.1.2/tests/check_rgxg_number.c Examining data/rgxg-0.1.2/tests/check_rgxg.c Examining data/rgxg-0.1.2/tests/check_rgxg.h Examining data/rgxg-0.1.2/include/rgxg/number.h Examining data/rgxg-0.1.2/include/rgxg/net.h Examining data/rgxg-0.1.2/include/rgxg/types.h Examining data/rgxg-0.1.2/include/rgxg/utils.h Examining data/rgxg-0.1.2/lib/common_macros.h Examining data/rgxg-0.1.2/lib/net.c Examining data/rgxg-0.1.2/lib/utils.c Examining data/rgxg-0.1.2/lib/internal_utils.h Examining data/rgxg-0.1.2/lib/internal_utils.c Examining data/rgxg-0.1.2/lib/number.c FINAL RESULTS: data/rgxg-0.1.2/src/alternation.c:60:25: [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 (cont && (c = getopt (argc, argv, "hN")) != -1) data/rgxg-0.1.2/src/cidr.c:67:25: [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 (cont && (c = getopt (argc, argv, "hlsuUN")) != -1) data/rgxg-0.1.2/src/escape.c:59:25: [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 (cont && (c = getopt (argc, argv, "h")) != -1) data/rgxg-0.1.2/src/range.c:95:25: [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 (cont && (c = getopt (argc, argv, ":b:hm:zNUlZ")) != -1) data/rgxg-0.1.2/lib/utils.c:88:56: [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). n += rgxg_utils_escape_string(patterns[i], strlen(patterns[i]), (regex ? regex+n : NULL), RGXG_NONULLBYTE); data/rgxg-0.1.2/src/escape.c:77:45: [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). return rgxg_utils_escape_string(string, strlen(string), regex, 0); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 3307 in approximately 0.39 seconds (8535 lines/second) Physical Source Lines of Code (SLOC) = 2361 Hits@level = [0] 29 [1] 2 [2] 0 [3] 4 [4] 0 [5] 0 Hits@level+ = [0+] 35 [1+] 6 [2+] 4 [3+] 4 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 14.8242 [1+] 2.5413 [2+] 1.6942 [3+] 1.6942 [4+] 0 [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.