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/libcue-2.2.1/cd.c Examining data/libcue-2.2.1/cd.h Examining data/libcue-2.2.1/cdtext.c Examining data/libcue-2.2.1/cdtext.h Examining data/libcue-2.2.1/libcue.h Examining data/libcue-2.2.1/rem.c Examining data/libcue-2.2.1/rem.h Examining data/libcue-2.2.1/t/99_tracks.c Examining data/libcue-2.2.1/t/issue10.c Examining data/libcue-2.2.1/t/minunit.h Examining data/libcue-2.2.1/t/multiple_files.c Examining data/libcue-2.2.1/t/noncompliant.c Examining data/libcue-2.2.1/t/single_idx_00.c Examining data/libcue-2.2.1/t/standard_cue.c Examining data/libcue-2.2.1/time.c Examining data/libcue-2.2.1/time.h FINAL RESULTS: data/libcue-2.2.1/cdtext.c:46:3: [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 (new_cdtext, cdtext, sizeof(cdtext)); data/libcue-2.2.1/rem.c:53:3: [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(new_rem, rem, sizeof(rem)); data/libcue-2.2.1/t/99_tracks.c:12:16: [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). FILE *cue = fopen("99_tracks.cue", "r"); data/libcue-2.2.1/t/issue10.c:12:16: [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). FILE *cue = fopen("issue10.cue", "r"); data/libcue-2.2.1/time.c:29:9: [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 msf[9]; data/libcue-2.2.1/time.c:33:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msf, "%02d:%02d:%02d", minutes, seconds, frames); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1803 in approximately 0.10 seconds (18180 lines/second) Physical Source Lines of Code (SLOC) = 1273 Hits@level = [0] 46 [1] 0 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 52 [1+] 6 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 40.8484 [1+] 4.71328 [2+] 4.71328 [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.