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/mpgrafic-0.3.19/src/c_gsl_wrap.c Examining data/mpgrafic-0.3.19/src/parallel_io.c Examining data/mpgrafic-0.3.19/src/rfftw3d_mpi_create_plan_c_wrap.c FINAL RESULTS: data/mpgrafic-0.3.19/src/parallel_io.c:66:8: [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,O_RDWR|O_CREAT,S_IRUSR|S_IWUSR); data/mpgrafic-0.3.19/src/parallel_io.c:87:8: [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,O_RDONLY); data/mpgrafic-0.3.19/src/parallel_io.c:111:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(filename_null_terminated, filename, (size_t)(*fnamelen)); data/mpgrafic-0.3.19/src/parallel_io.c:135:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(filename_null_terminated, filename, (size_t)(*fnamelen)); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 389 in approximately 0.02 seconds (15823 lines/second) Physical Source Lines of Code (SLOC) = 165 Hits@level = [0] 9 [1] 2 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 13 [1+] 4 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 78.7879 [1+] 24.2424 [2+] 12.1212 [3+] 0 [4+] 0 [5+] 0 Symlinks skipped = 1 (--allowlink overrides but see doc for security issue) 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.