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/inhomog-0.1.9.2/doc/examples/inhomog_demo.c
Examining data/inhomog-0.1.9.2/inhomog.c
Examining data/inhomog-0.1.9.2/lib/FLRW_background.c
Examining data/inhomog-0.1.9.2/lib/Omega_D.c
Examining data/inhomog-0.1.9.2/lib/Omega_D_BAO.c
Examining data/inhomog-0.1.9.2/lib/Omega_D_VAv2.c
Examining data/inhomog-0.1.9.2/lib/Omega_D_effWEC.c
Examining data/inhomog-0.1.9.2/lib/Omega_D_precalc.c
Examining data/inhomog-0.1.9.2/lib/alloc_big_array.c
Examining data/inhomog-0.1.9.2/lib/alloc_big_array.h
Examining data/inhomog-0.1.9.2/lib/backward_compatibility.c
Examining data/inhomog-0.1.9.2/lib/biscale_partition.c
Examining data/inhomog-0.1.9.2/lib/biscale_partition.h
Examining data/inhomog-0.1.9.2/lib/c_gsl_wrap.c
Examining data/inhomog-0.1.9.2/lib/curvature_backreaction.c
Examining data/inhomog-0.1.9.2/lib/delta_tilde_integrals.c
Examining data/inhomog-0.1.9.2/lib/effective_sigma8.c
Examining data/inhomog-0.1.9.2/lib/growth_function.c
Examining data/inhomog-0.1.9.2/lib/inhomog.h
Examining data/inhomog-0.1.9.2/lib/kinematical_backreaction.c
Examining data/inhomog-0.1.9.2/lib/parse_noempty_strtox.c
Examining data/inhomog-0.1.9.2/lib/parse_noempty_strtox.h
Examining data/inhomog-0.1.9.2/lib/power_spectrum_flatspace.c
Examining data/inhomog-0.1.9.2/lib/power_spectrum_flatspace.h
Examining data/inhomog-0.1.9.2/lib/print_benchmark.c
Examining data/inhomog-0.1.9.2/lib/scale_factor_D.c
Examining data/inhomog-0.1.9.2/lib/scale_factor_D_Ham.c
Examining data/inhomog-0.1.9.2/lib/scale_factor_D_Ray.c
Examining data/inhomog-0.1.9.2/lib/sigma_square_invariant_I.c
Examining data/inhomog-0.1.9.2/lib/sigma_square_invariant_II.c
Examining data/inhomog-0.1.9.2/lib/sigma_square_invariant_III.c
Examining data/inhomog-0.1.9.2/lib/test_Omega_D.c
Examining data/inhomog-0.1.9.2/lib/test_alloc_big_array.c
Examining data/inhomog-0.1.9.2/lib/test_biscale_partition.c
Examining data/inhomog-0.1.9.2/lib/test_fftw3.c
Examining data/inhomog-0.1.9.2/lib/test_growth_function.c
Examining data/inhomog-0.1.9.2/lib/test_gsl_ieee_mode.c
Examining data/inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c
Examining data/inhomog-0.1.9.2/lib/test_gsl_multifit.c
Examining data/inhomog-0.1.9.2/lib/test_gsl_uniform.c
Examining data/inhomog-0.1.9.2/lib/test_kinematical_backreaction.c
Examining data/inhomog-0.1.9.2/lib/test_ode.c
Examining data/inhomog-0.1.9.2/lib/test_ode.h
Examining data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c
Examining data/inhomog-0.1.9.2/lib/test_power_spectrum_flatspace.c
Examining data/inhomog-0.1.9.2/lib/test_scale_factor.c
Examining data/inhomog-0.1.9.2/lib/test_scale_factor_D.c
Examining data/inhomog-0.1.9.2/lib/test_scale_factor_D_Ham.c
Examining data/inhomog-0.1.9.2/lib/test_scale_factor_D_Ray.c
Examining data/inhomog-0.1.9.2/lib/test_sigma_invariants.c
Examining data/inhomog-0.1.9.2/lib/test_sigma_invariants.h
Examining data/inhomog-0.1.9.2/xmalloc.c

FINAL RESULTS:

data/inhomog-0.1.9.2/lib/Omega_D_BAO.c:389:11:  [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.
          printf(/*nsig=%4.1f%4.1f%4.1f*/" tB2 R : a_D H_D : Omm_D OmQ_D OmR_D  %g %g : %g %g : %g %g %g : %g\n",
data/inhomog-0.1.9.2/lib/Omega_D_VAv2.c:393:11:  [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.
          printf(/*nsig=%4.1f%4.1f%4.1f*/" tB2 R : a_D H_D : Omm_D OmQ_D OmR_D  %g %g : %g %g : %g %g %g : %g\n",
data/inhomog-0.1.9.2/lib/Omega_D_effWEC.c:408:11:  [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.
          printf(/*nsig=*/" %4.1f %4.1f %4.1f: tB2 R : a_D H_D : %g %g : %g %g : %g %g %g : %g : %g %g\n",
data/inhomog-0.1.9.2/lib/Omega_D_precalc.c:854:9:  [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.
        printf(/*nsig=%4.1f%4.1f%4.1f*/
data/inhomog-0.1.9.2/xmalloc.c:39:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
extern char *strcpy ();
data/inhomog-0.1.9.2/xmalloc.c:140:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (p, str);
data/inhomog-0.1.9.2/lib/test_gsl_ieee_mode.c:62:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  old_env_gsl_ieee_mode = getenv("GSL_IEEE_MODE");
data/inhomog-0.1.9.2/lib/alloc_big_array.c:52:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      const char  alloc_type[5]){
data/inhomog-0.1.9.2/lib/alloc_big_array.c:60:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                const char  alloc_type[5]);
data/inhomog-0.1.9.2/lib/alloc_big_array.c:63:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                const char  alloc_type[5]){
data/inhomog-0.1.9.2/lib/alloc_big_array.h:30:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      const char  alloc_type[5]);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char string[256];
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char test_string[256];
data/inhomog-0.1.9.2/lib/test_power_spectrum_flatspace.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pow_spec_types[N_spec_types] = {'B', 'e', 'E'};
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:41:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(string," 32 76.0 47",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:43:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(test_string,"45",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:48:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(test_string,"-42",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:53:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
  strncpy(test_string,"",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:58:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(test_string,"  23.0",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:63:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(test_string,"-42.0 ",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:68:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(test_string,"-42.0 ",256);
data/inhomog-0.1.9.2/lib/test_parse_noempty_strtox.c:73:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
  strncpy(test_string,"",256);
data/inhomog-0.1.9.2/xmalloc.c:38:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern size_t strlen ();
data/inhomog-0.1.9.2/xmalloc.c:139:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  p = xmalloc (strlen (str) + 1);

ANALYSIS SUMMARY:

Hits = 24
Lines analyzed = 17166 in approximately 0.50 seconds (34069 lines/second)
Physical Source Lines of Code (SLOC) = 10472
Hits@level = [0] 385 [1]  10 [2]   7 [3]   1 [4]   6 [5]   0
Hits@level+ = [0+] 409 [1+]  24 [2+]  14 [3+]   7 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 39.0565 [1+] 2.29183 [2+] 1.3369 [3+] 0.668449 [4+] 0.572956 [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.