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/aa3d-1.0/aa3d.c FINAL RESULTS: data/aa3d-1.0/aa3d.c:25: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. static char data[65536 / 2]; data/aa3d-1.0/aa3d.c:38:14: [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). width = atol(argv[s + 1]), s++; data/aa3d-1.0/aa3d.c:40:13: [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). skip = atol(argv[s + 1]), s++; data/aa3d-1.0/aa3d.c:44:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(argv[s + 1], "r"); data/aa3d-1.0/aa3d.c:76:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). letter = getc(f); data/aa3d-1.0/aa3d.c:84:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s = getc(stdin); data/aa3d-1.0/aa3d.c:98:54: [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). s = string == NULL ? letter : string[(x + shift) % strlen(string)]; data/aa3d-1.0/aa3d.c:107:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s = getc(stdin); data/aa3d-1.0/aa3d.c:111:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s = getc(f); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 114 in approximately 0.01 seconds (9033 lines/second) Physical Source Lines of Code (SLOC) = 92 Hits@level = [0] 2 [1] 5 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 11 [1+] 9 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 119.565 [1+] 97.8261 [2+] 43.4783 [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.