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/lv2file-0.84/lv2file.c FINAL RESULTS: data/lv2file-0.84/lv2file.c:32:12: [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). int index=atoi(name); data/lv2file-0.84/lv2file.c:352:8: [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. char tmpbuffer[nextperiod-nextcolon+1]; data/lv2file-0.84/lv2file.c:353:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpbuffer,nextcolon,sizeof(char)*(nextperiod-nextcolon)); data/lv2file-0.84/lv2file.c:355:21: [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). pluginstance=atoi(tmpbuffer)-1; data/lv2file-0.84/lv2file.c:386:19: [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). int channel=atoi(connectionlist)-1; data/lv2file-0.84/lv2file.c:404:21: [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). pluginstance=atoi(nextcolon+1)-1; ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 566 in approximately 0.03 seconds (22213 lines/second) Physical Source Lines of Code (SLOC) = 518 Hits@level = [0] 32 [1] 0 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 38 [1+] 6 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 73.3591 [1+] 11.583 [2+] 11.583 [3+] 0 [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.