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/spout-1.4/config.def.h Examining data/spout-1.4/spout.h Examining data/spout-1.4/font.h Examining data/spout-1.4/sintable.h Examining data/spout-1.4/spout.c FINAL RESULTS: data/spout-1.4/spout.c:977:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(c, fmt, argp); data/spout-1.4/spout.c:105:37: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. snprintf(score_path, 512, "%s/%s", getenv("HOME"), ".spout.sco"); data/spout-1.4/spout.c:119:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(SDL_GetTicks()); data/spout-1.4/spout.c:54:10: [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. unsigned char vbuff[128 * 88]; data/spout-1.4/spout.c:55:10: [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. unsigned char vbuff2[128 * 128]; data/spout-1.4/spout.c:70:1: [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 score_path[512]; data/spout-1.4/spout.c:109: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). if((fa = open(score_path, O_RDONLY)) != -1) { data/spout-1.4/spout.c:151:14: [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((fa = open(score_path, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR)) != -1) { data/spout-1.4/spout.c:973: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 c[1024]; data/spout-1.4/spout.c:110:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read (fa, (void *) hiScore, 8) != -1) { ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 1424 in approximately 0.08 seconds (17900 lines/second) Physical Source Lines of Code (SLOC) = 1262 Hits@level = [0] 5 [1] 1 [2] 6 [3] 2 [4] 1 [5] 0 Hits@level+ = [0+] 15 [1+] 10 [2+] 9 [3+] 3 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 11.8859 [1+] 7.92393 [2+] 7.13154 [3+] 2.37718 [4+] 0.792393 [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.