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/gwc-0.22.04/amplify.c
Examining data/gwc-0.22.04/ar.c
Examining data/gwc-0.22.04/ar.h
Examining data/gwc-0.22.04/audio_alsa.c
Examining data/gwc-0.22.04/audio_device.c
Examining data/gwc-0.22.04/audio_device.h
Examining data/gwc-0.22.04/audio_edit.c
Examining data/gwc-0.22.04/audio_edit.h
Examining data/gwc-0.22.04/audio_oss.c
Examining data/gwc-0.22.04/audio_osx.c
Examining data/gwc-0.22.04/audio_pa.c
Examining data/gwc-0.22.04/audio_util.c
Examining data/gwc-0.22.04/biquad.c
Examining data/gwc-0.22.04/biquad.h
Examining data/gwc-0.22.04/chbevl.c
Examining data/gwc-0.22.04/declick.c
Examining data/gwc-0.22.04/decrackle.c
Examining data/gwc-0.22.04/denoise.c
Examining data/gwc-0.22.04/dethunk.c
Examining data/gwc-0.22.04/dialog.c
Examining data/gwc-0.22.04/drawing.c
Examining data/gwc-0.22.04/encode.c
Examining data/gwc-0.22.04/encoding.h
Examining data/gwc-0.22.04/fmtheaders.h
Examining data/gwc-0.22.04/gtkled.c
Examining data/gwc-0.22.04/gtkled.h
Examining data/gwc-0.22.04/gtkledbar.c
Examining data/gwc-0.22.04/gtkledbar.h
Examining data/gwc-0.22.04/gwc.c
Examining data/gwc-0.22.04/gwc.h
Examining data/gwc-0.22.04/i0.c
Examining data/gwc-0.22.04/i1.c
Examining data/gwc-0.22.04/markers.c
Examining data/gwc-0.22.04/mconf.h
Examining data/gwc-0.22.04/meschach/MACHINES/Cray/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/GCC/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/Linux/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/MicroSoft/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/OS2/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/RS6000/machine.c
Examining data/gwc-0.22.04/meschach/MACHINES/RS6000/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/SGI/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/SPARC/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/ThinkC/TC-machine-2.h
Examining data/gwc-0.22.04/meschach/MACHINES/ThinkC/TC-machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/ThinkC/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/TurboC/machine.h
Examining data/gwc-0.22.04/meschach/MACHINES/WatcomPC/machine.h
Examining data/gwc-0.22.04/meschach/arnoldi.c
Examining data/gwc-0.22.04/meschach/bdfactor.c
Examining data/gwc-0.22.04/meschach/bkpfacto.c
Examining data/gwc-0.22.04/meschach/chfactor.c
Examining data/gwc-0.22.04/meschach/conjgrad.c
Examining data/gwc-0.22.04/meschach/copy.c
Examining data/gwc-0.22.04/meschach/dmacheps.c
Examining data/gwc-0.22.04/meschach/err.c
Examining data/gwc-0.22.04/meschach/err.h
Examining data/gwc-0.22.04/meschach/extras.c
Examining data/gwc-0.22.04/meschach/fft.c
Examining data/gwc-0.22.04/meschach/fmacheps.c
Examining data/gwc-0.22.04/meschach/givens.c
Examining data/gwc-0.22.04/meschach/hessen.c
Examining data/gwc-0.22.04/meschach/hsehldr.c
Examining data/gwc-0.22.04/meschach/init.c
Examining data/gwc-0.22.04/meschach/iotort.c
Examining data/gwc-0.22.04/meschach/iter.h
Examining data/gwc-0.22.04/meschach/iter0.c
Examining data/gwc-0.22.04/meschach/iternsym.c
Examining data/gwc-0.22.04/meschach/itersym.c
Examining data/gwc-0.22.04/meschach/itertort.c
Examining data/gwc-0.22.04/meschach/ivecop.c
Examining data/gwc-0.22.04/meschach/lanczos.c
Examining data/gwc-0.22.04/meschach/lufactor.c
Examining data/gwc-0.22.04/meschach/machine.c
Examining data/gwc-0.22.04/meschach/matlab.c
Examining data/gwc-0.22.04/meschach/matlab.h
Examining data/gwc-0.22.04/meschach/matop.c
Examining data/gwc-0.22.04/meschach/matrix.h
Examining data/gwc-0.22.04/meschach/matrix2.h
Examining data/gwc-0.22.04/meschach/matrixio.c
Examining data/gwc-0.22.04/meschach/maxint.c
Examining data/gwc-0.22.04/meschach/meminfo.c
Examining data/gwc-0.22.04/meschach/meminfo.h
Examining data/gwc-0.22.04/meschach/memory.c
Examining data/gwc-0.22.04/meschach/memstat.c
Examining data/gwc-0.22.04/meschach/memtort.c
Examining data/gwc-0.22.04/meschach/mfunc.c
Examining data/gwc-0.22.04/meschach/mfuntort.c
Examining data/gwc-0.22.04/meschach/norm.c
Examining data/gwc-0.22.04/meschach/oldnames.h
Examining data/gwc-0.22.04/meschach/otherio.c
Examining data/gwc-0.22.04/meschach/pxop.c
Examining data/gwc-0.22.04/meschach/qrfactor.c
Examining data/gwc-0.22.04/meschach/schur.c
Examining data/gwc-0.22.04/meschach/solve.c
Examining data/gwc-0.22.04/meschach/sparse.c
Examining data/gwc-0.22.04/meschach/sparse.h
Examining data/gwc-0.22.04/meschach/sparse2.h
Examining data/gwc-0.22.04/meschach/sparseio.c
Examining data/gwc-0.22.04/meschach/spbkp.c
Examining data/gwc-0.22.04/meschach/spchfctr.c
Examining data/gwc-0.22.04/meschach/splufctr.c
Examining data/gwc-0.22.04/meschach/sprow.c
Examining data/gwc-0.22.04/meschach/spswap.c
Examining data/gwc-0.22.04/meschach/sptort.c
Examining data/gwc-0.22.04/meschach/submat.c
Examining data/gwc-0.22.04/meschach/svd.c
Examining data/gwc-0.22.04/meschach/symmeig.c
Examining data/gwc-0.22.04/meschach/torture.c
Examining data/gwc-0.22.04/meschach/tutadv.c
Examining data/gwc-0.22.04/meschach/tutorial.c
Examining data/gwc-0.22.04/meschach/update.c
Examining data/gwc-0.22.04/meschach/vecop.c
Examining data/gwc-0.22.04/meschach/version.c
Examining data/gwc-0.22.04/meschach/zcopy.c
Examining data/gwc-0.22.04/meschach/zfunc.c
Examining data/gwc-0.22.04/meschach/zgivens.c
Examining data/gwc-0.22.04/meschach/zhessen.c
Examining data/gwc-0.22.04/meschach/zhsehldr.c
Examining data/gwc-0.22.04/meschach/zlufctr.c
Examining data/gwc-0.22.04/meschach/zmachine.c
Examining data/gwc-0.22.04/meschach/zmatio.c
Parsing failed to find end of parameter list; semicolon terminated it in (fp," ( %lf , %lf )",
#elif REAL == FLOAT
	      if ((io_code=fscanf(fp," ( %f , %f )",
#endif
				  &mat->me[i][j].re,&mat->me[i][j].im)) < 2 )
		  error(io_code==EOF ? E_EOF : E_FORMAT,"bzm_finput")
Parsing failed to find end of parameter list; semicolon terminated it in (fp," (%lf,%lf)",
#elif REAL == FLOAT
          if ((io_code=fscanf(fp," (%f,%f)",
#endif
			      &vec->ve[i].re,&vec->ve[i].im)) < 2 )
	       error(io_code==EOF ? 7 : 6,"bzv_finput");
     
     re
Examining data/gwc-0.22.04/meschach/zmatlab.c
Examining data/gwc-0.22.04/meschach/zmatop.c
Examining data/gwc-0.22.04/meschach/zmatrix.h
Examining data/gwc-0.22.04/meschach/zmatrix2.h
Examining data/gwc-0.22.04/meschach/zmemory.c
Examining data/gwc-0.22.04/meschach/znorm.c
Examining data/gwc-0.22.04/meschach/zqrfctr.c
Examining data/gwc-0.22.04/meschach/zschur.c
Examining data/gwc-0.22.04/meschach/zsolve.c
Examining data/gwc-0.22.04/meschach/ztorture.c
Examining data/gwc-0.22.04/meschach/zvecop.c
Examining data/gwc-0.22.04/mp3-duration.h
Examining data/gwc-0.22.04/mp3.h
Examining data/gwc-0.22.04/pinknoise.c
Examining data/gwc-0.22.04/preferences.c
Examining data/gwc-0.22.04/reverb.c
Examining data/gwc-0.22.04/reverb_settings.h
Examining data/gwc-0.22.04/sample_block.c
Examining data/gwc-0.22.04/soundfile.c
Examining data/gwc-0.22.04/soundfile.h
Examining data/gwc-0.22.04/stat.c
Examining data/gwc-0.22.04/stat.h
Examining data/gwc-0.22.04/tap_reverb.c
Examining data/gwc-0.22.04/tap_reverb.h
Examining data/gwc-0.22.04/tap_reverb_common.h
Examining data/gwc-0.22.04/tap_reverb_file_io.c
Examining data/gwc-0.22.04/tap_reverb_file_io.h
Examining data/gwc-0.22.04/undo.c

FINAL RESULTS:

data/gwc-0.22.04/encode.c:157:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat("lowpass_frequency=",
data/gwc-0.22.04/encode.c:165:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat("bitrate_average_window=",
data/gwc-0.22.04/encode.c:658:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "sox %s -t raw - trim %ld\s %ld\s |", origfilename, start, length) ;
data/gwc-0.22.04/encode.c:677:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(cmd, buf) ;
data/gwc-0.22.04/encode.c:682:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system(cmd) ;
data/gwc-0.22.04/encode.c:707:6:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (execvp(exec_loc, options) == -1) {
data/gwc-0.22.04/encode.c:811:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "sox %s -t raw - trim %ld\s %ld\s |", origfilename, start, length) ;
data/gwc-0.22.04/encode.c:830:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(cmd, buf) ;
data/gwc-0.22.04/encode.c:835:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system(cmd) ;
data/gwc-0.22.04/encode.c:856:6:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (execvp(exec_loc, options) == -1) {
data/gwc-0.22.04/gwc.c:169:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, ap);
data/gwc-0.22.04/gwc.c:200:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, ap);
data/gwc-0.22.04/gwc.c:215:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s%d:%02d:%03d", prefix, m, s, ms);
data/gwc-0.22.04/gwc.c:395:9:  [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(pathname, g_key_file_get_string(key_file, "config", "pathname", NULL));
data/gwc-0.22.04/gwc.c:396:9:  [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(last_filename, g_key_file_get_string(key_file, "config", "last_filename", NULL));
data/gwc-0.22.04/gwc.c:416:9:  [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(audio_device, g_key_file_get_string(key_file, "config", "audio_device", NULL));
data/gwc-0.22.04/gwc.c:638:2:  [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(s, gtk_entry_get_text(GTK_ENTRY(entry)));
data/gwc-0.22.04/gwc.c:675:4:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	  system(command);
data/gwc-0.22.04/gwc.c:714:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  		system(command);
data/gwc-0.22.04/gwc.c:844:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(msg_buf, "Repairing > 300 samples  may cause a crash\nYou have selected %lg samples, which will require about %8.0lf %s of memory and a long time.",
data/gwc-0.22.04/gwc.c:1980:5:  [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(tmp,wave_filename);
data/gwc-0.22.04/gwc.c:1981:5:  [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(wave_filename, last_filename);
data/gwc-0.22.04/gwc.c:1986:5:  [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(wave_filename,tmp);
data/gwc-0.22.04/gwc.c:1999:5:  [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(pathname, tmp);
data/gwc-0.22.04/gwc.c:2041:7:  [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(last_filename, wave_filename);
data/gwc-0.22.04/gwc.c:2069:6:  [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(wave_filename, last_filename);
data/gwc-0.22.04/gwc.c:2084:5:  [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(tmp, wave_filename);
data/gwc-0.22.04/gwc.c:2085:5:  [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(pathname, dirname(tmp));
data/gwc-0.22.04/gwc.c:2088:5:  [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(tmp, wave_filename);
data/gwc-0.22.04/gwc.c:2089:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(pathname, basename(tmp));
data/gwc-0.22.04/gwc.c:2133:4:  [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(last_filename, wave_filename);
data/gwc-0.22.04/gwc.c:2146: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(wave_filename, last_filename);
data/gwc-0.22.04/gwc.c:2158:5:  [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(wave_filename, path);
data/gwc-0.22.04/gwc.c:2343:6:  [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(tmppath, pathname);
data/gwc-0.22.04/gwc.c:3648:2:  [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(wave_filename, argv[1]);
data/gwc-0.22.04/markers.c:224:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(&new_cdtext[new_cdtext_loc], album_info[i].fieldid);
data/gwc-0.22.04/markers.c:226:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(&new_cdtext[new_cdtext_loc], str);
data/gwc-0.22.04/markers.c:284:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		       strcat(&new_cdtext[new_cdtext_loc], buf);
data/gwc-0.22.04/markers.c:286:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		       strcat(&new_cdtext[new_cdtext_loc], str);
data/gwc-0.22.04/markers.c:333:2:  [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(tmppath, wave_filename);
data/gwc-0.22.04/meschach/matrix.h:99: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.
#define	printf			mexPrintf
data/gwc-0.22.04/meschach/matrix.h:349:27:  [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.
	( ( isatty(fileno(fp)) ? fprintf(stderr,prompt) : skipjunk(fp) ), \
data/gwc-0.22.04/meschach/matrix.h:350:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
							fscanf(fp,fmt,var) )
data/gwc-0.22.04/meschach/matrix.h:353:25:  [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.
	( isatty(fileno(fp)) ? fprintf(stderr,prompt) : skipjunk(fp) )
data/gwc-0.22.04/meschach/matrixio.c:477: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(fp,format,a->me[i][j]);
data/gwc-0.22.04/meschach/matrixio.c:526:4:  [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(fp,format,x->ve[i]);
data/gwc-0.22.04/meschach/matrixio.c:558: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(fp,format,a->me[i][j]);
data/gwc-0.22.04/meschach/matrixio.c:609:4:  [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(fp,format,x->ve[i]);
data/gwc-0.22.04/meschach/zmatio.c:340:5:  [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(fp,zformat,z.re,z.im);
data/gwc-0.22.04/meschach/zmatio.c:364: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(fp,zformat,a->me[i][j].re,a->me[i][j].im);
data/gwc-0.22.04/meschach/zmatio.c:388:4:  [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(fp,zformat,x->ve[i].re,x->ve[i].im);
data/gwc-0.22.04/meschach/zmatio.c:418: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(fp,zformat,a->me[i][j].re,a->me[i][j].im);
data/gwc-0.22.04/meschach/zmatio.c:444:4:  [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(fp,zformat,x->ve[i].re,x->ve[i].im);
data/gwc-0.22.04/mp3-duration.h:63:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(comment, "%s=%s", list[i][1], utf8);
data/gwc-0.22.04/preferences.c:247:2:  [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(encoding_prefs.ogg_quality_level,
data/gwc-0.22.04/preferences.c:249:2:  [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(encoding_prefs.ogg_minbitrate,
data/gwc-0.22.04/preferences.c:251:2:  [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(encoding_prefs.ogg_maxbitrate,
data/gwc-0.22.04/preferences.c:253:2:  [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(encoding_prefs.ogg_bitrate,
data/gwc-0.22.04/preferences.c:258:2:  [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(encoding_prefs.ogg_resample,
data/gwc-0.22.04/preferences.c:260:2:  [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(encoding_prefs.ogg_lowpass_frequency,
data/gwc-0.22.04/preferences.c:262:2:  [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(encoding_prefs.ogg_bitrate_average_window,
data/gwc-0.22.04/preferences.c:274:2:  [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(encoding_prefs.oggloc,
data/gwc-0.22.04/preferences.c:392:2:  [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(encoding_prefs.mp3_quality_level,
data/gwc-0.22.04/preferences.c:394:2:  [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(encoding_prefs.mp3loc,
data/gwc-0.22.04/preferences.c:396:2:  [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(encoding_prefs.artist,
data/gwc-0.22.04/preferences.c:398:2:  [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(encoding_prefs.album,
data/gwc-0.22.04/preferences.c:691:2:  [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(encoding_prefs.mp3_bitrate,
data/gwc-0.22.04/preferences.c:693:2:  [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(encoding_prefs.mp3_quality_level,
data/gwc-0.22.04/preferences.c:723:2:  [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(encoding_prefs.mp3loc,
data/gwc-0.22.04/preferences.c:725:2:  [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(encoding_prefs.mp3_lowpass_freq,
data/gwc-0.22.04/preferences.c:727:2:  [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(encoding_prefs.mp3_highpass_freq,
data/gwc-0.22.04/preferences.c:821:2:  [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(audio_device, 
data/gwc-0.22.04/preferences.c:980:2:  [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(encoding_prefs.mp3_quality_level,
data/gwc-0.22.04/preferences.c:984:2:  [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(encoding_prefs.mp3loc,
data/gwc-0.22.04/preferences.c:988:2:  [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(encoding_prefs.artist,
data/gwc-0.22.04/preferences.c:992:2:  [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(encoding_prefs.album,
data/gwc-0.22.04/preferences.c:1008:2:  [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(encoding_prefs.mp3_bitrate,
data/gwc-0.22.04/preferences.c:1012:2:  [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(encoding_prefs.mp3_quality_level,
data/gwc-0.22.04/preferences.c:1016:2:  [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(encoding_prefs.mp3_lowpass_freq,
data/gwc-0.22.04/preferences.c:1020:2:  [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(encoding_prefs.mp3_highpass_freq,
data/gwc-0.22.04/preferences.c:1038:2:  [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(encoding_prefs.mp3loc,
data/gwc-0.22.04/preferences.c:1053:2:  [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(encoding_prefs.ogg_quality_level,
data/gwc-0.22.04/preferences.c:1057:2:  [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(encoding_prefs.oggloc,
data/gwc-0.22.04/preferences.c:1061:2:  [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(encoding_prefs.ogg_bitrate,
data/gwc-0.22.04/preferences.c:1065:2:  [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(encoding_prefs.ogg_maxbitrate,
data/gwc-0.22.04/preferences.c:1069:2:  [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(encoding_prefs.ogg_minbitrate,
data/gwc-0.22.04/preferences.c:1075:2:  [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(encoding_prefs.ogg_resample,
data/gwc-0.22.04/preferences.c:1079:2:  [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(encoding_prefs.ogg_lowpass_frequency,
data/gwc-0.22.04/preferences.c:1083:2:  [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(encoding_prefs.ogg_bitrate_average_window,
data/gwc-0.22.04/reverb.c:46:2:  [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(reverb_method_name, g_key_file_get_string(key_file, "reverb_params", "reverb_method_name", NULL));
data/gwc-0.22.04/reverb.c:145:5:  [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(reverb_method_name, text) ;
data/gwc-0.22.04/sample_block.c:50:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s.gwc", wave_filename) ;
data/gwc-0.22.04/sample_block.c:86:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s.gwc", wave_filename) ;
data/gwc-0.22.04/tap_reverb_file_io.c:124:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s", home, NAME_REVERBED);
data/gwc-0.22.04/tap_reverb_file_io.c:169:5:  [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(item->name, line);
data/gwc-0.22.04/tap_reverb_file_io.c:185:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					sscanf(line, "%s %s %s", str1, str2, str3);
data/gwc-0.22.04/tap_reverb_file_io.c:197:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					sscanf(line, "%s %s", str1, str2);
data/gwc-0.22.04/tap_reverb_file_io.c:208:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					sscanf(line, "%s", str1);
data/gwc-0.22.04/tap_reverb_file_io.c:213:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				sscanf(line, "%s", str1);
data/gwc-0.22.04/undo.c:87:5:  [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(current_undo_msg, undo_msg) ;
data/gwc-0.22.04/meschach/sptort.c:114:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(seed);
data/gwc-0.22.04/tap_reverb_file_io.c:121:15:  [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.
	if (!(home = getenv("HOME")))
data/gwc-0.22.04/amplify.c:177:5:  [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 buf[200] ;
data/gwc-0.22.04/amplify.c:210: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(buf, "Maximum amplification without clipping is %6.2f.\n", (double)1.0/(double)current.max_value) ;
data/gwc-0.22.04/amplify.c:261: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).
	feather_width = atoi(gtk_entry_get_text((GtkEntry *)feather_width_entry)) ;
data/gwc-0.22.04/audio_edit.c:110: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.
        char undo_label[200];
data/gwc-0.22.04/audio_edit.c:113:9:  [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(undo_label, "Paste audio data from %ld to %ld.", first, last);
data/gwc-0.22.04/audio_edit.c:142:5:  [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 undo_label[200];
data/gwc-0.22.04/audio_edit.c:146: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(undo_label, "Delete audio data from %ld to %ld.", first, last);
data/gwc-0.22.04/audio_edit.c:172: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.
        char undo_label[200];
data/gwc-0.22.04/audio_edit.c:174:9:  [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(undo_label, "Insert silence from %ld to %ld.", first, last);
data/gwc-0.22.04/audio_edit.c:196:5:  [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 undo_label[200];
data/gwc-0.22.04/audio_edit.c:202:9:  [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(undo_label, "Delete audio data from %ld to %ld.", last+1, end_pos);
data/gwc-0.22.04/audio_edit.c:222:9:  [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(undo_label, "Delete audio data from 0 to %ld.", first-1);
data/gwc-0.22.04/audio_oss.c:40:21:  [2] (misc) open:
  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).
    if( (audio_fd = open(output_device, O_WRONLY)) == -1) {
data/gwc-0.22.04/audio_util.c:128: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(&(header.main_chunk), riff, 4);
data/gwc-0.22.04/audio_util.c:130: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(&(header.chunk_type), wave, 4);
data/gwc-0.22.04/audio_util.c:132: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(&(header.sub_chunk), fmt, 4);
data/gwc-0.22.04/audio_util.c:144: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(&(header.data_chunk), data, 4);
data/gwc-0.22.04/audio_util.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 buf[85] ;
data/gwc-0.22.04/audio_util.c:204: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 buf[80] ;
data/gwc-0.22.04/audio_util.c:215: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 buf[80] ;
data/gwc-0.22.04/audio_util.c:234:10:  [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 audio_buffer[MAXBUFSIZE] ;
data/gwc-0.22.04/audio_util.c:235:10:  [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 audio_buffer2[MAXBUFSIZE] ;
data/gwc-0.22.04/audio_util.c:278: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 buf[255] ;
data/gwc-0.22.04/audio_util.c:477: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 buf[PATH_MAX] ;
data/gwc-0.22.04/audio_util.c:495: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 buf[TMPBUFSIZE] ;
data/gwc-0.22.04/audio_util.c:580:18:  [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).
    if((fp_ogg = fopen(filename, "r")) != NULL) {
data/gwc-0.22.04/audio_util.c:610: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 buf[180+PATH_MAX] ;
data/gwc-0.22.04/audio_util.c:645:6:  [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 buf[80+PATH_MAX] ;
data/gwc-0.22.04/audio_util.c:659:22:  [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).
        if((fp_ogg = fopen(filename, "r")) != NULL) {
data/gwc-0.22.04/audio_util.c:663:17:  [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 buf[80+PATH_MAX] ;
data/gwc-0.22.04/audio_util.c:681:6:  [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 buf[80+PATH_MAX] ;
data/gwc-0.22.04/audio_util.c:715:6:  [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 tmp[140] ;
data/gwc-0.22.04/audio_util.c:791:12:  [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 buf[1152*4] ;
data/gwc-0.22.04/audio_util.c:954:6:  [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 tmp[100] ;
data/gwc-0.22.04/audio_util.c:1007: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 tmp[100] ;
data/gwc-0.22.04/audio_util.c:1031: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 tmp[100] ;
data/gwc-0.22.04/audio_util.c:1071:6:  [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 tmp[100] ;
data/gwc-0.22.04/audio_util.c:1376:12:  [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 zeros[1024] ;
data/gwc-0.22.04/biquad.c:415: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).
	feather_width = atoi(gtk_entry_get_text((GtkEntry *)feather_entry)) ;
data/gwc-0.22.04/declick.c:687:12:  [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 results_buf[200] ;
data/gwc-0.22.04/declick.c:695:5:  [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 level[2][2*FFT_WINDOW+1][DECLICK_MAX_FFT] ;
data/gwc-0.22.04/declick.c:938:2:  [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(results_buf, "%d clicks repaired, %d clicks marked, but remain unrepaired",
data/gwc-0.22.04/declick.c:956:12:  [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 results_buf[200] ;
data/gwc-0.22.04/declick.c:1155:2:  [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(results_buf, "%d clicks repaired, %d clicks marked, but remain unrepaired",
data/gwc-0.22.04/denoise.c:963:10:  [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).
    fp = fopen("noise.dat", "w") ;
data/gwc-0.22.04/dialog.c:66:5:  [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 buf[100] ;
data/gwc-0.22.04/dialog.c:67: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(buf, "%d", value) ;
data/gwc-0.22.04/dialog.c:73:5:  [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 buf[100] ;
data/gwc-0.22.04/dialog.c:74: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(buf, "%lg", value) ;
data/gwc-0.22.04/drawing.c:463:14:  [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 level[2][MAXSW][MAXSH] ;
data/gwc-0.22.04/encode.c:38:1:  [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 *options[255];
data/gwc-0.22.04/encode.c:39:1:  [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 pipe_name[256] ;
data/gwc-0.22.04/encode.c:50: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(pipe_name, ".gwc_pipe%d\n", (int)getpid()) ;
data/gwc-0.22.04/encode.c:337: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).
	    int qval = atoi(encoding_prefs.mp3_quality_level);
data/gwc-0.22.04/encode.c:361:14:  [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 bval = atoi(encoding_prefs.mp3_bitrate);
data/gwc-0.22.04/encode.c:635:5:  [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 cmd[2048] ;
data/gwc-0.22.04/encode.c:665:6:  [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 buf[10] ;
data/gwc-0.22.04/encode.c:673: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(buf, "\\%c", options[i][j]) ;
data/gwc-0.22.04/encode.c:675: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(buf, "%c", options[i][j]) ;
data/gwc-0.22.04/encode.c:788:5:  [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 cmd[2048] ;
data/gwc-0.22.04/encode.c:818: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 buf[10] ;
data/gwc-0.22.04/encode.c:826:7:  [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(buf, "\\%c", options[i][j]) ;
data/gwc-0.22.04/encode.c:828:7:  [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(buf, "%c", options[i][j]) ;
data/gwc-0.22.04/encode.c:845: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 buf[254] ;
data/gwc-0.22.04/encoding.h:8: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.
        char mp3_bitrate[6];
data/gwc-0.22.04/encoding.h:9: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.
        char mp3_quality_level[2];
data/gwc-0.22.04/encoding.h:24: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 mp3_lowpass_freq[6];
data/gwc-0.22.04/encoding.h:25: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 mp3_highpass_freq[6];
data/gwc-0.22.04/encoding.h:26: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 mp3loc[256]; /* Full path and executable for mp3 encoder */
data/gwc-0.22.04/encoding.h:27: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 artist[256];
data/gwc-0.22.04/encoding.h:28: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 album[256];
data/gwc-0.22.04/encoding.h:31: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 ogg_quality_level[7]; /*  6 characters */
data/gwc-0.22.04/encoding.h:32: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 oggloc[256]; /* Full path and executable for ogg encoder */
data/gwc-0.22.04/encoding.h:34: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 ogg_bitrate[6];
data/gwc-0.22.04/encoding.h:35: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.
        char ogg_maxbitrate[6];
data/gwc-0.22.04/encoding.h:36: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.
        char ogg_minbitrate[6];
data/gwc-0.22.04/encoding.h:38: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.
        char ogg_resample[6]; /*  Resample at new rate  */
data/gwc-0.22.04/encoding.h:40: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  ogg_lowpass_frequency[6];
data/gwc-0.22.04/encoding.h:41: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  ogg_bitrate_average_window[6];
data/gwc-0.22.04/gwc.c:75:1:  [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 pathname[PATH_MAX+1] = "./";
data/gwc-0.22.04/gwc.c:129:1:  [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 audio_device[256]="default";
data/gwc-0.22.04/gwc.c:131:1:  [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 audio_device[256]="/dev/dsp";
data/gwc-0.22.04/gwc.c:250: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 *fp = fopen("cdrdao.toc", "a");
data/gwc-0.22.04/gwc.c:254:7:  [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).
	fp = fopen("cdrdao.toc", "w");
data/gwc-0.22.04/gwc.c:269:5:  [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 buf[50];
data/gwc-0.22.04/gwc.c:286: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(buf, "Samples: %ld", last - first + 1);
data/gwc-0.22.04/gwc.c:288: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(buf, "Track samples: %ld", audio_view.n_samples);
data/gwc-0.22.04/gwc.c:298: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(buf, " %ld", last - first + 1);
data/gwc-0.22.04/gwc.c:819:6:  [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 msg_buf[1000] ;
data/gwc-0.22.04/gwc.c:1573:6:  [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 filename[100] ;
data/gwc-0.22.04/gwc.c:1969:5:  [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 tmp[PATH_MAX+1];
data/gwc-0.22.04/gwc.c:2079:5:  [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 tmp[PATH_MAX+1];
data/gwc-0.22.04/gwc.c:2305:5:  [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 trackname[1024] = "" ;
data/gwc-0.22.04/gwc.c:2340: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 tmppath[PATH_MAX+6];
data/gwc-0.22.04/gwc.c:2363:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(tmppath, ".ogg");
data/gwc-0.22.04/gwc.c:2372:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(tmppath, ".mp3");
data/gwc-0.22.04/gwc.c:2943:5:  [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 buf[255];
data/gwc-0.22.04/gwc.c:3001:10:  [2] (integer) atol:
  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).
		return atol(time);
data/gwc-0.22.04/gwc.c:3039:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[5]) ;
data/gwc-0.22.04/gwc.c:3063:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[5]) ;
data/gwc-0.22.04/gwc.c:3087:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[5]) ;
data/gwc-0.22.04/gwc.c:3110:30:  [2] (integer) atol:
  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).
		denoise_data.noise_start = atol(argv[4]);
data/gwc-0.22.04/gwc.c:3112:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[6]);
data/gwc-0.22.04/gwc.c:3149:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[4]) ;
data/gwc-0.22.04/gwc.c:3172:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[4]) ;
data/gwc-0.22.04/gwc.c:3194:30:  [2] (integer) atol:
  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).
		audio_view.truncate_head = atol(argv[4]) ;
data/gwc-0.22.04/gwc.c:3207:38:  [2] (integer) atol:
  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).
		audio_view.selected_first_sample = atol(argv[4]) ;
data/gwc-0.22.04/gwc.c:3626: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 buf[100];
data/gwc-0.22.04/gwc.h:176:5:  [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 channel[MAX_CLICKS] ;
data/gwc-0.22.04/markers.c:126:5:  [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 buf[200], buf2[200];
data/gwc-0.22.04/markers.c:187:8:  [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).
	toc = fopen(filename,"w");
data/gwc-0.22.04/markers.c:195:16:  [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.
	       str = (char *)gtk_entry_get_text(GTK_ENTRY(album_info[i].widget));
data/gwc-0.22.04/markers.c:204:12:  [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.
		  str = (char *)gtk_entry_get_text(GTK_ENTRY(song_widget[j][i]));
data/gwc-0.22.04/markers.c:218: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.
		 str = (char *)gtk_entry_get_text(GTK_ENTRY(album_info[i].widget));
data/gwc-0.22.04/markers.c:279:14:  [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.
		    str = (char *)gtk_entry_get_text(GTK_ENTRY(song_widget[j][i]));
data/gwc-0.22.04/markers.c:327: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 tmppath[PATH_MAX+6];
data/gwc-0.22.04/markers.c:344:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(".toc", strrchr(tmppath, '.'), 4);
data/gwc-0.22.04/markers.c:561:5:  [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 buf[200];
data/gwc-0.22.04/meschach/MACHINES/Cray/machine.h:107:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/GCC/machine.h:76:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/Linux/machine.h:78:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/MicroSoft/machine.h:109:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/OS2/machine.h:76:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/RS6000/machine.h:71:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/SGI/machine.h:107:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/SPARC/machine.h:72:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/ThinkC/TC-machine-2.h:203:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/ThinkC/TC-machine.h:200:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/ThinkC/machine.h:209:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/TurboC/machine.h:121:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/MACHINES/WatcomPC/machine.h:113:32:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	MEM_COPY(from,to,size)	bcopy((char *)(from),(char *)(to),(int)(size))
data/gwc-0.22.04/meschach/err.c:156:12:  [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.
     free((char *)err_list[list_num].listp);
data/gwc-0.22.04/meschach/iotort.c:55:14:  [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).
   if ((fp = fopen("iotort.dat","w")) == NULL) {
data/gwc-0.22.04/meschach/iotort.c:99:14:  [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).
   if ((fp = fopen("iotort.dat","r")) == NULL) {
data/gwc-0.22.04/meschach/ivecop.c:34:8:  [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    line[MAXLINE];
data/gwc-0.22.04/meschach/matrixio.c:38:8:  [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 line[MAXLINE];
data/gwc-0.22.04/meschach/otherio.c:40:8:  [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	scratch[MAXLINE+1];
data/gwc-0.22.04/meschach/sparseio.c:40:8:  [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 line[MAXLINE];
data/gwc-0.22.04/meschach/sparseio.c:283:38:  [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.
			rows[i].elt = (row_elt *)realloc((char *)rows[i].elt,
data/gwc-0.22.04/meschach/sparseio.c:347:38:  [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.
			rows[i].elt = (row_elt *)realloc((char *)rows[i].elt,
data/gwc-0.22.04/meschach/torture.c:93:1:  [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[81] = MATLAB_NAME;
data/gwc-0.22.04/meschach/torture.c:399:14:  [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).
    if ( (fp=fopen(SAVE_FILE,"w")) == (FILE *)NULL )
data/gwc-0.22.04/meschach/torture.c:406:11:  [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).
	if ( (fp=fopen(SAVE_FILE,"r")) == (FILE *)NULL )
data/gwc-0.22.04/meschach/tutorial.c:290:9:  [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).
   fp = fopen("laplace.mat","w");  /* b will be saved in laplace.mat */
data/gwc-0.22.04/meschach/zmatio.c:37:8:  [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 line[MAXLINE];
data/gwc-0.22.04/meschach/ztorture.c:88:1:  [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[81] = MATLAB_NAME;
data/gwc-0.22.04/meschach/ztorture.c:422:14:  [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).
    if ( (fp=fopen(SAVE_FILE,"w")) == (FILE *)NULL )
data/gwc-0.22.04/meschach/ztorture.c:429:11:  [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).
	if ( (fp=fopen(SAVE_FILE,"r")) == (FILE *)NULL )
data/gwc-0.22.04/mp3-duration.h:69:13:  [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).
        if (atoi((char *)utf8) > 0) {
data/gwc-0.22.04/mp3-duration.h:70:31:  [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).
          ft->signal.length = atoi((char *)utf8); /* In ms; convert to samples later */
data/gwc-0.22.04/mp3-duration.h:115:5:  [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(buffer, mad_stream.this_frame, leftover);
data/gwc-0.22.04/pinknoise.c:284: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).
	feather_width = atoi(gtk_entry_get_text((GtkEntry *)feather_width_entry)) ;
data/gwc-0.22.04/pinknoise.c:285:14:  [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).
	n_pn_rows = atoi(gtk_entry_get_text((GtkEntry *)n_rows_entry)) ;
data/gwc-0.22.04/preferences.c:164:34:  [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).
	add_number_entry_with_label_int(atoi(encoding_prefs.ogg_bitrate),
data/gwc-0.22.04/preferences.c:169:34:  [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).
	add_number_entry_with_label_int(atoi
data/gwc-0.22.04/preferences.c:175:34:  [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).
	add_number_entry_with_label_int(atoi
data/gwc-0.22.04/preferences.c:181:34:  [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).
	add_number_entry_with_label_int(atoi(encoding_prefs.ogg_resample),
data/gwc-0.22.04/preferences.c:186:34:  [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).
	add_number_entry_with_label_int(atoi
data/gwc-0.22.04/preferences.c:193:34:  [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).
	add_number_entry_with_label_int(atoi
data/gwc-0.22.04/preferences.c:349:34:  [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).
	add_number_entry_with_label_int(atoi
data/gwc-0.22.04/preferences.c:599:34:  [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).
	add_number_entry_with_label_int(atoi(encoding_prefs.mp3_bitrate),
data/gwc-0.22.04/preferences.c:604:34:  [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).
	add_number_entry_with_label_int(atoi
data/gwc-0.22.04/preferences.c:817:6:  [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).
	    atoi(gtk_entry_get_text((GtkEntry *) normalize_entry));
data/gwc-0.22.04/preferences.c:962:6:  [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).
	    atoi(gtk_entry_get_text((GtkEntry *) dcw_entry));
data/gwc-0.22.04/preferences.c:964:6:  [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).
	    atoi(gtk_entry_get_text((GtkEntry *) dca_entry));
data/gwc-0.22.04/preferences.c:1426:6:  [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 = atoi(gtk_entry_get_text((GtkEntry *) fft_size_entry));
data/gwc-0.22.04/preferences.c:1434:6:  [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).
	    atoi(gtk_entry_get_text((GtkEntry *) smoothness_entry));
data/gwc-0.22.04/preferences.c:1436:6:  [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).
	    atoi(gtk_entry_get_text((GtkEntry *) n_noise_entry));
data/gwc-0.22.04/preferences.c:1442:30:  [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).
	denoise_prefs.freq_filter = atoi(gtk_entry_get_text((GtkEntry *) freq_filter_entry));
data/gwc-0.22.04/preferences.c:1443:39:  [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).
	denoise_prefs.estimate_power_floor = atoi(gtk_entry_get_text((GtkEntry *) estimate_power_floor_entry));
data/gwc-0.22.04/reverb.c:30:8:  [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 reverb_method_name[128] ;
data/gwc-0.22.04/reverb.c:52:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(reverb_method_name, "Ambience (Thick) - HD") ;
data/gwc-0.22.04/reverb.c:166:5:  [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 buf[200] ;
data/gwc-0.22.04/reverb.c:239:14:  [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).
	wet_level = atoi(gtk_entry_get_text((GtkEntry *)wet_entry)) ;
data/gwc-0.22.04/reverb.c:240:14:  [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).
	dry_level = atoi(gtk_entry_get_text((GtkEntry *)dry_entry)) ;
data/gwc-0.22.04/reverb.c:241:10:  [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).
	decay = atoi(gtk_entry_get_text((GtkEntry *)decay_entry)) ;
data/gwc-0.22.04/sample_block.c:47:5:  [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 buf[1000] ;
data/gwc-0.22.04/sample_block.c:51:10:  [2] (misc) open:
  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).
    fd = open(buf, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR|S_IWUSR) ;
data/gwc-0.22.04/sample_block.c:53: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(buf, "gwc %d %d", GWC_VERSION_MAJOR, GWC_VERSION_MINOR) ;
data/gwc-0.22.04/sample_block.c:58: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(buf, "%d %ld %d", p->n_channels,p->n_samples,p->rate) ;
data/gwc-0.22.04/sample_block.c:82:5:  [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 buf[1000] ;
data/gwc-0.22.04/sample_block.c:88:10:  [2] (misc) open:
  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).
    fd = open(buf, O_RDONLY) ;
data/gwc-0.22.04/tap_reverb.c:472:3:  [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(output_L, input_L, sizeof(reverb_audio_sample_t) * nframes);
data/gwc-0.22.04/tap_reverb.c:473:3:  [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(output_R, input_R, sizeof(reverb_audio_sample_t) * nframes);
data/gwc-0.22.04/tap_reverb_file_io.c:107: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 path[MAXLEN];
data/gwc-0.22.04/tap_reverb_file_io.c:109: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 line[1024];
data/gwc-0.22.04/tap_reverb_file_io.c:111: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 str1[MAXLEN];
data/gwc-0.22.04/tap_reverb_file_io.c:112: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 str2[MAXLEN];
data/gwc-0.22.04/tap_reverb_file_io.c:113: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 str3[MAXLEN];
data/gwc-0.22.04/tap_reverb_file_io.c:126: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).
	if ((infile = fopen(path,"rt")) == NULL) {
data/gwc-0.22.04/tap_reverb_file_io.h:27: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.
        char name[MAXLEN];
data/gwc-0.22.04/undo.c:40:8:  [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 current_undo_msg[200] ;
data/gwc-0.22.04/undo.c:52:5:  [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 _filename[1024];
data/gwc-0.22.04/undo.c:57:2:  [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(_filename, "gwc_undo_%d.dat", undo_level) ;
data/gwc-0.22.04/undo.c:67:20:  [2] (misc) open:
  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).
    if( (undo_fd = open(filename, O_CREAT|O_TRUNC|O_RDWR, S_IRUSR|S_IWUSR)) == -1) {	
data/gwc-0.22.04/undo.c:74:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(current_undo_msg, "Nothing to undo") ;
data/gwc-0.22.04/undo.c:102:5:  [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 buf[BLOCK_SIZE * FRAMESIZE] ;
data/gwc-0.22.04/undo.c:114: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 buf[200] ;
data/gwc-0.22.04/undo.c:117:2:  [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(buf, "Undo will need %7.2f Mbytes of disk space (skipping undo commits changes to your original audio file)", n_sample*FRAMESIZE/1000000.0) ;
data/gwc-0.22.04/undo.c:223:5:  [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 _filename[1024] ;
data/gwc-0.22.04/undo.c:225:5:  [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 buf[BLOCK_SIZE * FRAMESIZE] ;
data/gwc-0.22.04/undo.c:237:2:  [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(_filename, "gwc_undo_%d.dat", undo_level) ;
data/gwc-0.22.04/undo.c:242:20:  [2] (misc) open:
  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).
    if( (undo_fd = open(filename, O_RDONLY)) == -1) {
data/gwc-0.22.04/undo.c:361:5:  [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 _filename[1024] ;
data/gwc-0.22.04/undo.c:364:2:  [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(_filename, "gwc_undo_%d.dat", undo_level) ;
data/gwc-0.22.04/audio_oss.c:86:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int len = read(audio_fd, buffer, buffersize);
data/gwc-0.22.04/audio_util.c:504:6:  [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(2) ; // prevents segfault on OSX, who knows, something to do with status bar update...
data/gwc-0.22.04/audio_util.c:1413:6:  [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(100) ;
data/gwc-0.22.04/audio_util.c:1424:2:  [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(100) ;
data/gwc-0.22.04/denoise.c:855:6:  [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(2);
data/gwc-0.22.04/encode.c:64:7:  [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).
	if ((strlen(encoding_prefs.oggloc) == 0)
data/gwc-0.22.04/encode.c:169:7:  [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).
	if ((strlen(trackname) > 0)) {
data/gwc-0.22.04/encode.c:203:7:  [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).
	if ((strlen(encoding_prefs.mp3loc) == 0)
data/gwc-0.22.04/encode.c:455:7:  [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).
	if ((strlen(trackname) > 0)) {
data/gwc-0.22.04/encode.c:469:7:  [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).
	if ((strlen(encoding_prefs.mp3loc) == 0)
data/gwc-0.22.04/encode.c:539:7:  [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).
	if ((strlen(encoding_prefs.artist) > 0)) {
data/gwc-0.22.04/encode.c:545:7:  [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).
	if ((strlen(encoding_prefs.album) > 0)) {
data/gwc-0.22.04/encode.c:551:7:  [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).
	if ((strlen(trackname) > 0)) {
data/gwc-0.22.04/encode.c:662:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(cmd, " ") ;
data/gwc-0.22.04/encode.c:664:18:  [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).
	for(j = 0 ; j < strlen(options[i]) ; j++) {
data/gwc-0.22.04/encode.c:815:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(cmd, " ") ;
data/gwc-0.22.04/encode.c:817:22:  [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).
	    for(j = 0 ; j < strlen(options[i]) ; j++) {
data/gwc-0.22.04/gwc.c:339:5:  [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(333);
data/gwc-0.22.04/gwc.c:619:8:  [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).
    if(strlen(s) > 0)
data/gwc-0.22.04/gwc.c:2001:9:  [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).
    l = strlen(wave_filename);
data/gwc-0.22.04/gwc.c:2086:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(pathname, "/");
data/gwc-0.22.04/gwc.c:2097:6:  [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).
	l = strlen(wave_filename);
data/gwc-0.22.04/gwc.c:2168:6:  [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).
	l = strlen(save_selection_filename);
data/gwc-0.22.04/gwc.c:2275:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(wave_filename,
data/gwc-0.22.04/gwc.c:2312:6:  [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).
	l = strlen(save_selection_filename);
data/gwc-0.22.04/gwc.c:2391:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(save_selection_filename,
data/gwc-0.22.04/gwc.c:2463:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(save_selection_filename,
data/gwc-0.22.04/gwc.c:3630:18:  [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).
	for (i = 0; i < strlen(buf); i++) {
data/gwc-0.22.04/markers.c:59:12:  [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).
     len = strlen(data);
data/gwc-0.22.04/markers.c:65: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).
        len = strlen(data);
data/gwc-0.22.04/markers.c:197:30:  [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).
	       new_cdtext_length += strlen(str) + strlen(album_info[i].fieldid) + 2 ;
data/gwc-0.22.04/markers.c:197:44:  [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).
	       new_cdtext_length += strlen(str) + strlen(album_info[i].fieldid) + 2 ;
data/gwc-0.22.04/markers.c:198:13:  [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).
	       if (strlen(album_info[i].init) == 0 && !only_blank(str))
data/gwc-0.22.04/markers.c:206:26:  [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).
		  new_cdtext_length += strlen(str) + strlen(song_info[i].fieldid) + 3 + 2;
data/gwc-0.22.04/markers.c:206:40:  [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).
		  new_cdtext_length += strlen(str) + strlen(song_info[i].fieldid) + 3 + 2;
data/gwc-0.22.04/markers.c:225:25:  [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).
		    new_cdtext_loc += strlen(&new_cdtext[new_cdtext_loc]) + 1;
data/gwc-0.22.04/markers.c:227:25:  [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).
		    new_cdtext_loc += strlen(&new_cdtext[new_cdtext_loc]) + 1;
data/gwc-0.22.04/markers.c:285:28:  [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).
		       new_cdtext_loc += strlen(&new_cdtext[new_cdtext_loc]) + 1;
data/gwc-0.22.04/markers.c:287:28:  [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).
		       new_cdtext_loc += strlen(&new_cdtext[new_cdtext_loc]) + 1;
data/gwc-0.22.04/markers.c:313:6:  [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).
	l = strlen(save_cdrdao_toc_filename) ;
data/gwc-0.22.04/markers.c:367:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(save_cdrdao_toc_filename,
data/gwc-0.22.04/meschach/matlab.c:62:44:  [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).
	mat.namlen = (name == (char *)NULL) ? 1 : strlen(name)+1;
data/gwc-0.22.04/meschach/matlab.c:106:44:  [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).
	mat.namlen = (name == (char *)NULL) ? 1 : strlen(name)+1;
data/gwc-0.22.04/meschach/matlab.c:140:44:  [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).
	mat.namlen = (name == (char *)NULL) ? 1 : strlen(name)+1;
data/gwc-0.22.04/meschach/matrixio.c:59:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       c = getc(fp);
data/gwc-0.22.04/meschach/matrixio.c:65:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       while ( (c=getc(fp)) != '\n' )
data/gwc-0.22.04/meschach/zmatlab.c:59:47:  [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).
    mat.namlen = (name == (char *)NULL) ? 1 : strlen(name)+1;
data/gwc-0.22.04/meschach/zmatlab.c:107:47:  [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).
    mat.namlen = (name == (char *)NULL) ? 1 : strlen(name)+1;
data/gwc-0.22.04/meschach/zmatlab.c:138:47:  [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).
    mat.namlen = (name == (char *)NULL) ? 1 : strlen(name)+1;
data/gwc-0.22.04/mp3-duration.h:62:39:  [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).
          char * comment = lsx_malloc(strlen(list[i][1]) + 1 + strlen((char *)utf8) + 1);
data/gwc-0.22.04/mp3-duration.h:62:64:  [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).
          char * comment = lsx_malloc(strlen(list[i][1]) + 1 + strlen((char *)utf8) + 1);
data/gwc-0.22.04/mp3-duration.h:112:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read, padding = 0;
data/gwc-0.22.04/mp3-duration.h:117:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read <= 0) {
data/gwc-0.22.04/mp3-duration.h:121:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (; !depadded && padding < read && !buffer[padding]; ++padding);
data/gwc-0.22.04/preferences.c:123:6:  [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).
	&& (strlen(encoding_prefs.oggloc) > 0)) {
data/gwc-0.22.04/preferences.c:324:6:  [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).
	&& (strlen(encoding_prefs.mp3loc) > 0)) {
data/gwc-0.22.04/preferences.c:334:6:  [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).
	&& (strlen(encoding_prefs.artist) > 0)) {
data/gwc-0.22.04/preferences.c:343:6:  [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).
	&& (strlen(encoding_prefs.album) > 0)) {
data/gwc-0.22.04/preferences.c:594:6:  [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).
	&& (strlen(encoding_prefs.mp3loc) > 0)) {
data/gwc-0.22.04/sample_block.c:54: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).
    l = (char)strlen(buf) ;
data/gwc-0.22.04/sample_block.c:59: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).
    l = (char)strlen(buf) ;
data/gwc-0.22.04/sample_block.c:95:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd, (void *)&l, 1) ;
data/gwc-0.22.04/sample_block.c:96:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd, (void *)buf, l) ;
data/gwc-0.22.04/sample_block.c:113:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd, (void *)&l, 1) ;
data/gwc-0.22.04/sample_block.c:114:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd, (void *)buf, l) ;
data/gwc-0.22.04/sample_block.c:131:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd, (void *)sample_buffer, sb_size) ;
data/gwc-0.22.04/sample_block.c:135:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, (void *)&n_markers, sizeof(long)) ;
data/gwc-0.22.04/sample_block.c:136:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, (void *)markers, sizeof(long)*n_markers) ;
data/gwc-0.22.04/sample_block.c:140:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, (void *)&num_song_markers, sizeof(long)) ;
data/gwc-0.22.04/sample_block.c:141:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, (void *)song_markers, sizeof(long)*num_song_markers) ;
data/gwc-0.22.04/sample_block.c:143:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, (void *)&cdtext_length, sizeof(long)) ;
data/gwc-0.22.04/sample_block.c:149:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	        read(fd, (void *)cdtext_data, cdtext_length) ;
data/gwc-0.22.04/tap_reverb_file_io.c:97:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return fgetc(infile) ;
data/gwc-0.22.04/undo.c:76:9:  [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).
    l = strlen(current_undo_msg) ;
data/gwc-0.22.04/undo.c:250:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(undo_fd, (char *)&l, sizeof(l)) ;
data/gwc-0.22.04/undo.c:252:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(undo_fd, current_undo_msg, l) ;
data/gwc-0.22.04/undo.c:255:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(undo_fd, (char *)&v->selected_first_sample, sizeof(v->selected_first_sample)) ;
data/gwc-0.22.04/undo.c:256:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(undo_fd, (char *)&v->selected_last_sample, sizeof(v->selected_last_sample)) ;
data/gwc-0.22.04/undo.c:257:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(undo_fd, (char *)&v->channel_selection_mask, sizeof(v->channel_selection_mask)) ;
data/gwc-0.22.04/undo.c:264:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while(read(undo_fd, (char *)&first_sample, sizeof(first_sample)) == sizeof(first_sample) ) {
data/gwc-0.22.04/undo.c:265:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(undo_fd, (char *)&last_sample, sizeof(last_sample)) ;
data/gwc-0.22.04/undo.c:267:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(undo_fd, (char *)&undo_type, sizeof(undo_type)) ;
data/gwc-0.22.04/undo.c:271:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(undo_fd, (char *)buf, sizeof(short)*2) ;
data/gwc-0.22.04/undo.c:293:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(undo_fd, (char *)&first_sample, sizeof(first_sample)) ;
data/gwc-0.22.04/undo.c:294:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(undo_fd, (char *)&last_sample, sizeof(last_sample)) ;
data/gwc-0.22.04/undo.c:296:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(undo_fd, (char *)&undo_type, sizeof(undo_type)) ;
data/gwc-0.22.04/undo.c:318:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(undo_fd, (char *)buf, FRAMESIZE * (end - curr + 1)) ;

ANALYSIS SUMMARY:

Hits = 394
Lines analyzed = 59251 in approximately 1.64 seconds (36189 lines/second)
Physical Source Lines of Code (SLOC) = 40265
Hits@level = [0] 648 [1]  87 [2] 205 [3]   2 [4] 100 [5]   0
Hits@level+ = [0+] 1042 [1+] 394 [2+] 307 [3+] 102 [4+] 100 [5+]   0
Hits/KSLOC@level+ = [0+] 25.8786 [1+] 9.78517 [2+] 7.62449 [3+] 2.53322 [4+] 2.48355 [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.