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/xiccd-0.3.0/src/edid.c Examining data/xiccd-0.3.0/src/edid.h Examining data/xiccd-0.3.0/src/icc.c Examining data/xiccd-0.3.0/src/icc.h Examining data/xiccd-0.3.0/src/randr-conn-private.c Examining data/xiccd-0.3.0/src/randr-conn-private.h Examining data/xiccd-0.3.0/src/randr-conn.c Examining data/xiccd-0.3.0/src/randr-conn.h Examining data/xiccd-0.3.0/src/xiccd.c FINAL RESULTS: data/xiccd-0.3.0/src/edid.c:213:13: [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 *fd = fopen (PNP_IDS, "r"); data/xiccd-0.3.0/src/randr-conn-private.c:40:2: [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 text[1024]; data/xiccd-0.3.0/src/edid.c:226:32: [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). if ((str[3] != '\t') || (str[strlen(str) - 1] != '\n')) { data/xiccd-0.3.0/src/edid.c:230:7: [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). str[strlen(str) - 1] = '\0'; data/xiccd-0.3.0/src/randr-conn-private.c:144:39: [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). if (strncmp (name, laptop_names[i], strlen (laptop_names [i])) == 0) ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 2048 in approximately 0.07 seconds (29718 lines/second) Physical Source Lines of Code (SLOC) = 1466 Hits@level = [0] 0 [1] 3 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.41064 [1+] 3.41064 [2+] 1.36426 [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.