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/sndfile-tools-1.03/src/common.h
Examining data/sndfile-tools-1.03/src/sndfile-mix-to-mono.c
Examining data/sndfile-tools-1.03/src/sndfile-jackplay.c
Examining data/sndfile-tools-1.03/src/sndfile-generate-chirp.c
Examining data/sndfile-tools-1.03/src/window.c
Examining data/sndfile-tools-1.03/src/common.c
Examining data/sndfile-tools-1.03/src/kaiser_window_test.c
Examining data/sndfile-tools-1.03/src/sndfile-spectrogram.c
Examining data/sndfile-tools-1.03/src/window.h

FINAL RESULTS:

data/sndfile-tools-1.03/src/sndfile-generate-chirp.c:56:24:  [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).
			params.start_freq = atoi (argv [k]) ;
data/sndfile-tools-1.03/src/sndfile-generate-chirp.c:61:22:  [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).
			params.end_freq = atoi (argv [k]) ;
data/sndfile-tools-1.03/src/sndfile-generate-chirp.c:79:22:  [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).
	params.samplerate = atoi (argv [argc - 3]) ;
data/sndfile-tools-1.03/src/sndfile-generate-chirp.c:80:19:  [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).
	params.seconds = atoi (argv [argc - 2]) ;
data/sndfile-tools-1.03/src/sndfile-generate-chirp.c:191: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 buffer [1024] ;
data/sndfile-tools-1.03/src/sndfile-jackplay.c:215:4:  [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 name [16] ;
data/sndfile-tools-1.03/src/sndfile-jackplay.c:233:4:  [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 name [64] ;
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:78:67:  [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.
get_colour_map_value (float value, double spec_floor_db, unsigned char colour [3])
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:200:11:  [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.
	unsigned char colour [3] = { 0, 0, 0 } ;
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:235:11:  [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.
	unsigned char colour [3], *data ;
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:337: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 text [512] ;
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:414: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 text [512] ;
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:680: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).
	render.width = atoi (argv [k + 1]) ;
data/sndfile-tools-1.03/src/sndfile-spectrogram.c:681:18:  [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).
	render.height = atoi (argv [k + 2]) ;
data/sndfile-tools-1.03/src/sndfile-jackplay.c:249:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep (50000) ;

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 1668 in approximately 0.07 seconds (23655 lines/second)
Physical Source Lines of Code (SLOC) = 1090
Hits@level = [0]  56 [1]   1 [2]  14 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  71 [1+]  15 [2+]  14 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 65.1376 [1+] 13.7615 [2+] 12.844 [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.