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/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_access_mode.h Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_allocator.h Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_exception.h Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_file_pool.cpp Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_file_pool.h Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmappable_vector.h Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_allocator.cpp Examining data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_mmap_fixed.c FINAL RESULTS: data/libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_file_pool.cpp:108:9: [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). fd = open(filename.c_str(), mode); data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_allocator.cpp:26:6: [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). f = fopen(fname, "w+"); data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_allocator.cpp:38:6: [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). f = fopen(TESTFILE, "r"); data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_mmap_fixed.c:13:6: [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). f = fopen("testfile", "w+"); data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_mmap_fixed.c:26:7: [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). fd = open("testfile", O_RDONLY); data/libmmap-allocator-0.4.0+git20200122.adbfbe1/test_mmap_fixed.c:34:7: [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). fd = open("testfile", O_RDONLY); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1198 in approximately 0.09 seconds (13808 lines/second) Physical Source Lines of Code (SLOC) = 1007 Hits@level = [0] 42 [1] 0 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 48 [1+] 6 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 47.6663 [1+] 5.95829 [2+] 5.95829 [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.