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/wmlongrun-0.3.1/src/common.h Examining data/wmlongrun-0.3.1/src/longrun_linux.c Examining data/wmlongrun-0.3.1/src/dockapp.c Examining data/wmlongrun-0.3.1/src/longrun.h Examining data/wmlongrun-0.3.1/src/longrun_freebsd.c Examining data/wmlongrun-0.3.1/src/dockapp.h Examining data/wmlongrun-0.3.1/src/main.c FINAL RESULTS: data/wmlongrun-0.3.1/src/longrun_linux.c:119:21: [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). if ((cpuid_fd = open(cpuid_device, O_RDONLY)) < 0) { data/wmlongrun-0.3.1/src/longrun_linux.c:128:19: [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). if ((msr_fd = open(msr_device, O_RDONLY)) < 0) { data/wmlongrun-0.3.1/src/longrun_linux.c:169:21: [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). if ((cpuid_fd = open(cpuid_device, O_RDWR)) < 0) { data/wmlongrun-0.3.1/src/longrun_linux.c:178:19: [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). if ((msr_fd = open(msr_device, O_RDWR)) < 0) { data/wmlongrun-0.3.1/src/longrun_linux.c:61:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(cpuid_fd, &data, 16) != 16) { data/wmlongrun-0.3.1/src/longrun_linux.c:91:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(msr_fd, &data, 8) != 8) { ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1152 in approximately 0.04 seconds (26674 lines/second) Physical Source Lines of Code (SLOC) = 835 Hits@level = [0] 40 [1] 2 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 46 [1+] 6 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 55.0898 [1+] 7.18563 [2+] 4.79042 [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.