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/vramsteg-1.1.0/cmake.h Examining data/vramsteg-1.1.0/commit.h Examining data/vramsteg-1.1.0/src/Progress.cpp Examining data/vramsteg-1.1.0/src/Progress.h Examining data/vramsteg-1.1.0/src/vramsteg.cpp FINAL RESULTS: data/vramsteg-1.1.0/src/vramsteg.cpp:161:18: [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. while ((ch = getopt_long (argc, argv, "c:d:etl:x:m:npa:rs:vw:h", longopts, NULL)) != -1) data/vramsteg-1.1.0/src/vramsteg.cpp:163:18: [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. while ((ch = getopt_long (argc, argv, "c:etl:x:m:nprs:vw:h", longopts, NULL)) != -1) data/vramsteg-1.1.0/src/Progress.cpp:171:3: [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 buffer [128]; data/vramsteg-1.1.0/src/vramsteg.cpp:168:34: [2] (integer) atol: 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). case 'c': arg_current = atol (optarg); break; data/vramsteg-1.1.0/src/vramsteg.cpp:175:34: [2] (integer) atol: 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). case 'x': arg_max = atol (optarg); break; data/vramsteg-1.1.0/src/vramsteg.cpp:176:34: [2] (integer) atol: 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). case 'm': arg_min = atol (optarg); break; data/vramsteg-1.1.0/src/vramsteg.cpp:183:34: [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). case 's': arg_start = atoi (optarg); break; data/vramsteg-1.1.0/src/vramsteg.cpp:185:34: [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). case 'w': arg_width = atoi (optarg); break; ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 784 in approximately 0.05 seconds (15411 lines/second) Physical Source Lines of Code (SLOC) = 505 Hits@level = [0] 3 [1] 0 [2] 6 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 11 [1+] 8 [2+] 8 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 21.7822 [1+] 15.8416 [2+] 15.8416 [3+] 3.9604 [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.