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/goattracker-2.75/src/gsong.c
Examining data/goattracker-2.75/src/gfile.c
Examining data/goattracker-2.75/src/mod2sng.c
Examining data/goattracker-2.75/src/gconsole.h
Examining data/goattracker-2.75/src/resid-fp/siddefsfp.h
Examining data/goattracker-2.75/src/resid-fp/voicefp.cpp
Examining data/goattracker-2.75/src/resid-fp/extfiltfp.cpp
Examining data/goattracker-2.75/src/resid-fp/sidfp.cpp
Examining data/goattracker-2.75/src/resid-fp/potfp.h
Examining data/goattracker-2.75/src/resid-fp/voicefp.h
Examining data/goattracker-2.75/src/resid-fp/potfp.cpp
Examining data/goattracker-2.75/src/resid-fp/wavefp.h
Examining data/goattracker-2.75/src/resid-fp/sidfp.h
Examining data/goattracker-2.75/src/resid-fp/filterfp.cpp
Examining data/goattracker-2.75/src/resid-fp/envelopefp.cpp
Examining data/goattracker-2.75/src/resid-fp/extfiltfp.h
Examining data/goattracker-2.75/src/resid-fp/filterfp.h
Examining data/goattracker-2.75/src/resid-fp/envelopefp.h
Examining data/goattracker-2.75/src/resid-fp/versionfp.cpp
Examining data/goattracker-2.75/src/resid-fp/wavefp.cpp
Examining data/goattracker-2.75/src/ginstr.c
Examining data/goattracker-2.75/src/gt2reloc.c
Examining data/goattracker-2.75/src/gdisplay.c
Examining data/goattracker-2.75/src/gsid.h
Examining data/goattracker-2.75/src/gplay.h
Examining data/goattracker-2.75/src/cwsid.h
Examining data/goattracker-2.75/src/gconsole.c
Examining data/goattracker-2.75/src/gorder.c
Examining data/goattracker-2.75/src/goatdata.c
Examining data/goattracker-2.75/src/resid/spline.h
Examining data/goattracker-2.75/src/resid/wave8580_PS_.cpp
Examining data/goattracker-2.75/src/resid/extfilt.cpp
Examining data/goattracker-2.75/src/resid/wave8580_P_T.cpp
Examining data/goattracker-2.75/src/resid/sid.cpp
Examining data/goattracker-2.75/src/resid/siddefs.h
Examining data/goattracker-2.75/src/resid/pot.h
Examining data/goattracker-2.75/src/resid/wave6581_PST.cpp
Examining data/goattracker-2.75/src/resid/envelope.h
Examining data/goattracker-2.75/src/resid/wave.h
Examining data/goattracker-2.75/src/resid/envelope.cpp
Examining data/goattracker-2.75/src/resid/wave8580_PST.cpp
Examining data/goattracker-2.75/src/resid/wave.cpp
Examining data/goattracker-2.75/src/resid/extfilt.h
Examining data/goattracker-2.75/src/resid/pot.cpp
Examining data/goattracker-2.75/src/resid/filter.h
Examining data/goattracker-2.75/src/resid/wave6581_P_T.cpp
Examining data/goattracker-2.75/src/resid/sid.h
Examining data/goattracker-2.75/src/resid/filter.cpp
Examining data/goattracker-2.75/src/resid/wave8580__ST.cpp
Examining data/goattracker-2.75/src/resid/voice.h
Examining data/goattracker-2.75/src/resid/version.cpp
Examining data/goattracker-2.75/src/resid/voice.cpp
Examining data/goattracker-2.75/src/resid/wave6581__ST.cpp
Examining data/goattracker-2.75/src/resid/wave6581_PS_.cpp
Examining data/goattracker-2.75/src/gpattern.c
Examining data/goattracker-2.75/src/asm/log.c
Examining data/goattracker-2.75/src/asm/vec.h
Examining data/goattracker-2.75/src/asm/membufio.c
Examining data/goattracker-2.75/src/asm/parse.h
Examining data/goattracker-2.75/src/asm/vec.c
Examining data/goattracker-2.75/src/asm/chnkpool.h
Examining data/goattracker-2.75/src/asm/pc.c
Examining data/goattracker-2.75/src/asm/namedbuf.c
Examining data/goattracker-2.75/src/asm/parse.c
Examining data/goattracker-2.75/src/asm/lexyy.c
Examining data/goattracker-2.75/src/asm/pc.h
Examining data/goattracker-2.75/src/asm/int.h
Examining data/goattracker-2.75/src/asm/expr.h
Examining data/goattracker-2.75/src/asm/log.h
Examining data/goattracker-2.75/src/asm/membuf.h
Examining data/goattracker-2.75/src/asm/chnkpool.c
Examining data/goattracker-2.75/src/asm/membufio.h
Examining data/goattracker-2.75/src/asm/callback.h
Examining data/goattracker-2.75/src/asm/namedbuf.h
Examining data/goattracker-2.75/src/asm/asmtab.h
Examining data/goattracker-2.75/src/asm/asmtab.c
Examining data/goattracker-2.75/src/asm/membuf.c
Examining data/goattracker-2.75/src/asm/expr.c
Examining data/goattracker-2.75/src/gfile.h
Examining data/goattracker-2.75/src/gcommon.h
Examining data/goattracker-2.75/src/gsound.c
Examining data/goattracker-2.75/src/gsound.h
Examining data/goattracker-2.75/src/greloc.h
Examining data/goattracker-2.75/src/gsid.cpp
Examining data/goattracker-2.75/src/greloc.c
Examining data/goattracker-2.75/src/gpattern.h
Examining data/goattracker-2.75/src/gtable.h
Examining data/goattracker-2.75/src/ins2snd2.c
Examining data/goattracker-2.75/src/gplay.c
Examining data/goattracker-2.75/src/gorder.h
Examining data/goattracker-2.75/src/goattrk2.h
Examining data/goattracker-2.75/src/gtable.c
Examining data/goattracker-2.75/src/sngspli2.c
Examining data/goattracker-2.75/src/bme/bme_mou.h
Examining data/goattracker-2.75/src/bme/bme_gfx.h
Examining data/goattracker-2.75/src/bme/bme_err.h
Examining data/goattracker-2.75/src/bme/bme_snd.c
Examining data/goattracker-2.75/src/bme/bme_main.h
Examining data/goattracker-2.75/src/bme/bme_cfg.h
Examining data/goattracker-2.75/src/bme/bme_mou.c
Examining data/goattracker-2.75/src/bme/dat2inc.c
Examining data/goattracker-2.75/src/bme/bme_io.h
Examining data/goattracker-2.75/src/bme/bme.h
Examining data/goattracker-2.75/src/bme/bme_joy.h
Examining data/goattracker-2.75/src/bme/bme_end.h
Examining data/goattracker-2.75/src/bme/bme_snd.h
Examining data/goattracker-2.75/src/bme/datafile.c
Examining data/goattracker-2.75/src/bme/bme_gfx.c
Examining data/goattracker-2.75/src/bme/bme_win.c
Examining data/goattracker-2.75/src/bme/bme_win.h
Examining data/goattracker-2.75/src/bme/bme.c
Examining data/goattracker-2.75/src/bme/bme_end.c
Examining data/goattracker-2.75/src/bme/bme_kbd.c
Examining data/goattracker-2.75/src/bme/bme_io.c
Examining data/goattracker-2.75/src/bme/bme_kbd.h
Examining data/goattracker-2.75/src/goattrk2.c
Examining data/goattracker-2.75/src/gdisplay.h
Examining data/goattracker-2.75/src/ghelp.c
Examining data/goattracker-2.75/src/ginstr.h
Examining data/goattracker-2.75/src/gsong.h

FINAL RESULTS:

data/goattracker-2.75/src/asm/asmtab.c:1069:21:  [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.
#  define YYFPRINTF fprintf
data/goattracker-2.75/src/asm/log.c:38:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/goattracker-2.75/src/asm/log.c:41:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf(A, B, C, D) vsprintf((A),(C),(D))
data/goattracker-2.75/src/asm/log.c:41:31:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define vsnprintf(A, B, C, D) vsprintf((A),(C),(D))
data/goattracker-2.75/src/asm/log.c:171:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(ctx->buf, ctx->buf_len, printf_str, argp);
data/goattracker-2.75/src/asm/parse.c:191:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "symbol %s not found", symbol);
data/goattracker-2.75/src/asm/parse.c:291:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "symbol %s has no value.", e->type.symref);
data/goattracker-2.75/src/bme/datafile.c:75:13:  [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(fullname[files], searchname);
data/goattracker-2.75/src/gdisplay.c:57:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(textbuffer, "%s", programname);
data/goattracker-2.75/src/gdisplay.c:59:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(textbuffer, "%s - %s", programname, loadedsongfilename);
data/goattracker-2.75/src/gdisplay.c:176:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(&textbuffer[3], " %s %02X%01X%02X",
data/goattracker-2.75/src/gdisplay.c:328:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(textbuffer, "INSTRUMENT NUM. %02X  %-16s", einum, instr[einum].name);
data/goattracker-2.75/src/gdisplay.c:429:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(textbuffer, "%-32s", songname);
data/goattracker-2.75/src/gdisplay.c:433:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(textbuffer, "%-32s", authorname);
data/goattracker-2.75/src/gdisplay.c:437:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(textbuffer, "%-32s", copyrightname);
data/goattracker-2.75/src/gfile.c:32: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(instrpath, songpath);
data/goattracker-2.75/src/gfile.c:33: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(packedpath, songpath);
data/goattracker-2.75/src/gfile.c:128:11:  [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(cmpbuf, de->d_name);
data/goattracker-2.75/src/gfile.c:240:11:  [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(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:261:43:  [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).
        if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:287:43:  [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).
        if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:295:43:  [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).
        if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:305:45:  [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).
          if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:314:43:  [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).
        if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:324:45:  [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).
          if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:333:43:  [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).
        if (!direntry[filepos].attribute) strcpy(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:358:11:  [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(name, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:367:11:  [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(tempname, direntry[filepos].name);
data/goattracker-2.75/src/gfile.c:427:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(textbuffer, "%-60s        ", direntry[fileview+c].name);
data/goattracker-2.75/src/gfile.c:431:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(textbuffer, "%-60s   <DIR>", direntry[fileview+c].name);
data/goattracker-2.75/src/gfile.c:435:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(textbuffer, "%-60s   <DRV>", direntry[fileview+c].name);
data/goattracker-2.75/src/gfile.c:451:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%-60s", path);
data/goattracker-2.75/src/gfile.c:459:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%-60s", filter);
data/goattracker-2.75/src/gfile.c:467:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%-60s", name);
data/goattracker-2.75/src/ghelp.c:329:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%s Online Help", programname);
data/goattracker-2.75/src/goattrk2.c:151: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(filename, getenv("HOME"));
data/goattracker-2.75/src/goattrk2.c:337:9:  [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(&argv[c][2], "%s", specialnotenames);
data/goattracker-2.75/src/goattrk2.c:341:9:  [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(&argv[c][2], "%s", scalatuningfilepath);
data/goattracker-2.75/src/goattrk2.c:353: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(songfilename, argv[c]);
data/goattracker-2.75/src/goattrk2.c:358:11:  [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(startpath, argv[c]);
data/goattracker-2.75/src/goattrk2.c:362:11:  [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(songfilename, &argv[c][d+1]);
data/goattracker-2.75/src/goattrk2.c:437: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(filename, getenv("HOME"));
data/goattracker-2.75/src/goattrk2.c:1151:39:  [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).
      if (strlen(loadedsongfilename)) strcpy(songfilename, loadedsongfilename);
data/goattracker-2.75/src/goattrk2.c:1171:11:  [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(instrfilename, instr[einum].name);
data/goattracker-2.75/src/goattrk2.c:1173:11:  [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(tempfilename, instrfilename);
data/goattracker-2.75/src/goattrk2.c:1454:3:  [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(configptr, "%s", value);
data/goattracker-2.75/src/goattrk2.c:1540: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(name + 2, octave);
data/goattracker-2.75/src/goattrk2.c:1597: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(specialnotenames, name);
data/goattracker-2.75/src/goattrk2.c:1604:11:  [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(specialnotenames, name);
data/goattracker-2.75/src/goattrk2.c:1605:11:  [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(specialnotenames, tmp);
data/goattracker-2.75/src/goattrk2.c:1610:11:  [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(specialnotenames, name);
data/goattracker-2.75/src/greloc.c:517:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%s Packer/Relocator", programname);
data/goattracker-2.75/src/greloc.c:519:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%s Packer/Relocator - %s", programname, loadedsongfilename);
data/goattracker-2.75/src/greloc.c:1445:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%s Packer/Relocator", programname);
data/goattracker-2.75/src/greloc.c:1447:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textbuffer, "%s Packer/Relocator - %s", programname, loadedsongfilename);
data/goattracker-2.75/src/greloc.c:1996:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(insertbuffer, "%-16s = %d\n", name, value);
data/goattracker-2.75/src/greloc.c:2004:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(insertbuffer, "%s:\n", name);
data/goattracker-2.75/src/greloc.c:2051:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(insertbuffer, "                .BYTE (%s %% 256)\n", name);
data/goattracker-2.75/src/greloc.c:2059:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(insertbuffer, "                .BYTE (%s / 256)\n", name);
data/goattracker-2.75/src/gsong.c:121: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(loadedsongfilename, songfilename);
data/goattracker-2.75/src/gsong.c:773:25:  [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(instr[fi].name, arpname);
data/goattracker-2.75/src/gsong.c:811: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(loadedsongfilename, songfilename);
data/goattracker-2.75/src/gt2reloc.c:144: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(songfilename, argv[1]);
data/goattracker-2.75/src/gt2reloc.c:145: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(packedsongname, argv[2]);
data/goattracker-2.75/src/goattrk2.c:151:20:  [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.
  strcpy(filename, getenv("HOME"));
data/goattracker-2.75/src/goattrk2.c:437:20:  [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.
  strcpy(filename, getenv("HOME"));
data/goattracker-2.75/src/gsound.c:500:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  if (!(hardsiddll=LoadLibrary("HARDSID.DLL"))) return;
data/goattracker-2.75/src/asm/asmtab.c:2645: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/goattracker-2.75/src/asm/asmtab.c:2662: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 yyformat[sizeof yyunexpected
data/goattracker-2.75/src/asm/lexyy.c:1138:16:  [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).
{ yylval.num = atoi(yytext); return NUMBER; }
data/goattracker-2.75/src/asm/membuf.c: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(sb->buf, mem, len);
data/goattracker-2.75/src/asm/membuf.c:131:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, mem, len);
data/goattracker-2.75/src/asm/membuf.c:159: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(from, mem, len);
data/goattracker-2.75/src/asm/membufio.c:36: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 block[1024];
data/goattracker-2.75/src/asm/membufio.c:40: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).
    in = fopen(name, "rb");
data/goattracker-2.75/src/asm/membufio.c:59: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).
    out = fopen(name, "wb");
data/goattracker-2.75/src/asm/parse.c:189: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.
        static char buf[1024];
data/goattracker-2.75/src/asm/parse.c:289:20:  [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[1024];
data/goattracker-2.75/src/bme/bme_gfx.c:383:13:  [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(destaddress, srcaddress, gfx_virtualxsize);
data/goattracker-2.75/src/bme/bme_io.c:19: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 name[13];
data/goattracker-2.75/src/bme/bme_io.c:26:9:  [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).
    int open;
data/goattracker-2.75/src/bme/bme_io.c:32: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 ident[4];
data/goattracker-2.75/src/bme/bme_io.c:93:26:  [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).
        datafilehandle = fopen(name, "rb");
data/goattracker-2.75/src/bme/bme_io.c:144:26:  [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 *file = fopen(name, "rb");
data/goattracker-2.75/src/bme/bme_io.c:160: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 namecopy[13];
data/goattracker-2.75/src/bme/bme_io.c:164:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(namecopy, name, namelength + 1);
data/goattracker-2.75/src/bme/bme_io.c:172:32:  [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 (!handle[index].open)
data/goattracker-2.75/src/bme/bme_io.c:210:28:  [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 (!handle[index].open) return -1;
data/goattracker-2.75/src/bme/bme_io.c:247:28:  [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 (!handle[index].open) return -1;
data/goattracker-2.75/src/bme/bme_io.c:294: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 bytes[2];
data/goattracker-2.75/src/bme/bme_io.c:302: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 bytes[2];
data/goattracker-2.75/src/bme/bme_io.c:310: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 bytes[4];
data/goattracker-2.75/src/bme/bme_io.c:318: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 bytes[4];
data/goattracker-2.75/src/bme/bme_io.c:326: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 bytes[4];
data/goattracker-2.75/src/bme/bme_io.c:348: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 bytes[4];
data/goattracker-2.75/src/bme/bme_win.c:36: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 win_keytable[MAX_KEYS] = {0};
data/goattracker-2.75/src/bme/bme_win.c:45: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 win_keystate[MAX_KEYS] = {0};
data/goattracker-2.75/src/bme/bme_win.h:13: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.
extern unsigned char win_keytable[MAX_KEYS];
data/goattracker-2.75/src/bme/bme_win.h:14: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.
extern unsigned char win_keystate[MAX_KEYS];
data/goattracker-2.75/src/bme/dat2inc.c:19: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).
    in = fopen(argv[1], "rb");
data/goattracker-2.75/src/bme/dat2inc.c:25: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).
    out = fopen(argv[2], "wt");
data/goattracker-2.75/src/bme/datafile.c:19: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 name[13];
data/goattracker-2.75/src/bme/datafile.c:23: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 fullname[MAXFILES][MAXFILENAME];
data/goattracker-2.75/src/bme/datafile.c:48: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).
    listfile = fopen(argv[2], "rt");
data/goattracker-2.75/src/bme/datafile.c:54: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).
    datafile = fopen(argv[1], "wb");
data/goattracker-2.75/src/bme/datafile.c:65: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 searchname[64];
data/goattracker-2.75/src/bme/datafile.c:70: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).
        test = fopen(searchname, "rb");
data/goattracker-2.75/src/bme/datafile.c:141: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).
    src = fopen(name, "rb");
data/goattracker-2.75/src/gcommon.h:67: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 ptr[MAX_TABLES];
data/goattracker-2.75/src/gcommon.h:71: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 name[MAX_INSTRNAMELEN];
data/goattracker-2.75/src/gconsole.c:103: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 ((ext_f = fopen("custom.pal", "rt")))
data/goattracker-2.75/src/gconsole.c:106: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 ln[100];
data/goattracker-2.75/src/gdisplay.c:82: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(textbuffer, "HR:%04X", adparam);
data/goattracker-2.75/src/gdisplay.c:88: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(textbuffer, "%2dX", multiplier);
data/goattracker-2.75/src/gdisplay.c:137: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(textbuffer, "CHN %d PATT.%02X", c+1, epnum[c]);
data/goattracker-2.75/src/gdisplay.c:155: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(textbuffer, "             ");
data/goattracker-2.75/src/gdisplay.c:162:13:  [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(textbuffer, " %02d", p);
data/goattracker-2.75/src/gdisplay.c:164:13:  [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(textbuffer, "%03d", p);
data/goattracker-2.75/src/gdisplay.c:167:11:  [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(textbuffer, " %02X", p);
data/goattracker-2.75/src/gdisplay.c:171:11:  [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(&textbuffer[3], " PATT. END");
data/goattracker-2.75/src/gdisplay.c:236: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(textbuffer, "CHN ORDERLIST (SUBTUNE %02X, POS %02X)", esnum, eseditpos);
data/goattracker-2.75/src/gdisplay.c:240: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(textbuffer, " %d ", c+1);
data/goattracker-2.75/src/gdisplay.c:258: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(textbuffer, "   ");
data/goattracker-2.75/src/gdisplay.c:266:13:  [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(textbuffer, "%02X ", songorder[esnum][c][p]);
data/goattracker-2.75/src/gdisplay.c:273:15:  [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(textbuffer, "+%01X ", songorder[esnum][c][p]&0xf);
data/goattracker-2.75/src/gdisplay.c:280:17:  [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(textbuffer, "-%01X ", 16-(songorder[esnum][c][p] & 0x0f));
data/goattracker-2.75/src/gdisplay.c:285:17:  [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(textbuffer, "R%01X ", (songorder[esnum][c][p]+1) & 0x0f);
data/goattracker-2.75/src/gdisplay.c:293:11:  [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(textbuffer, "RST");
data/goattracker-2.75/src/gdisplay.c:331: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(textbuffer, "Attack/Decay    %02X", instr[einum].ad);
data/goattracker-2.75/src/gdisplay.c:335: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(textbuffer, "Sustain/Release %02X", instr[einum].sr);
data/goattracker-2.75/src/gdisplay.c:339: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(textbuffer, "Wavetable Pos   %02X", instr[einum].ptr[WTBL]);
data/goattracker-2.75/src/gdisplay.c:343: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(textbuffer, "Pulsetable Pos  %02X", instr[einum].ptr[PTBL]);
data/goattracker-2.75/src/gdisplay.c:347: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(textbuffer, "Filtertable Pos %02X", instr[einum].ptr[FTBL]);
data/goattracker-2.75/src/gdisplay.c:351: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(textbuffer, "Vibrato Param   %02X", instr[einum].ptr[STBL]);
data/goattracker-2.75/src/gdisplay.c:355: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(textbuffer, "Vibrato Delay   %02X", instr[einum].vibdelay);
data/goattracker-2.75/src/gdisplay.c:359: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(textbuffer, "HR/Gate Timer   %02X", instr[einum].gatetimer);
data/goattracker-2.75/src/gdisplay.c:363: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(textbuffer, "1stFrame Wave   %02X", instr[einum].firstwave);
data/goattracker-2.75/src/gdisplay.c:379: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(textbuffer, "WAVE TBL  PULSETBL  FILT.TBL  SPEEDTBL");
data/goattracker-2.75/src/gdisplay.c:404: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(textbuffer, "%02X:%02X %02X", p+1, ltable[c][p], rtable[c][p]);
data/goattracker-2.75/src/gdisplay.c:455: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(textbuffer, "OCTAVE %d", epoctave);
data/goattracker-2.75/src/gdisplay.c:481: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(textbuffer, " %02d%c%02d ", timemin, timechar[timeframe/(25*multiplier) & 1], timesec);
data/goattracker-2.75/src/gdisplay.c:483: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(textbuffer, " %02d%c%02d ", timemin, timechar[timeframe/(30*multiplier) & 1], timesec);
data/goattracker-2.75/src/gdisplay.c:488: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(textbuffer, " %02d%c%02d ", timemin, timechar[(timeframe/13) & 1], timesec);
data/goattracker-2.75/src/gdisplay.c:490: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(textbuffer, " %02d%c%02d ", timemin, timechar[(timeframe/15) & 1], timesec);
data/goattracker-2.75/src/gdisplay.c:505: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(textbuffer, "%03d/%02d",
data/goattracker-2.75/src/gfile.c:28:3:  [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(songfilter, "*.sng");
data/goattracker-2.75/src/gfile.c:29:3:  [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(instrfilter, "*.ins");
data/goattracker-2.75/src/gfile.c:53: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 driveexists[26];
data/goattracker-2.75/src/gfile.c:55: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 cmpbuf[MAX_PATHNAME];
data/goattracker-2.75/src/gfile.c:56: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 tempname[MAX_PATHNAME];
data/goattracker-2.75/src/gfile.c:441: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(textbuffer, "                                                                    ");
data/goattracker-2.75/src/ginstr.c:33:7:  [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(&instrcopybuffer, &instr[einum], sizeof(INSTR));
data/goattracker-2.75/src/ginstr.c:42:7:  [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(&instrcopybuffer, &instr[einum], sizeof(INSTR));
data/goattracker-2.75/src/ginstr.c:49:7:  [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(&instr[einum], &instrcopybuffer, sizeof(INSTR));
data/goattracker-2.75/src/ginstr.c:65:7:  [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(&instr[einum], &instrcopybuffer, sizeof(INSTR));
data/goattracker-2.75/src/goattrk2.c:73: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 configbuf[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:74: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 loadedsongfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.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 songfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.c:76: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 songfilter[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.c:77: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 songpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:78: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 instrfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.c:79: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 instrfilter[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.c:80: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 instrpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:81: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 packedpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:85: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 specialnotenames[186];
data/goattracker-2.75/src/goattrk2.c:86: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 scalatuningfilepath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:87: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 tuningname[64];
data/goattracker-2.75/src/goattrk2.c:89: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 textbuffer[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:134: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 filename[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:149:3:  [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(filename, "PROGDIR:goattrk2.cfg");
data/goattracker-2.75/src/goattrk2.c:152: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(filename, "/.goattrk/goattrk2.cfg");
data/goattracker-2.75/src/goattrk2.c:154: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).
  configfile = fopen(filename, "rt");
data/goattracker-2.75/src/goattrk2.c:351:7:  [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 startpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.c:435:3:  [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(filename, "PROGDIR:goattrk2.cfg");
data/goattracker-2.75/src/goattrk2.c:438: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(filename, "/.goattrk");
data/goattracker-2.75/src/goattrk2.c:440: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(filename, "/goattrk2.cfg");
data/goattracker-2.75/src/goattrk2.c:443: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).
  configfile = fopen(filename, "wt");
data/goattracker-2.75/src/goattrk2.c:1163:7:  [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 tempfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.c:1172:11:  [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(instrfilename, ".ins");
data/goattracker-2.75/src/goattrk2.c:1257: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(textbuffer, "%02d ", defaultpatternlength);
data/goattracker-2.75/src/goattrk2.c:1525: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 octave[11];
data/goattracker-2.75/src/goattrk2.c:1539: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(octave, "%d", oct);
data/goattracker-2.75/src/goattrk2.c:1553: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 strbuf[64];
data/goattracker-2.75/src/goattrk2.c:1554: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 name[3];
data/goattracker-2.75/src/goattrk2.c:1560:21:  [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).
  scalatuningfile = fopen(scalatuningfilepath, "rt");
data/goattracker-2.75/src/goattrk2.h:83: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.
extern char configbuf[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.h:84: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.
extern char loadedsongfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.h:85: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.
extern char songfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.h:86: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.
extern char songfilter[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.h:87: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.
extern char songpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.h:88: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.
extern char instrfilename[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.h:89: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.
extern char instrfilter[MAX_FILENAME];
data/goattracker-2.75/src/goattrk2.h:90: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.
extern char instrpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.h:91: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.
extern char packedpath[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.h:94: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.
extern char textbuffer[MAX_PATHNAME];
data/goattracker-2.75/src/goattrk2.h:95: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.
extern unsigned char hexkeytbl[16];
data/goattracker-2.75/src/gorder.c:9: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 trackcopybuffer[MAX_SONGLEN+2];
data/goattracker-2.75/src/gpattern.c:24: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 patterncopybuffer[MAX_PATTROWS*4+4];
data/goattracker-2.75/src/gpattern.c:25: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 cmdcopybuffer[MAX_PATTROWS*4+4];
data/goattracker-2.75/src/gpattern.c:1162: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 temp[MAX_PATTROWS*4+4];
data/goattracker-2.75/src/gpattern.c:1187: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(pattern[c], temp, (nl+1)*4);
data/goattracker-2.75/src/gplay.c:43: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 funktable[2];
data/goattracker-2.75/src/gplay.h:26: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 ptr[2];
data/goattracker-2.75/src/greloc.c:34: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 chnused[MAX_CHN];
data/goattracker-2.75/src/greloc.c:35: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 pattused[MAX_PATT];
data/goattracker-2.75/src/greloc.c:36: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 pattmap[MAX_PATT];
data/goattracker-2.75/src/greloc.c:37: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 instrused[MAX_INSTR];
data/goattracker-2.75/src/greloc.c:38: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 instrmap[MAX_INSTR];
data/goattracker-2.75/src/greloc.c:39: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 tableused[MAX_TABLES][MAX_TABLELEN+1];
data/goattracker-2.75/src/greloc.c:40: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 tablemap[MAX_TABLES][MAX_TABLELEN+1];
data/goattracker-2.75/src/greloc.c:93: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.
extern char packedsongname[MAX_PATHNAME];
data/goattracker-2.75/src/greloc.c:104: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 packedsongname[MAX_FILENAME];
data/goattracker-2.75/src/greloc.c:105: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 packedfilter[MAX_FILENAME];
data/goattracker-2.75/src/greloc.c:144: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 patttemp[512];
data/goattracker-2.75/src/greloc.c:246:11:  [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(textbuffer, "ILLEGAL SONG RESTART POSITION! (SUBTUNE %02X, CHANNEL %d)", c, d+1);
data/goattracker-2.75/src/greloc.c:422:11:  [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(textbuffer, "ILLEGAL WAVETABLE COMMAND (ROW %02X, COMMAND %X)", c+1, ltable[WTBL][c] - WAVECMD);
data/goattracker-2.75/src/greloc.c:464: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(textbuffer, "TABLE POINTER POINTS TO A JUMP! ");
data/goattracker-2.75/src/greloc.c:468: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(textbuffer, "TABLE EXECUTION OVERFLOWS! ");
data/goattracker-2.75/src/greloc.c:474: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(textbuffer + strlen(textbuffer), "(PATTERN %02X, ROW %02d)", tableerrorsource1, tableerrorsource2);
data/goattracker-2.75/src/greloc.c:478: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(textbuffer + strlen(textbuffer), "WAVETABLE CMD (ROW %02X, ", tableerrorsource1);
data/goattracker-2.75/src/greloc.c:482: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(textbuffer + strlen(textbuffer), "(INSTRUMENT %02X, ", tableerrorsource1);
data/goattracker-2.75/src/greloc.c:487:9:  [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(textbuffer, "WAVE");
data/goattracker-2.75/src/greloc.c:491:9:  [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(textbuffer, "PULSE");
data/goattracker-2.75/src/greloc.c:495:9:  [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(textbuffer, "FILTER");
data/goattracker-2.75/src/greloc.c:720: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(textbuffer, "PATTERN %02X IS TOO COMPLEX (OVER 256 BYTES PACKED)!", c);
data/goattracker-2.75/src/greloc.c:941: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(textbuffer, "SELECT START ADDRESS: (CURSORS=MOVE, ENTER=ACCEPT, ESC=CANCEL)");
data/goattracker-2.75/src/greloc.c:947: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(textbuffer, "$%04X", playeradr);
data/goattracker-2.75/src/greloc.c:993: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(textbuffer, "SELECT ZEROPAGE ADDRESS: (CURSORS=MOVE, ENTER=ACCEPT, ESC=CANCEL)");
data/goattracker-2.75/src/greloc.c:1013: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(textbuffer, "$%02X-$%02X (Used by BASIC interpreter)    ", zeropageadr, zeropageadr+1);
data/goattracker-2.75/src/greloc.c:1015: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(textbuffer, "$%02X-$%02X (Used by KERNAL routines)      ", zeropageadr, zeropageadr+1);
data/goattracker-2.75/src/greloc.c:1017: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(textbuffer, "$%02X-$%02X (Unused)                       ", zeropageadr, zeropageadr+1);
data/goattracker-2.75/src/greloc.c:1019: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(textbuffer, "$%02X-$%02X ($FF used by BASIC interpreter)", zeropageadr, zeropageadr+1);
data/goattracker-2.75/src/greloc.c:1023: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(textbuffer, "$%02X-$%02X (ghostregs start at %02X)", zeropageadr, zeropageadr+26, zeropageadr);
data/goattracker-2.75/src/greloc.c:1191: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(textbuffer, "mt_song%d", c);
data/goattracker-2.75/src/greloc.c:1197: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(textbuffer, "mt_song%d", c);
data/goattracker-2.75/src/greloc.c:1205: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(textbuffer, "mt_patt%d", c);
data/goattracker-2.75/src/greloc.c:1211: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(textbuffer, "mt_patt%d", c);
data/goattracker-2.75/src/greloc.c:1384: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(textbuffer, "mt_song%d", c*3+d);
data/goattracker-2.75/src/greloc.c:1393: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(textbuffer, "mt_patt%d", c);
data/goattracker-2.75/src/greloc.c:1434: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).
  songhandle = fopen(packedsongname, "wb");
data/goattracker-2.75/src/greloc.c:1451: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(textbuffer, "PACKING RESULTS:");
data/goattracker-2.75/src/greloc.c:1454: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(textbuffer, "Playroutine:     %d bytes", playersize);
data/goattracker-2.75/src/greloc.c:1456: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(textbuffer, "Songtable:       %d bytes", songtblsize);
data/goattracker-2.75/src/greloc.c:1458: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(textbuffer, "Song-orderlists: %d bytes", songdatasize);
data/goattracker-2.75/src/greloc.c:1460: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(textbuffer, "Patterntable:    %d bytes", patttblsize);
data/goattracker-2.75/src/greloc.c:1462: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(textbuffer, "Patterns:        %d bytes", pattdatasize);
data/goattracker-2.75/src/greloc.c:1464: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(textbuffer, "Instruments:     %d bytes", instrsize);
data/goattracker-2.75/src/greloc.c:1466: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(textbuffer, "Tables:          %d bytes", wavetblsize+pulsetblsize+filttblsize+speedtblsize);
data/goattracker-2.75/src/greloc.c:1468: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(textbuffer, "Total size:      %d bytes", packedsize);
data/goattracker-2.75/src/greloc.c:1484:7:  [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(packedfilter, "*.sid");
data/goattracker-2.75/src/greloc.c:1489:7:  [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(packedfilter, "*.prg");
data/goattracker-2.75/src/greloc.c:1494:7:  [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(packedfilter, "*.bin");
data/goattracker-2.75/src/greloc.c:1542:5:  [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(packedsongname, ".prg");
data/goattracker-2.75/src/greloc.c:1546:5:  [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(packedsongname, ".bin");
data/goattracker-2.75/src/greloc.c:1550:5:  [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(packedsongname, ".sid");
data/goattracker-2.75/src/greloc.c:1572:11:  [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(packedsongname, ".prg");
data/goattracker-2.75/src/greloc.c:1576:11:  [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(packedsongname, ".bin");
data/goattracker-2.75/src/greloc.c:1580:11:  [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(packedsongname, ".sid");
data/goattracker-2.75/src/greloc.c:1585: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).
    songhandle = fopen(packedsongname, "wb");
data/goattracker-2.75/src/greloc.c:1717: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 temp1[MAX_PATTROWS*4];
data/goattracker-2.75/src/greloc.c:1718: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 temp2[512];
data/goattracker-2.75/src/greloc.c:1994: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 insertbuffer[80];
data/goattracker-2.75/src/greloc.c:2002: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 insertbuffer[80];
data/goattracker-2.75/src/greloc.c:2010: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 insertbuffer[80];
data/goattracker-2.75/src/greloc.c:2018: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(insertbuffer, "$%02x", *bytes);
data/goattracker-2.75/src/greloc.c:2025: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(insertbuffer, ",$%02x", *bytes);
data/goattracker-2.75/src/greloc.c:2041: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 insertbuffer[80];
data/goattracker-2.75/src/greloc.c:2043: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(insertbuffer, "                .BYTE ($%02x)\n", byte);
data/goattracker-2.75/src/greloc.c:2049: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 insertbuffer[80];
data/goattracker-2.75/src/greloc.c:2057: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 insertbuffer[80];
data/goattracker-2.75/src/greloc.h:30: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.
extern unsigned char pattused[MAX_PATT];
data/goattracker-2.75/src/greloc.h:31: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.
extern unsigned char instrused[MAX_INSTR];
data/goattracker-2.75/src/greloc.h:32: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.
extern unsigned char tableused[MAX_TABLES][MAX_TABLELEN+1];
data/goattracker-2.75/src/greloc.h:33: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.
extern unsigned char pattmap[MAX_PATT];
data/goattracker-2.75/src/greloc.h:34: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.
extern unsigned char instrmap[MAX_INSTR];
data/goattracker-2.75/src/greloc.h:35: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.
extern unsigned char tablemap[MAX_TABLES][MAX_TABLELEN+1];
data/goattracker-2.75/src/gsid.cpp:17: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 sidreg[NUMSIDREGS];
data/goattracker-2.75/src/gsid.h:30: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.
extern unsigned char sidreg[NUMSIDREGS];
data/goattracker-2.75/src/gsong.c:10: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 ltable[MAX_TABLES][MAX_TABLELEN];
data/goattracker-2.75/src/gsong.c:11: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 rtable[MAX_TABLES][MAX_TABLELEN];
data/goattracker-2.75/src/gsong.c:12: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 songorder[MAX_SONGS][MAX_CHN][MAX_SONGLEN+2];
data/goattracker-2.75/src/gsong.c:13: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 pattern[MAX_PATT][MAX_PATTROWS*4+4];
data/goattracker-2.75/src/gsong.c:14: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 songname[MAX_STR];
data/goattracker-2.75/src/gsong.c:15: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 authorname[MAX_STR];
data/goattracker-2.75/src/gsong.c:16: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 copyrightname[MAX_STR];
data/goattracker-2.75/src/gsong.c:35:20:  [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.
    if (!extfound) strcat(songfilename, ".sng");
data/goattracker-2.75/src/gsong.c:37:12:  [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).
  handle = fopen(songfilename, "wb");
data/goattracker-2.75/src/gsong.c:140:20:  [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.
    if (!extfound) strcat(instrfilename, ".ins");
data/goattracker-2.75/src/gsong.c:143:12:  [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).
  handle = fopen(instrfilename, "wb");
data/goattracker-2.75/src/gsong.c:181: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 ident[4];
data/goattracker-2.75/src/gsong.c:184:12:  [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).
  handle = fopen(songfilename, "rb");
data/goattracker-2.75/src/gsong.c:341: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.
      unsigned char filtertable[256];
data/goattracker-2.75/src/gsong.c:342: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.
      unsigned char filtermap[64];
data/goattracker-2.75/src/gsong.c:344: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.
      unsigned char pulse[32], pulseadd[32], pulselimitlow[32], pulselimithigh[32];
data/goattracker-2.75/src/gsong.c:771:25:  [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 arpname[8];
data/goattracker-2.75/src/gsong.c:772:25:  [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(arpname, "0%02X", param&0x7f);
data/goattracker-2.75/src/gsong.c:850: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 ident[4];
data/goattracker-2.75/src/gsong.c:856:12:  [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).
  handle = fopen(instrfilename, "rb");
data/goattracker-2.75/src/gsong.c:864: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.
      unsigned char optr[4];
data/goattracker-2.75/src/gsong.c:927: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.
      unsigned char optr[3];
data/goattracker-2.75/src/gsong.c:988: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.
      unsigned char filtertemp[4];
data/goattracker-2.75/src/gsong.c:1581: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 ident[4];
data/goattracker-2.75/src/gsong.c:1620:12:  [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).
  handle = fopen(songfilename, "rb");
data/goattracker-2.75/src/gsong.h:6: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.
extern unsigned char ltable[MAX_TABLES][MAX_TABLELEN];
data/goattracker-2.75/src/gsong.h:7: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.
extern unsigned char rtable[MAX_TABLES][MAX_TABLELEN];
data/goattracker-2.75/src/gsong.h:8: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.
extern unsigned char songorder[MAX_SONGS][MAX_CHN][MAX_SONGLEN+2];
data/goattracker-2.75/src/gsong.h:9: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.
extern unsigned char pattern[MAX_PATT][MAX_PATTROWS*4+4];
data/goattracker-2.75/src/gsong.h:10: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.
extern char songname[MAX_STR];
data/goattracker-2.75/src/gsong.h:11: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.
extern char authorname[MAX_STR];
data/goattracker-2.75/src/gsong.h:12: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.
extern char copyrightname[MAX_STR];
data/goattracker-2.75/src/gsound.c:153: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[80];
data/goattracker-2.75/src/gsound.c:154: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(filename, "/dev/sid%d", hardsid-1);
data/goattracker-2.75/src/gsound.c:155:17:  [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).
    hardsidfd = open(filename, O_WRONLY, S_IREAD|S_IWRITE);
data/goattracker-2.75/src/gsound.c:180:19:  [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).
    catweaselfd = open("/dev/sid", O_WRONLY);
data/goattracker-2.75/src/gsound.c:182: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).
      catweaselfd = open("/dev/misc/sid", O_WRONLY);
data/goattracker-2.75/src/gsound.c:202:19:  [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).
    writehandle = fopen("sidaudio.raw", "wb");
data/goattracker-2.75/src/gsound.c:303: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 buf[NUMSIDREGS * 2];
data/goattracker-2.75/src/gsound.c:315: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.
      unsigned char buf[NUMSIDREGS];
data/goattracker-2.75/src/gsound.c:459: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 buf[NUMSIDREGS * 2];
data/goattracker-2.75/src/gt2reloc.c:69: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 configbuf[MAX_PATHNAME];
data/goattracker-2.75/src/gt2reloc.c:70: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 loadedsongfilename[MAX_FILENAME];
data/goattracker-2.75/src/gt2reloc.c:71: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 songfilename[MAX_FILENAME];
data/goattracker-2.75/src/gt2reloc.c:72: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 songfilter[MAX_FILENAME];
data/goattracker-2.75/src/gt2reloc.c:73: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 songpath[MAX_PATHNAME];
data/goattracker-2.75/src/gt2reloc.c:74: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 instrfilename[MAX_FILENAME];
data/goattracker-2.75/src/gt2reloc.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 instrfilter[MAX_FILENAME];
data/goattracker-2.75/src/gt2reloc.c:76: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 instrpath[MAX_PATHNAME];
data/goattracker-2.75/src/gt2reloc.c:77: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 packedpath[MAX_PATHNAME];
data/goattracker-2.75/src/gt2reloc.c:78: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 packedsongname[MAX_PATHNAME];
data/goattracker-2.75/src/gt2reloc.c:82: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 textbuffer[MAX_PATHNAME];
data/goattracker-2.75/src/gt2reloc.c:130:12:  [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).
  STDOUT = fopen("CON", "w");
data/goattracker-2.75/src/gt2reloc.c:131:12:  [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).
  STDERR = fopen("CON", "w");
data/goattracker-2.75/src/gtable.c:9: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 ltablecopybuffer[MAX_TABLELEN];
data/goattracker-2.75/src/gtable.c:10: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 rtablecopybuffer[MAX_TABLELEN];
data/goattracker-2.75/src/ins2snd2.c:29: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 ident[4] = {0};
data/goattracker-2.75/src/ins2snd2.c:30: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 wavetable[MAX_TABLELEN*2];
data/goattracker-2.75/src/ins2snd2.c:31: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 pulsetable[MAX_TABLELEN*2];
data/goattracker-2.75/src/ins2snd2.c:32: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 filttable[MAX_TABLELEN*2];
data/goattracker-2.75/src/ins2snd2.c:77:12:  [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).
  handle = fopen(argv[1], "rb");
data/goattracker-2.75/src/ins2snd2.c:171: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).
    out = fopen(argv[2], "wt");
data/goattracker-2.75/src/ins2snd2.c:173: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).
    out = fopen(argv[2], "wb");
data/goattracker-2.75/src/mod2sng.c:47: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 modheader[1084];
data/goattracker-2.75/src/mod2sng.c:48: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 modpatterns[64*64*4*4];
data/goattracker-2.75/src/mod2sng.c:51: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 orderlist[3][256];
data/goattracker-2.75/src/mod2sng.c:56: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 zeroarray[32] = {0};
data/goattracker-2.75/src/mod2sng.c:81: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).
  in = fopen(argv[1], "rb");
data/goattracker-2.75/src/mod2sng.c:87: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).
  out = fopen(argv[2], "wb");
data/goattracker-2.75/src/resid/sid.h:61: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 sid_register[0x20];
data/goattracker-2.75/src/sngspli2.c:15: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 ident[4];
data/goattracker-2.75/src/sngspli2.c:16: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 ltable[4][MAX_TABLELEN*2];
data/goattracker-2.75/src/sngspli2.c:17: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 rtable[4][MAX_TABLELEN*2];
data/goattracker-2.75/src/sngspli2.c:18: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 songorder[MAX_SONGS][MAX_CHN][MAX_SONGLEN+2];
data/goattracker-2.75/src/sngspli2.c:19: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 destsongorder[MAX_SONGS][MAX_CHN][MAX_SONGLEN+2];
data/goattracker-2.75/src/sngspli2.c:20: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 ordermaptbl[MAX_SONGLEN+2];
data/goattracker-2.75/src/sngspli2.c:21: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 pattern[MAX_PATT][MAX_PATTROWS*4+4];
data/goattracker-2.75/src/sngspli2.c:22: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 destpattern[MAX_PATT+1][MAX_PATTROWS*4+4];
data/goattracker-2.75/src/sngspli2.c:23: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 songname[MAX_STR];
data/goattracker-2.75/src/sngspli2.c:24: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 authorname[MAX_STR];
data/goattracker-2.75/src/sngspli2.c:25: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 copyrightname[MAX_STR];
data/goattracker-2.75/src/sngspli2.c:130:11:  [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(destpattern[dp], &pattern[c][d*4], remain*4);
data/goattracker-2.75/src/sngspli2.c:143:11:  [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(destpattern[dp], &pattern[c][d*4], splitsize*4);
data/goattracker-2.75/src/sngspli2.c:277:21:  [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 *srchandle = fopen(name, "rb");
data/goattracker-2.75/src/sngspli2.c:354:12:  [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).
  handle = fopen(name, "wb");
data/goattracker-2.75/src/asm/asmtab.c:1179:21:  [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).
#   define yystrlen strlen
data/goattracker-2.75/src/asm/lexyy.c:652:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/goattracker-2.75/src/asm/parse.c:444:29:  [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).
    membuf_append(mb, text, strlen(text));
data/goattracker-2.75/src/bme/bme_io.c:162: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).
        namelength = strlen(name);
data/goattracker-2.75/src/bme/bme_io.c:165:33:  [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 (index = 0; index < strlen(namecopy); index++)
data/goattracker-2.75/src/bme/dat2inc.c:44:32:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fprintf(out, "0x%02x", fgetc(in));
data/goattracker-2.75/src/bme/datafile.c:69:13:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (fscanf(listfile, "%63s", searchname) == EOF) break;
data/goattracker-2.75/src/bme/datafile.c:77: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 (c = strlen(fullname[files]) - 1; c >= 0; c--)
data/goattracker-2.75/src/gconsole.c:107:5:  [1] (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 character.
    strcpy(ln, "");
data/goattracker-2.75/src/gconsole.c:215: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).
  int x = (MAX_COLUMNS - strlen(text)) / 2;
data/goattracker-2.75/src/gconsole.c:222:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int x = cp - (strlen(text) / 2);
data/goattracker-2.75/src/gdisplay.c:56:10:  [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(loadedsongfilename))
data/goattracker-2.75/src/gdisplay.c:375:34:  [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 (!eamode) printbg(60+10+strlen(instr[einum].name), 7, cc, 1);
data/goattracker-2.75/src/gdisplay.c:445:21:  [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).
      printbg(47+10+strlen(songname), 31, cc, 1);
data/goattracker-2.75/src/gdisplay.c:448:21:  [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).
      printbg(47+10+strlen(authorname), 32, cc, 1);
data/goattracker-2.75/src/gdisplay.c:451:21:  [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).
      printbg(47+10+strlen(copyrightname), 33, cc, 1);
data/goattracker-2.75/src/gfile.c:59: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(path)) chdir(path);
data/goattracker-2.75/src/gfile.c:109:21:  [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 (c = 0; c < strlen(filter); c++)
data/goattracker-2.75/src/gfile.c:114:38:  [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 ((files < MAX_DIRFILES) && (strlen(de->d_name) < MAX_FILENAME))
data/goattracker-2.75/src/gfile.c:133:29:  [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 (c = 0; c < strlen(cmpbuf); c++)
data/goattracker-2.75/src/gfile.c:368: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).
          if (strlen(tempname))
data/goattracker-2.75/src/gfile.c:370: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).
            if (tempname[strlen(tempname)-1] != '\\')
data/goattracker-2.75/src/gfile.c:371:15:  [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(tempname, "\\");
data/goattracker-2.75/src/gfile.c:456:29:  [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 ((filemode == 1) && (strlen(path) < MAX_FILENAME)) printbg(50-(MAX_FILENAME+10)/2+9+strlen(path), 6+VISIBLEFILES, cc, 1);
data/goattracker-2.75/src/gfile.c:456:92:  [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 ((filemode == 1) && (strlen(path) < MAX_FILENAME)) printbg(50-(MAX_FILENAME+10)/2+9+strlen(path), 6+VISIBLEFILES, cc, 1);
data/goattracker-2.75/src/gfile.c:464:57:  [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 (filemode == 2) printbg(50-(MAX_FILENAME+10)/2+9+strlen(filter), 7+VISIBLEFILES, cc, 1);
data/goattracker-2.75/src/gfile.c:472:57:  [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 (filemode == 3) printbg(50-(MAX_FILENAME+10)/2+9+strlen(name), 8+VISIBLEFILES, cc, 1);
data/goattracker-2.75/src/gfile.c:500: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).
  int len = strlen(buffer);
data/goattracker-2.75/src/goattrk2.c:145: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).
  filename[strlen(filename)-3] = 'c';
data/goattracker-2.75/src/goattrk2.c:146: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).
  filename[strlen(filename)-2] = 'f';
data/goattracker-2.75/src/goattrk2.c:147: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).
  filename[strlen(filename)-1] = 'g';
data/goattracker-2.75/src/goattrk2.c:354:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (d = strlen(argv[c])-1; d >= 0; d--)
data/goattracker-2.75/src/goattrk2.c:419: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(songfilename)) loadsong();
data/goattracker-2.75/src/goattrk2.c:1151:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(loadedsongfilename)) strcpy(songfilename, loadedsongfilename);
data/goattracker-2.75/src/goattrk2.c:1168: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).
        if ((!strlen(instrfilename)) && (strlen(instr[einum].name)))
data/goattracker-2.75/src/goattrk2.c:1168:42:  [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(instrfilename)) && (strlen(instr[einum].name)))
data/goattracker-2.75/src/goattrk2.c:1538:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name, specialnotenames + j, 2);
data/goattracker-2.75/src/goattrk2.c:1594:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      sscanf(configptr, "%63s %2s", strbuf, name);
data/goattracker-2.75/src/greloc.c:474: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).
      sprintf(textbuffer + strlen(textbuffer), "(PATTERN %02X, ROW %02d)", tableerrorsource1, tableerrorsource2);
data/goattracker-2.75/src/greloc.c:478: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).
      sprintf(textbuffer + strlen(textbuffer), "WAVETABLE CMD (ROW %02X, ", tableerrorsource1);
data/goattracker-2.75/src/greloc.c:482: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).
      sprintf(textbuffer + strlen(textbuffer), "(INSTRUMENT %02X, ", tableerrorsource1);
data/goattracker-2.75/src/greloc.c:498:7:  [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(textbuffer, ")");
data/goattracker-2.75/src/greloc.c:516: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(loadedsongfilename))
data/goattracker-2.75/src/greloc.c:1444: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(loadedsongfilename))
data/goattracker-2.75/src/greloc.c:1534:19:  [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 (c = 0; c < strlen(loadedsongfilename); c++)
data/goattracker-2.75/src/greloc.c:1560: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).
    if (strlen(packedsongname) < MAX_FILENAME-4)
data/goattracker-2.75/src/greloc.c:1563:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (c = strlen(packedsongname)-1; c >= 0; c--)
data/goattracker-2.75/src/greloc.c:1989:29:  [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).
  membuf_append(&src, text, strlen(text));
data/goattracker-2.75/src/gsong.c:28: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(songfilename) < MAX_FILENAME-4)
data/goattracker-2.75/src/gsong.c:31:14:  [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 (c = strlen(songfilename)-1; c >= 0; c--)
data/goattracker-2.75/src/gsong.c:133: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(instrfilename) < MAX_FILENAME-4)
data/goattracker-2.75/src/gsong.c:136:14:  [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 (c = strlen(instrfilename)-1; c >= 0; c--)
data/goattracker-2.75/src/gsong.c:769:27:  [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(instr[fi].name) < MAX_INSTRNAMELEN-3)
data/goattracker-2.75/src/gt2reloc.c:152: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(songfilename)) {
data/goattracker-2.75/src/gt2reloc.c:159: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).
  c = strlen(packedsongname);
data/goattracker-2.75/src/gt2reloc.c:160: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(packedsongname) <= 0) {
data/goattracker-2.75/src/ins2snd2.c:59:60:  [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 (((argv[c][0] == '-') || (argv[c][0] == '/')) && (strlen(argv[c]) > 1))
data/goattracker-2.75/src/resid-fp/sidfp.cpp:160:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
reg8 SIDFP::read(reg8 offset)
data/goattracker-2.75/src/resid-fp/sidfp.h:50:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reg8 read(reg8 offset);
data/goattracker-2.75/src/resid/sid.cpp:165:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
reg8 SID::read(reg8 offset)
data/goattracker-2.75/src/resid/sid.cpp:335:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    state.sid_register[j] = read(j);
data/goattracker-2.75/src/resid/sid.h:52:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reg8 read(reg8 offset);

ANALYSIS SUMMARY:

Hits = 425
Lines analyzed = 48759 in approximately 2.15 seconds (22680 lines/second)
Physical Source Lines of Code (SLOC) = 40367
Hits@level = [0] 213 [1]  62 [2] 296 [3]   3 [4]  64 [5]   0
Hits@level+ = [0+] 638 [1+] 425 [2+] 363 [3+]  67 [4+]  64 [5+]   0
Hits/KSLOC@level+ = [0+] 15.805 [1+] 10.5284 [2+] 8.99249 [3+] 1.65977 [4+] 1.58545 [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.