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-nemu-0.3.1/benchmarks/udp-perf.c FINAL RESULTS: data/python-nemu-0.3.1/benchmarks/udp-perf.c:290:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). value = atoi(arg + strlen("--"name"=")); \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:289:34: [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(strncmp(arg, "--"name"=", strlen("--"name"=")) == 0) { \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:290:28: [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). value = atoi(arg + strlen("--"name"=")); \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:294:34: [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(strncmp(arg, "--"name"=", strlen("--"name"=")) == 0) { \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:295:29: [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). value = atoll(arg + strlen("--"name"=")); \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:299:34: [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(strncmp(arg, "--"name"=", strlen("--"name"=")) == 0) { \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:300:23: [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). value = arg + strlen("--"name"="); \ data/python-nemu-0.3.1/benchmarks/udp-perf.c:307: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). if(strlen(progname) < strlen(sp)) data/python-nemu-0.3.1/benchmarks/udp-perf.c:307:27: [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(strlen(progname) < strlen(sp)) data/python-nemu-0.3.1/benchmarks/udp-perf.c:308:23: [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). filler = sp + strlen(sp) - strlen(progname); data/python-nemu-0.3.1/benchmarks/udp-perf.c:308:36: [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). filler = sp + strlen(sp) - strlen(progname); ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 375 in approximately 0.04 seconds (9401 lines/second) Physical Source Lines of Code (SLOC) = 327 Hits@level = [0] 17 [1] 10 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 28 [1+] 11 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 85.6269 [1+] 33.6391 [2+] 3.0581 [3+] 0 [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.