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/xidle-20200802/debian/mbsdport.h Examining data/xidle-20200802/strtonum.c Examining data/xidle-20200802/xidle.c FINAL RESULTS: data/xidle-20200802/xidle.c:195:3: [4] (shell) execv: 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. execv(*args, args); data/xidle-20200802/xidle.c:249: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 fullres[PATH_MAX], fullclass[PATH_MAX], *type; data/xidle-20200802/xidle.c:334: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 *args[10]; data/xidle-20200802/xidle.c:355:7: [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). fd = open(_PATH_DEVNULL, O_RDWR, 0); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 535 in approximately 0.03 seconds (15467 lines/second) Physical Source Lines of Code (SLOC) = 384 Hits@level = [0] 5 [1] 0 [2] 3 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 9 [1+] 4 [2+] 4 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 23.4375 [1+] 10.4167 [2+] 10.4167 [3+] 2.60417 [4+] 2.60417 [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.