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/swayidle-1.6/main.c FINAL RESULTS: data/swayidle-1.6/main.c:65:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/swayidle-1.6/main.c:77:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/swayidle-1.6/main.c:97:4: [4] (shell) execvp: 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. execvp(cmd[0], cmd); data/swayidle-1.6/main.c:566:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "hdw")) != -1) { ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 732 in approximately 0.03 seconds (28042 lines/second) Physical Source Lines of Code (SLOC) = 638 Hits@level = [0] 6 [1] 0 [2] 0 [3] 1 [4] 3 [5] 0 Hits@level+ = [0+] 10 [1+] 4 [2+] 4 [3+] 4 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 15.674 [1+] 6.26959 [2+] 6.26959 [3+] 6.26959 [4+] 4.70219 [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.