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/haskell-system-fileio-0.3.16.4/lib/hssystemfileio-win32.c Examining data/haskell-system-fileio-0.3.16.4/lib/hssystemfileio-unix.c Examining data/haskell-system-fileio-0.3.16.4/lib/hssystemfileio-unix.h Examining data/haskell-system-fileio-0.3.16.4/lib/hssystemfileio-win32.h FINAL RESULTS: data/haskell-system-fileio-0.3.16.4/lib/hssystemfileio-unix.c:122:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(new_path, st.st_mode); data/haskell-system-fileio-0.3.16.4/lib/hssystemfileio-unix.c:129: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). return open(path, mode); ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 205 in approximately 0.04 seconds (5791 lines/second) Physical Source Lines of Code (SLOC) = 155 Hits@level = [0] 0 [1] 0 [2] 1 [3] 0 [4] 0 [5] 1 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 1 [4+] 1 [5+] 1 Hits/KSLOC@level+ = [0+] 12.9032 [1+] 12.9032 [2+] 12.9032 [3+] 6.45161 [4+] 6.45161 [5+] 6.45161 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.