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/cubature-1.0.3+ds/converged.h
Examining data/cubature-1.0.3+ds/cubature.h
Examining data/cubature-1.0.3+ds/hcubature.c
Examining data/cubature-1.0.3+ds/pcubature.c
Examining data/cubature-1.0.3+ds/test.c
Examining data/cubature-1.0.3+ds/vwrapper.h
Examining data/cubature-1.0.3+ds/clencurt_gen.c

FINAL RESULTS:

data/cubature-1.0.3+ds/clencurt_gen.c:137:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     int M = argc > 1 ? atoi(argv[1]) : 11;
data/cubature-1.0.3+ds/hcubature.c:357:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:378:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	       memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:380:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	       memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:382:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	       memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:384:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	       memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:397:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:401:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:404:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:407:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/hcubature.c:410:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(pts, p, sizeof(double) * dim); pts += dim;
data/cubature-1.0.3+ds/pcubature.c:94:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(buf + (*ibuf)++ * dim, p, sizeof(double) * dim);
data/cubature-1.0.3+ds/pcubature.c:159:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(vc->c[ic].m, m, sizeof(unsigned) * dim);
data/cubature-1.0.3+ds/test.c:258:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     dim = argc > 1 ? atoi(argv[1]) : 2;
data/cubature-1.0.3+ds/test.c:260:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     maxEval = argc > 4 ? atoi(argv[4]) : 0;

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 2226 in approximately 0.10 seconds (22538 lines/second)
Physical Source Lines of Code (SLOC) = 1496
Hits@level = [0]  25 [1]   0 [2]  15 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  40 [1+]  15 [2+]  15 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 26.738 [1+] 10.0267 [2+] 10.0267 [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.