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-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c Examining data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-ode.c FINAL RESULTS: data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:61:25: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUGMAT(MSG,X) printf(MSG" = \n"); gsl_matrix_fprintf(stdout,X,"%f"); printf("\n"); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:67:25: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUGVEC(MSG,X) printf(MSG" = \n"); gsl_vector_fprintf(stdout,X,"%f"); printf("\n"); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:403:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f,fmt,AT(m,i,j)); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:406:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f,fmt,AT(m,i,j)); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:353:16: [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(filename,"r"); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:364:16: [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(filename,"w"); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:375:16: [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(filename,"r"); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:386:16: [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(filename,"w"); data/haskell-hmatrix-gsl-0.19.0.1/src/Numeric/GSL/gsl-aux.c:396:16: [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(filename,"w"); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 1286 in approximately 0.49 seconds (2598 lines/second) Physical Source Lines of Code (SLOC) = 1069 Hits@level = [0] 13 [1] 0 [2] 5 [3] 0 [4] 4 [5] 0 Hits@level+ = [0+] 22 [1+] 9 [2+] 9 [3+] 4 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 20.58 [1+] 8.41908 [2+] 8.41908 [3+] 3.74181 [4+] 3.74181 [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.