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/voro++-0.4.6+dfsg1/examples/basic/import.cc
Examining data/voro++-0.4.6+dfsg1/examples/basic/platonic.cc
Examining data/voro++-0.4.6+dfsg1/examples/basic/random_points.cc
Examining data/voro++-0.4.6+dfsg1/examples/basic/single_cell.cc
Examining data/voro++-0.4.6+dfsg1/examples/custom/cell_statistics.cc
Examining data/voro++-0.4.6+dfsg1/examples/custom/custom_output.cc
Examining data/voro++-0.4.6+dfsg1/examples/custom/radical.cc
Examining data/voro++-0.4.6+dfsg1/examples/degenerate/degenerate.cc
Examining data/voro++-0.4.6+dfsg1/examples/degenerate/degenerate2.cc
Examining data/voro++-0.4.6+dfsg1/examples/extra/box_cut.cc
Examining data/voro++-0.4.6+dfsg1/examples/extra/cut_region.cc
Examining data/voro++-0.4.6+dfsg1/examples/extra/irregular.cc
Examining data/voro++-0.4.6+dfsg1/examples/extra/superellipsoid.cc
Examining data/voro++-0.4.6+dfsg1/examples/interface/find_voro_cell.cc
Examining data/voro++-0.4.6+dfsg1/examples/interface/loops.cc
Examining data/voro++-0.4.6+dfsg1/examples/interface/odd_even.cc
Examining data/voro++-0.4.6+dfsg1/examples/interface/polygons.cc
Examining data/voro++-0.4.6+dfsg1/examples/timing/timing_test.cc
Examining data/voro++-0.4.6+dfsg1/examples/walls/cylinder.cc
Examining data/voro++-0.4.6+dfsg1/examples/walls/frustum.cc
Examining data/voro++-0.4.6+dfsg1/examples/walls/tetrahedron.cc
Examining data/voro++-0.4.6+dfsg1/examples/walls/torus.cc
Examining data/voro++-0.4.6+dfsg1/src/c_loops.cc
Examining data/voro++-0.4.6+dfsg1/src/cell.cc
Examining data/voro++-0.4.6+dfsg1/src/common.cc
Examining data/voro++-0.4.6+dfsg1/src/container.cc
Examining data/voro++-0.4.6+dfsg1/src/container_prd.cc
Examining data/voro++-0.4.6+dfsg1/src/pre_container.cc
Examining data/voro++-0.4.6+dfsg1/src/unitcell.cc
Examining data/voro++-0.4.6+dfsg1/src/v_base.cc
Examining data/voro++-0.4.6+dfsg1/src/v_base_wl.cc
Examining data/voro++-0.4.6+dfsg1/src/v_compute.cc
Examining data/voro++-0.4.6+dfsg1/src/voro++.cc
Examining data/voro++-0.4.6+dfsg1/src/wall.cc
Examining data/voro++-0.4.6+dfsg1/src/cmd_line.cc

FINAL RESULTS:

data/voro++-0.4.6+dfsg1/src/cmd_line.cc:410:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer,"%s.vol",argv[i+6]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:413:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer,"%s.gnu",argv[i+6]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:417:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer,"%s_p.pov",argv[i+6]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:421:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer,"%s_v.pov",argv[i+6]);
data/voro++-0.4.6+dfsg1/examples/interface/polygons.cc:84:9:  [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.
	static char s[6][128];
data/voro++-0.4.6+dfsg1/examples/interface/polygons.cc:90:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s[k],"<%g,%g,%g>",v[l],v[l+1],v[l+2]);
data/voro++-0.4.6+dfsg1/src/cell.cc:1489:2:  [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 posbuf1[128],posbuf2[128];
data/voro++-0.4.6+dfsg1/src/cell.cc:1491:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(posbuf1,"%g,%g,%g",x+*ptsp*0.5,y+ptsp[1]*0.5,z+ptsp[2]*0.5);
data/voro++-0.4.6+dfsg1/src/cell.cc:1497:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(posbuf2,"%g,%g,%g",x+*pt2*0.5,y+0.5*pt2[1],z+0.5*pt2[2]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:225:17:  [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).
			i++;init_mem=atoi(argv[i]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:235:7:  [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).
			nx=atoi(argv[i++]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:236:7:  [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).
			ny=atoi(argv[i++]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:237:7:  [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).
			nz=atoi(argv[i]);
data/voro++-0.4.6+dfsg1/src/cmd_line.cc:401:11:  [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).
	int flen=strlen(argv[i+6]);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 7463 in approximately 0.36 seconds (20668 lines/second)
Physical Source Lines of Code (SLOC) = 4717
Hits@level = [0] 147 [1]   1 [2]   9 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+] 161 [1+]  14 [2+]  13 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 34.1319 [1+] 2.96799 [2+] 2.75599 [3+] 0.847997 [4+] 0.847997 [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.