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/i810switch-0.6.5/i810switch.c FINAL RESULTS: data/i810switch-0.6.5/i810switch.c:368:10: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. pci_f = popen(CMD_LSPCI " -n", "r"); data/i810switch-0.6.5/i810switch.c:389:10: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. pci_f = popen(lspcistr, "r"); data/i810switch-0.6.5/i810switch.c:386: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(p, chip, 9); data/i810switch-0.6.5/i810switch.c:402:12: [2] (misc) open: 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). par.mem = open("/dev/mem", (crt+lcd == -2) ? O_RDONLY : O_RDWR); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 563 in approximately 0.09 seconds (5999 lines/second) Physical Source Lines of Code (SLOC) = 499 Hits@level = [0] 67 [1] 0 [2] 2 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 71 [1+] 4 [2+] 4 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 142.285 [1+] 8.01603 [2+] 8.01603 [3+] 4.00802 [4+] 4.00802 [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.