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/guncat-1.02.01/decryptor/getpassphrase.cc Examining data/guncat-1.02.01/decryptor/passphrasefd.cc Examining data/guncat-1.02.01/decryptor/retrypassphrase.cc Examining data/guncat-1.02.01/decryptor/handlegpg.cc Examining data/guncat-1.02.01/decryptor/showgpg.cc Examining data/guncat-1.02.01/decryptor/setpassphrase.cc Examining data/guncat-1.02.01/decryptor/gpgerror.cc Examining data/guncat-1.02.01/decryptor/decryptor.h Examining data/guncat-1.02.01/decryptor/echo.cc Examining data/guncat-1.02.01/decryptor/decryptor1.cc Examining data/guncat-1.02.01/decryptor/destructor.cc Examining data/guncat-1.02.01/decryptor/setverbosity.cc Examining data/guncat-1.02.01/decryptor/addgpgoptions.cc Examining data/guncat-1.02.01/decryptor/insertgpgsection.cc Examining data/guncat-1.02.01/decryptor/driver/getpassphrase.cc Examining data/guncat-1.02.01/decryptor/driver/pipepassphrase.cc Examining data/guncat-1.02.01/decryptor/driver/main.cc Examining data/guncat-1.02.01/decryptor/driver/echo.cc Examining data/guncat-1.02.01/globals/data.cc Examining data/guncat-1.02.01/globals/nextline.cc Examining data/guncat-1.02.01/globals/fileinfo.cc Examining data/guncat-1.02.01/globals/globals.h Examining data/guncat-1.02.01/gpipe/gpipe.h Examining data/guncat-1.02.01/gpipe/destructor.cc Examining data/guncat-1.02.01/guncat/processcin.cc Examining data/guncat-1.02.01/guncat/getpassphrase.cc Examining data/guncat-1.02.01/guncat/arguments.cc Examining data/guncat-1.02.01/guncat/guncat.h Examining data/guncat-1.02.01/guncat/nop.cc Examining data/guncat-1.02.01/guncat/process.cc Examining data/guncat-1.02.01/guncat/processfilearguments.cc Examining data/guncat-1.02.01/guncat/guncat1.cc Examining data/guncat-1.02.01/main.cc Examining data/guncat-1.02.01/usage.cc Examining data/guncat-1.02.01/version.cc Examining data/guncat-1.02.01/VERSION.h FINAL RESULTS: data/guncat-1.02.01/decryptor/decryptor1.cc:19:24: [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). Exception::open(d_fmsg, value); // or open a file data/guncat-1.02.01/decryptor/driver/echo.cc:5: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). int fd = open("/dev/tty", O_RDONLY); data/guncat-1.02.01/decryptor/echo.cc:5: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). int fd = open("/dev/tty", O_RDONLY); data/guncat-1.02.01/guncat/processfilearguments.cc:13:24: [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). Exception::open(in, g_filename); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 837 in approximately 0.04 seconds (21180 lines/second) Physical Source Lines of Code (SLOC) = 601 Hits@level = [0] 0 [1] 0 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 4 [1+] 4 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 6.65557 [1+] 6.65557 [2+] 6.65557 [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.