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/ccd2iso-0.3/src/ccd2iso.c Examining data/ccd2iso-0.3/src/clonecd.h FINAL RESULTS: data/ccd2iso-0.3/src/ccd2iso.c:76:18: [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). if ((src_file = fopen(argv[1], "r")) == NULL) data/ccd2iso-0.3/src/ccd2iso.c:81:18: [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). if ((dst_file = fopen(argv[2], "w")) == NULL) data/ccd2iso-0.3/src/clonecd.h:25:18: [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. typedef unsigned char ccd_sectheader_syn[12]; data/ccd2iso-0.3/src/clonecd.h:26:18: [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. typedef unsigned char ccd_edc[4]; data/ccd2iso-0.3/src/clonecd.h:27:18: [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. typedef unsigned char ccd_ecc[276]; data/ccd2iso-0.3/src/clonecd.h:34:18: [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. typedef unsigned char ccd_sectheader_subheader[8]; //??? No idea about the struct data/ccd2iso-0.3/src/clonecd.h:45:13: [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. unsigned char data[DATA_SIZE]; data/ccd2iso-0.3/src/clonecd.h:47:13: [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. unsigned char unused[8]; data/ccd2iso-0.3/src/clonecd.h:52:13: [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. unsigned char data[DATA_SIZE]; ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 193 in approximately 0.03 seconds (6831 lines/second) Physical Source Lines of Code (SLOC) = 123 Hits@level = [0] 18 [1] 0 [2] 9 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 27 [1+] 9 [2+] 9 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 219.512 [1+] 73.1707 [2+] 73.1707 [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.