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/xcolors-1.5a/xcolors.c FINAL RESULTS: data/xcolors-1.5a/xcolors.c:315:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(save_colorname, colorname); data/xcolors-1.5a/xcolors.c:275:5: [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 colorname[50], save_colorname[50]; data/xcolors-1.5a/xcolors.c:280:11: [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). rgb = fopen(opts.rgb_file, "r"); data/xcolors-1.5a/xcolors.c:289: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. char str[1024]; data/xcolors-1.5a/xcolors.c:116:16: [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). namein.size = strlen(colorname) + 1; data/xcolors-1.5a/xcolors.c:344:19: [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). namein.size = strlen(colorname) + 1; ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 380 in approximately 0.02 seconds (19748 lines/second) Physical Source Lines of Code (SLOC) = 293 Hits@level = [0] 11 [1] 2 [2] 3 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 17 [1+] 6 [2+] 4 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 58.0205 [1+] 20.4778 [2+] 13.6519 [3+] 3.41297 [4+] 3.41297 [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.