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/pacvim-1.1.1/src/globals.h Examining data/pacvim-1.1.1/src/globals.cpp Examining data/pacvim-1.1.1/src/helperFns.h Examining data/pacvim-1.1.1/src/ghost1.cpp Examining data/pacvim-1.1.1/src/ghost1.h Examining data/pacvim-1.1.1/src/game.cpp Examining data/pacvim-1.1.1/src/avatar.h Examining data/pacvim-1.1.1/src/avatar.cpp Examining data/pacvim-1.1.1/src/helperFns.cpp FINAL RESULTS: data/pacvim-1.1.1/src/helperFns.cpp:93:5: [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). fs.open("errors.log", std::fstream::app); data/pacvim-1.1.1/src/game.cpp:239:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1500000); data/pacvim-1.1.1/src/game.cpp:460:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); data/pacvim-1.1.1/src/ghost1.cpp:61:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(sleepTime * 1000000); data/pacvim-1.1.1/src/ghost1.cpp:75:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(250000); // wait a quarter second ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1523 in approximately 0.06 seconds (27477 lines/second) Physical Source Lines of Code (SLOC) = 1003 Hits@level = [0] 0 [1] 4 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 4.98504 [1+] 4.98504 [2+] 0.997009 [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.