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/tmperamental-1.4/src/tmperamental.c Examining data/tmperamental-1.4/tests/test_creat.c Examining data/tmperamental-1.4/tests/test_fopen.c Examining data/tmperamental-1.4/tests/test_freopen.c Examining data/tmperamental-1.4/tests/test_mkdir.c Examining data/tmperamental-1.4/tests/test_open.c FINAL RESULTS: data/tmperamental-1.4/src/tmperamental.c:85: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). int open ( const char * pathname, int flags, ... ) { data/tmperamental-1.4/src/tmperamental.c:90:11: [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). fixup(open); data/tmperamental-1.4/src/tmperamental.c:138:8: [2] (misc) fopen: 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). FILE * fopen ( const char * path, const char *mode ) { data/tmperamental-1.4/src/tmperamental.c:141:11: [2] (misc) fopen: 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). fixup(fopen); data/tmperamental-1.4/tests/test_fopen.c:5:12: [2] (misc) fopen: 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). FILE* f = fopen("/tmp/moo", "w"); data/tmperamental-1.4/tests/test_open.c:6:2: [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). open("/tmp/moo", O_RDWR | O_CREAT | O_TRUNC, 0666); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 203 in approximately 0.02 seconds (13276 lines/second) Physical Source Lines of Code (SLOC) = 146 Hits@level = [0] 1 [1] 0 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 6 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 47.9452 [1+] 41.0959 [2+] 41.0959 [3+] 0 [4+] 0 [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.