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/missfits-2.8.0/src/custom.c
Examining data/missfits-2.8.0/src/file.c
Examining data/missfits-2.8.0/src/fitswcs.c
Examining data/missfits-2.8.0/src/main.c
Examining data/missfits-2.8.0/src/makeit.c
Examining data/missfits-2.8.0/src/prefs.c
Examining data/missfits-2.8.0/src/custom.h
Examining data/missfits-2.8.0/src/define.h
Examining data/missfits-2.8.0/src/file.h
Examining data/missfits-2.8.0/src/fitswcs.h
Examining data/missfits-2.8.0/src/globals.h
Examining data/missfits-2.8.0/src/key.h
Examining data/missfits-2.8.0/src/preflist.h
Examining data/missfits-2.8.0/src/prefs.h
Examining data/missfits-2.8.0/src/process.c
Examining data/missfits-2.8.0/src/process.h
Examining data/missfits-2.8.0/src/types.h
Examining data/missfits-2.8.0/src/wcscelsys.h
Examining data/missfits-2.8.0/src/xml.h
Examining data/missfits-2.8.0/src/xml.c
Examining data/missfits-2.8.0/src/fits/fitsbody.c
Examining data/missfits-2.8.0/src/fits/fitscat.c
Examining data/missfits-2.8.0/src/fits/fitscheck.c
Examining data/missfits-2.8.0/src/fits/fitscleanup.c
Examining data/missfits-2.8.0/src/fits/fitsconv.c
Examining data/missfits-2.8.0/src/fits/fitshead.c
Examining data/missfits-2.8.0/src/fits/fitskey.c
Examining data/missfits-2.8.0/src/fits/fitsmisc.c
Examining data/missfits-2.8.0/src/fits/fitsread.c
Examining data/missfits-2.8.0/src/fits/fitstab.c
Examining data/missfits-2.8.0/src/fits/fitsutil.c
Examining data/missfits-2.8.0/src/fits/fitswrite.c
Examining data/missfits-2.8.0/src/fits/fitscat_defs.h
Examining data/missfits-2.8.0/src/fits/fitscat.h
Examining data/missfits-2.8.0/src/wcs/cel.c
Examining data/missfits-2.8.0/src/wcs/lin.c
Examining data/missfits-2.8.0/src/wcs/poly.c
Examining data/missfits-2.8.0/src/wcs/proj.c
Examining data/missfits-2.8.0/src/wcs/sph.c
Examining data/missfits-2.8.0/src/wcs/tnx.c
Examining data/missfits-2.8.0/src/wcs/wcs.c
Examining data/missfits-2.8.0/src/wcs/wcstrig.c
Examining data/missfits-2.8.0/src/wcs/cel.h
Examining data/missfits-2.8.0/src/wcs/lin.h
Examining data/missfits-2.8.0/src/wcs/poly.h
Examining data/missfits-2.8.0/src/wcs/proj.h
Examining data/missfits-2.8.0/src/wcs/sph.h
Examining data/missfits-2.8.0/src/wcs/tnx.h
Examining data/missfits-2.8.0/src/wcs/wcs.h
Examining data/missfits-2.8.0/src/wcs/wcsmath.h
Examining data/missfits-2.8.0/src/wcs/wcstrig.h

FINAL RESULTS:

data/missfits-2.8.0/src/define.h:149:50:  [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	NPRINTF		if (prefs.verbose_type == NORM) fprintf
data/missfits-2.8.0/src/define.h:156:50:  [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	FPRINTF		if (prefs.verbose_type == FULL)	fprintf
data/missfits-2.8.0/src/file.c:149: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(hname, name);
data/missfits-2.8.0/src/file.c:152:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pstr, "%s", prefs.head_suffix);
data/missfits-2.8.0/src/file.c:153:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(gstr, "Looking for %s", hname);
data/missfits-2.8.0/src/file.c:182:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.slice_format, i+prefs.slice_start-1);
data/missfits-2.8.0/src/file.c:184:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:185:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(gstr, "%s/%s%s", name, prefix, str);
data/missfits-2.8.0/src/file.c:193:12:  [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(hname, gstr);
data/missfits-2.8.0/src/file.c:196:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(pstr, "%s", prefs.head_suffix);
data/missfits-2.8.0/src/file.c:197:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(gstr, "Looking for %s", hname);
data/missfits-2.8.0/src/file.c:233:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, prefs.slice_format, i+prefs.slice_start-1);
data/missfits-2.8.0/src/file.c:238:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:241:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(gstr, "%s%s", name, str);
data/missfits-2.8.0/src/file.c:248: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(hname, gstr);
data/missfits-2.8.0/src/file.c:251:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(pstr, "%s", prefs.head_suffix);
data/missfits-2.8.0/src/file.c:252:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(gstr, "Looking for %s", hname);
data/missfits-2.8.0/src/file.c:305: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(dirname, name);
data/missfits-2.8.0/src/file.c:310: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(tailname,name);
data/missfits-2.8.0/src/file.c:313: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(tailname,pstr+1);
data/missfits-2.8.0/src/file.c:321:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpname, "%s/mf%05ldtmp", dirname, (long)getpid()) ;
data/missfits-2.8.0/src/file.c:338:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tmpname, FITS_SUFFIX);
data/missfits-2.8.0/src/file.c:355:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:356:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(filename, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:366:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, prefs.slice_format,t+prefs.slice_start);
data/missfits-2.8.0/src/file.c:367:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(filename, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:381:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:382:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(filename, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:394:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(str, prefs.slice_format,t+prefs.slice_start);
data/missfits-2.8.0/src/file.c:395:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(filename, "%s%s", tmpname,str);
data/missfits-2.8.0/src/file.c:402:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tmpname, FITS_SUFFIX);
data/missfits-2.8.0/src/file.c:418: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(dirname, tailname);
data/missfits-2.8.0/src/file.c:443:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.slice_format, i+prefs.slice_start-1);
data/missfits-2.8.0/src/file.c:445:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str3, "%s/%s%s", tab->cat->filename, tailname, str);
data/missfits-2.8.0/src/file.c:456:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:457:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:458:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str3, "%s/%s%s", dirname, tailname, str);
data/missfits-2.8.0/src/file.c:464:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, prefs.slice_format, t+prefs.slice_start);
data/missfits-2.8.0/src/file.c:465:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str2, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:466:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str3, "%s/%s%s", dirname, tailname, str);
data/missfits-2.8.0/src/file.c:472:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2,"%s%s",name, FITS_SUFFIX);
data/missfits-2.8.0/src/file.c:474:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2,"%s",name);
data/missfits-2.8.0/src/file.c:481: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(dirname, tailname);
data/missfits-2.8.0/src/file.c:492:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:493:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:494:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str3, "%s/%s%s", dirname, tailname, str);
data/missfits-2.8.0/src/file.c:498:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "%s.back", str3);
data/missfits-2.8.0/src/file.c:506:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, prefs.slice_format, t+prefs.slice_start);
data/missfits-2.8.0/src/file.c:507:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str2, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:508:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str3, "%s/%s%s", dirname, tailname, str);
data/missfits-2.8.0/src/file.c:512:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "%s.back", str3);
data/missfits-2.8.0/src/file.c:520:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2,"%s%s",name, FITS_SUFFIX);
data/missfits-2.8.0/src/file.c:522:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2,"%s",name);
data/missfits-2.8.0/src/file.c:525:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "%s.back", str2);
data/missfits-2.8.0/src/file.c:527:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "%s/%s%s", dirname, tailname, FITS_SUFFIX);
data/missfits-2.8.0/src/file.c:537: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(dirname, tailname);
data/missfits-2.8.0/src/file.c:547:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.split_format, i+prefs.split_start-1);
data/missfits-2.8.0/src/file.c:548:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:551:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str3, "%s/%s%s%s%s" , dirname, tailname,
data/missfits-2.8.0/src/file.c:560:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str, prefs.slice_format, t+prefs.slice_start);
data/missfits-2.8.0/src/file.c:561:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str2, "%s%s", tmpname, str);
data/missfits-2.8.0/src/file.c:564:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str3, "%s/%s%s%s%s" , dirname, tailname,
data/missfits-2.8.0/src/file.c:570:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "%s/%s%s", dirname, tailname, prefs.new_suffix);
data/missfits-2.8.0/src/file.c:571: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(str, FITS_SUFFIX);
data/missfits-2.8.0/src/fits/fitsbody.c:113:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp",
data/missfits-2.8.0/src/fits/fitsbody.c:213:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp",
data/missfits-2.8.0/src/fits/fitsbody.c:1145: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(body_swapdirname, dirname);
data/missfits-2.8.0/src/fits/fitscat.c:138:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str2, "%s %.65s", str2, str);
data/missfits-2.8.0/src/fits/fitscat.h:129:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  char		printf[80];		/* printing format (C Convention) */
data/missfits-2.8.0/src/fits/fitscat_defs.h:146:29:  [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	QPRINTF		if (qflag) fprintf
data/missfits-2.8.0/src/fits/fitscleanup.c:99: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(cleanup_filename[cleanup_nfiles++], filename);
data/missfits-2.8.0/src/fits/fitsconv.c:106: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(key->comment, comment+strspn(comment, " "));
data/missfits-2.8.0/src/fits/fitsconv.c:123:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(comment, "%s keyword found twice in ",
data/missfits-2.8.0/src/fits/fitshead.c:259:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fitsread(tab->headbuf, strk, key->printf, H_STRING, T_STRING);
data/missfits-2.8.0/src/fits/fitshead.c:260:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (*key->printf)
data/missfits-2.8.0/src/fits/fitshead.c:261:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      tdisptoprintf(key->printf, key->printf);
data/missfits-2.8.0/src/fits/fitshead.c:261:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      tdisptoprintf(key->printf, key->printf);
data/missfits-2.8.0/src/fits/fitshead.c:428:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str2, n?", %d%n":"%d%n", key->naxisn[n],&j);
data/missfits-2.8.0/src/fits/fitshead.c:440:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (*key->printf)
data/missfits-2.8.0/src/fits/fitshead.c:444:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fitswrite(tab->headbuf, strk, printftotdisp(key->printf, str),
data/missfits-2.8.0/src/fits/fitskey.c:197: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(key->name, keyname);
data/missfits-2.8.0/src/fits/fitskey.c:529: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(names[i],key->name);
data/missfits-2.8.0/src/fits/fitskey.c:684:15:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
              fprintf(stream, skycathead, 6.0);
data/missfits-2.8.0/src/fits/fitskey.c:698:8:  [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(key->name,  map->newname);
data/missfits-2.8.0/src/fits/fitskey.c:737:15:  [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(key->name, map->newname);
data/missfits-2.8.0/src/fits/fitskey.c:825:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:825:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:825:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:845:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:845:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:845:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:866:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%lld",
data/missfits-2.8.0/src/fits/fitskey.c:866:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%lld",
data/missfits-2.8.0/src/fits/fitskey.c:866:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%lld",
data/missfits-2.8.0/src/fits/fitskey.c:869:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:869:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:869:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:889: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.
                    fprintf(stream, *key->printf?key->printf:"%g",
data/missfits-2.8.0/src/fits/fitskey.c:889:43:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stream, *key->printf?key->printf:"%g",
data/missfits-2.8.0/src/fits/fitskey.c:889:55:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stream, *key->printf?key->printf:"%g",
data/missfits-2.8.0/src/fits/fitskey.c:909:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%f",
data/missfits-2.8.0/src/fits/fitskey.c:909:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%f",
data/missfits-2.8.0/src/fits/fitskey.c:909:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%f",
data/missfits-2.8.0/src/fits/fitskey.c:940:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:940:44:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:940:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf(stream, *key->printf?key->printf:"%d",
data/missfits-2.8.0/src/fits/fitskey.c:986:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     fprintf(stream, skycattail, 1.0);
data/missfits-2.8.0/src/fits/fitsread.c:60: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(cat->filename, filename);
data/missfits-2.8.0/src/fits/fitsread.c:98: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(ccat->filename, *filenames);
data/missfits-2.8.0/src/fits/fitstab.c:446: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(tab->extname, tabname);
data/missfits-2.8.0/src/fits/fitstab.c:709: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(names[i],tab->extname);
data/missfits-2.8.0/src/fits/fitsutil.c:402:21:  [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).
    case H_COMMENT:	strcpy(ptr,str+9);
data/missfits-2.8.0/src/fits/fitsutil.c:405:22:  [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).
    case H_HCOMMENT:	strcpy(ptr,str+33);
data/missfits-2.8.0/src/fits/fitsutil.c:547:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		        sprintf(str, "'%s'", str2);
data/missfits-2.8.0/src/fits/fitsutil.c:553:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    case H_COMMENT:	sprintf(str, "%-70s", (char *)ptr);
data/missfits-2.8.0/src/fits/fitsutil.c:558:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    case H_HCOMMENT:	sprintf(str, " / %-47s", (char *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:59: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(cat->filename, filename);
data/missfits-2.8.0/src/fits/fitswrite.c:418:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:418:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:418:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:423:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:423:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:423:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:428:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:428:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:428:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:433:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:433:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:433:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:438:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:438:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:438:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:451:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:451:34:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:451:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:504:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:504:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:504:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:509:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:509:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:509:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:514:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:514:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:514:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:519:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:519:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:519:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:524:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:524:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:524:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:537:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:537:34:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/missfits-2.8.0/src/fits/fitswrite.c:537:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/missfits-2.8.0/src/fitswcs.c:348:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		   strcpy(str, (def)); \
data/missfits-2.8.0/src/fitswcs.c:1175: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(strlng, wcs->ctype[olng]);
data/missfits-2.8.0/src/fitswcs.c:1176: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(strlat, wcs->ctype[olat]);
data/missfits-2.8.0/src/fitswcs.c:1177: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(wcs->ctype[lng], strlng);
data/missfits-2.8.0/src/fitswcs.c:1178: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(wcs->ctype[lat], strlat);
data/missfits-2.8.0/src/main.c:122:15:  [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(prefs.prefs_name, argv[++a]);
data/missfits-2.8.0/src/main.c:165:36:  [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).
            prefs.file_name[nim] = strcpy(listbuf + bufpos, str);
data/missfits-2.8.0/src/makeit.c:241:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(im,prefs.slicekey_format,s+prefs.slice_start);
data/missfits-2.8.0/src/makeit.c:242:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(prefs.oldslice_key[k], "%s%s", prefs.slice_key[k],im);
data/missfits-2.8.0/src/makeit.c:250:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
              sprintf(im,prefs.slicekey_format,c+prefs.slice_start);
data/missfits-2.8.0/src/makeit.c:251:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf(prefs.oldslice_key[k], "%s%s", prefs.slice_key[k],im);
data/missfits-2.8.0/src/makeit.c:352:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmpkey,"%8s",tstr);
data/missfits-2.8.0/src/makeit.c:358: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(xmlkey[i].display_key,prefs.display_key[i]);
data/missfits-2.8.0/src/makeit.c:424:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(error, "%s%s", msg1,msg2);
data/missfits-2.8.0/src/prefs.c:101: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(keylist[i], key[i].name);
data/missfits-2.8.0/src/prefs.c:117: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(str, *(dp++)+1);
data/missfits-2.8.0/src/prefs.c:119: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(str, *(dp++));
data/missfits-2.8.0/src/prefs.c:132:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "%s %s", argkey[argi], argval[argi]);
data/missfits-2.8.0/src/prefs.c:210: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((char *)key[nkey].ptr, value);
data/missfits-2.8.0/src/prefs.c:313:15:  [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(((char **)key[nkey].ptr)[i], value);
data/missfits-2.8.0/src/prefs.c:396: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(dirname, str);
data/missfits-2.8.0/src/prefs.c:401: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(str2,str);
data/missfits-2.8.0/src/prefs.c:404: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(str2,pstr+1);
data/missfits-2.8.0/src/prefs.c:409: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(str,str2);
data/missfits-2.8.0/src/prefs.c:498:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(prefs.newslice_key[i],"%8s",tstr);
data/missfits-2.8.0/src/wcs/wcs.c:505:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(requir, "DEC--%s", wcs->pcode);
data/missfits-2.8.0/src/wcs/wcs.c:511:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(requir, "RA---%s", wcs->pcode);
data/missfits-2.8.0/src/wcs/wcs.c:517:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(requir, "%s-%s", wcs->lattyp, wcs->pcode);
data/missfits-2.8.0/src/wcs/wcs.c:523:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(requir, "%s-%s", wcs->lngtyp, wcs->pcode);
data/missfits-2.8.0/src/xml.c:142:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s%s",name,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:144:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s",name,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:150: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:158:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(str2, prefs.slice_format, t+prefs.slice_start);
data/missfits-2.8.0/src/xml.c:159:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmpname,"%s%s",name,str2);
data/missfits-2.8.0/src/xml.c:163:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s%s",tmpname,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:166: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(x->filename,tmpname);
data/missfits-2.8.0/src/xml.c:172: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:186:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str2, prefs.split_format, i+prefs.split_start-1); 
data/missfits-2.8.0/src/xml.c:187:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmpname,"%s%s",name,str2);
data/missfits-2.8.0/src/xml.c:191:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(x->filename,"%s%s%s",tmpname,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:194: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(x->filename,tmpname);
data/missfits-2.8.0/src/xml.c:200: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:218:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s%s",name,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:220:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s",name,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:226: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:235:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s%s",name,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:237:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(x->filename,"%s%s",name,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:243: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:255:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(str2, prefs.split_format, i+prefs.split_start-1); 
data/missfits-2.8.0/src/xml.c:256:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmpname,"%s%s",name,str2);
data/missfits-2.8.0/src/xml.c:260:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(x->filename,"%s%s%s",tmpname,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:263: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(x->filename,tmpname);
data/missfits-2.8.0/src/xml.c:269: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:286:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str2, prefs.slice_format, t+prefs.slice_start); 
data/missfits-2.8.0/src/xml.c:287:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmpname,"%s%s",name,str2);
data/missfits-2.8.0/src/xml.c:291:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(x->filename,"%s%s%s",tmpname,prefs.new_suffix,FITS_SUFFIX);
data/missfits-2.8.0/src/xml.c:294: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(x->filename,tmpname);
data/missfits-2.8.0/src/xml.c:300: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(x->display_value[n],xmlkey[n].display_value);
data/missfits-2.8.0/src/xml.c:714:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(uunit, " unit=\"%s\"", unit);
data/missfits-2.8.0/src/xml.c:720:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(value, format, *((double *)key[i].ptr));
data/missfits-2.8.0/src/xml.c:729:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value, format, ((double *)key[i].ptr)[0]);
data/missfits-2.8.0/src/xml.c:735:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(value, format, ((double *)key[i].ptr)[j]);
data/missfits-2.8.0/src/xml.c:746:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(value, format, *((int *)key[i].ptr));
data/missfits-2.8.0/src/xml.c:755:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value, format, ((int *)key[i].ptr)[0]);
data/missfits-2.8.0/src/xml.c:761:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(value, format, ((int *)key[i].ptr)[j]);
data/missfits-2.8.0/src/xml.c:798:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(value, "%s", (char *)key[i].ptr);
data/missfits-2.8.0/src/xml.c:807:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(value, "%s", ((char **)key[i].ptr)[0]);
data/missfits-2.8.0/src/xml.c:813: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(value, ((char **)key[i].ptr)[j]);
data/missfits-2.8.0/src/xml.c:824: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(value, key[i].keylist[*((int *)key[i].ptr)]);
data/missfits-2.8.0/src/xml.c:833: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(value, key[i].keylist[((int *)key[i].ptr)[0]]);
data/missfits-2.8.0/src/xml.c:839: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(value, key[i].keylist[((int *)key[i].ptr)[j]]);
data/missfits-2.8.0/src/prefs.c:166:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            if (!(envval=getenv(envname)))
data/missfits-2.8.0/src/xml.c:445:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (!(psuser=getenv("USERNAME")))	/* Cygwin,... */
data/missfits-2.8.0/src/xml.c:446:14:  [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.
    psuser = getenv("LOGNAME");		/* Linux,... */
data/missfits-2.8.0/src/xml.c:447:12:  [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.
  pspath = getenv("PWD");
data/missfits-2.8.0/src/xml.c:448:12:  [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.
  pshost = getenv("HOSTNAME");
data/missfits-2.8.0/src/custom.c:55: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		str[82];
data/missfits-2.8.0/src/define.h:145:20:  [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(ptrout, ptrin, (size_t)(nel)*sizeof(typ));};;}
data/missfits-2.8.0/src/file.c:72: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 		str[MAXCHAR];
data/missfits-2.8.0/src/file.c:73: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			hname[MAXCHAR],
data/missfits-2.8.0/src/file.c:292: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	        dirname[MAXCHAR], tailname[MAXCHAR], tmpname[MAXCHAR],
data/missfits-2.8.0/src/file.c:597: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		keyword[88],data[88],comment[88], str[88],
data/missfits-2.8.0/src/file.c:604:13:  [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 ((file=fopen(filename, "r")))
data/missfits-2.8.0/src/fits/fitsbody.c:52: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	body_swapdirname[MAXCHARS] = BODY_DEFSWAPDIR;
data/missfits-2.8.0/src/fits/fitsbody.c:116: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 (!(file=fopen(tab->swapname, "wb+")))
data/missfits-2.8.0/src/fits/fitsbody.c:216: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 (!(file=fopen(tab->swapname, "wb+")))
data/missfits-2.8.0/src/fits/fitsbody.c:536: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(&val16, bufdata, 2);
data/missfits-2.8.0/src/fits/fitsbody.c:543: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(&dval,bufdata,4);
data/missfits-2.8.0/src/fits/fitsbody.c:583: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(&val16, bufdata, 2);
data/missfits-2.8.0/src/fits/fitsbody.c:712: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(&val16, bufdata, 2);
data/missfits-2.8.0/src/fits/fitsbody.c:719: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(&dval,bufdata,4);
data/missfits-2.8.0/src/fits/fitsbody.c:759: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(&val16, bufdata, 2);
data/missfits-2.8.0/src/fits/fitscat.c:118: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			str2[82];
data/missfits-2.8.0/src/fits/fitscat.c:291: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(tab->headbuf, bintabtemplate, sizeof(bintabtemplate));
data/missfits-2.8.0/src/fits/fitscat.c:408:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((cat->file = fopen(cat->filename, at==WRITE_ONLY?"wb":"rb")) == NULL)
data/missfits-2.8.0/src/fits/fitscat.h:124: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[80];		/* name */
data/missfits-2.8.0/src/fits/fitscat.h:125: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		comment[80];		/* a comment */
data/missfits-2.8.0/src/fits/fitscat.h:129: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		printf[80];		/* printing format (C Convention) */
data/missfits-2.8.0/src/fits/fitscat.h:130: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		unit[80];		/* physical unit */
data/missfits-2.8.0/src/fits/fitscat.h:131: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		voucd[80];		/* VO ucd */
data/missfits-2.8.0/src/fits/fitscat.h:132: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		vounit[80];		/* VO unit */
data/missfits-2.8.0/src/fits/fitscat.h:148: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[MAXCHARS];	/* file name */
data/missfits-2.8.0/src/fits/fitscat.h:178: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		xtension[82];		/* FITS extension type */
data/missfits-2.8.0/src/fits/fitscat.h:179: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		extname[82];		/* FITS extension name */
data/missfits-2.8.0/src/fits/fitscat.h:192: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		swapname[MAXCHARS];	/* name of the swapfile */
data/missfits-2.8.0/src/fits/fitscat_defs.h:136: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(ptrout, ptrin, (size_t)(nel)*sizeof(typ));}
data/missfits-2.8.0/src/fits/fitscheck.c:105: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			cbuf[16];
data/missfits-2.8.0/src/fits/fitscheck.c:227: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(buf, (char *)tab->bodybuf+tab->tabsize-size, size);
data/missfits-2.8.0/src/fits/fitscheck.c:269: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		str[32],
data/missfits-2.8.0/src/fits/fitscheck.c:289: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(str, "%u", sum);
data/missfits-2.8.0/src/fits/fitsconv.c:64: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		comment[82], keyword[16], ptr[82];
data/missfits-2.8.0/src/fits/fitsconv.c:94: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 line[81];
data/missfits-2.8.0/src/fits/fitshead.c:109: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		str[88];
data/missfits-2.8.0/src/fits/fitshead.c:110: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		key[12], name[16],
data/missfits-2.8.0/src/fits/fitshead.c:115:46:  [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.
  filename = (tab->cat? tab->cat->filename : strcpy(name, "internal header"));
data/missfits-2.8.0/src/fits/fitshead.c:136: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(key,"NAXIS%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:189:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tab->bodysum = (unsigned int)atoi(str);
data/missfits-2.8.0/src/fits/fitshead.c:210: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		strf[88], strk[16];
data/missfits-2.8.0/src/fits/fitshead.c:248: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(strk, "TTYPE%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:256: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(strk, "TUNIT%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:258: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(strk, "TDISP%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:263: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(strk, "TFORM%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:293: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(strk, "TDIM%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:340: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		strk[88], str[88];
data/missfits-2.8.0/src/fits/fitshead.c:362: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(strk, "NAXIS%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:410: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(strk, "TTYPE%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:413: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(strk, "TFORM%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:421: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(strk, "TDIM%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:436: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(strk, "TUNIT%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:442: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(strk, "TDISP%-3d", i+1);
data/missfits-2.8.0/src/fits/fitshead.c:457: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(str, "%u", tab->bodysum);
data/missfits-2.8.0/src/fits/fitshead.c:662: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(str, "%d%c", n, t);
data/missfits-2.8.0/src/fits/fitshead.c:747: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		control[4];
data/missfits-2.8.0/src/fits/fitshead.c:761: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(str, "%%%dc",w);
data/missfits-2.8.0/src/fits/fitshead.c:764: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(str, "%%%dd",w);
data/missfits-2.8.0/src/fits/fitshead.c:768: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(str, "%%%d.%dd",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:770: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(str, "%%%dd",w);
data/missfits-2.8.0/src/fits/fitshead.c:774: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(str, "%%%d.%dx",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:776: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(str, "%%%dx",w);
data/missfits-2.8.0/src/fits/fitshead.c:780: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(str, "%%%d.%do",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:782: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(str, "%%%do",w);
data/missfits-2.8.0/src/fits/fitshead.c:786: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(str, "%%%d.%df",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:788: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(str, "%%%df",w);
data/missfits-2.8.0/src/fits/fitshead.c:792: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(str, "%%%d.%dE",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:794: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(str, "%%%dE",w);
data/missfits-2.8.0/src/fits/fitshead.c:798: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(str, "%%%d.%dG",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:800: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(str, "%%%dG",w);
data/missfits-2.8.0/src/fits/fitshead.c:847: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(str, "A%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:850: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(str, "A%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:854: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(str, "I%d.%d",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:856: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(str, "I%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:860: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(str, "O%d.%d",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:862: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(str, "O%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:866: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(str, "Z%d.%d",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:868: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(str, "Z%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:872: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(str, "F%d.%d",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:874: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(str, "F%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:878: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(str, "E%d.%d",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:880: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(str, "E%d",w);
data/missfits-2.8.0/src/fits/fitshead.c:884: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(str, "G%d.%d",w,d);
data/missfits-2.8.0/src/fits/fitshead.c:886: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(str, "G%d",w);
data/missfits-2.8.0/src/fits/fitskey.c:606: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    oldname[80];         /* Name of the original pipeline key */
data/missfits-2.8.0/src/fits/fitskey.c:607: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    newname[80];         /* Name of the skycat required key   */
data/missfits-2.8.0/src/fits/fitskey.c:665:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          key_col[i] = atoi(++t);
data/missfits-2.8.0/src/fits/fitskey.c:814:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          ptr = memcpy(rfield, buf+key->pos, key->nbytes);
data/missfits-2.8.0/src/fits/fitsmisc.c:44: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	warning_historystr[WARNING_NMAX][192]={""};
data/missfits-2.8.0/src/fits/fitsmisc.c:89: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(warning_historystr[(nwarning++)%WARNING_NMAX],
data/missfits-2.8.0/src/fits/fitsread.c:41: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	padbuf[FBSIZE];
data/missfits-2.8.0/src/fits/fitstab.c:445: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(tab->xtension, "BINTABLE");
data/missfits-2.8.0/src/fits/fitstab.c:457: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(tab->headbuf, bintabtemplate, sizeof(bintabtemplate));
data/missfits-2.8.0/src/fits/fitsutil.c:61: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		str[82];
data/missfits-2.8.0/src/fits/fitsutil.c:79: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(str, "NAXIS%-3d", i);
data/missfits-2.8.0/src/fits/fitsutil.c:116: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(str, "%-8.8s %-71.71s",
data/missfits-2.8.0/src/fits/fitsutil.c:119: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(str, "%-8.8s=                      / %-47.47s",
data/missfits-2.8.0/src/fits/fitsutil.c:122: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(str, "%-8.8s=                        %-47.47s",
data/missfits-2.8.0/src/fits/fitsutil.c:124: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(key_ptr, str, 80);
data/missfits-2.8.0/src/fits/fitsutil.c:208: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(keyword, fitsline, 8);
data/missfits-2.8.0/src/fits/fitsutil.c:219: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(comment, fitsline+9, 71);
data/missfits-2.8.0/src/fits/fitsutil.c:271:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      *((int *)ptr) = atoi(fitsline+j);
data/missfits-2.8.0/src/fits/fitsutil.c:333: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		s[4], str[82];
data/missfits-2.8.0/src/fits/fitsutil.c:470: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		str[81],str2[81];
data/missfits-2.8.0/src/fits/fitsutil.c:483:6:  [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(str, "%20d", *(int *)ptr);
data/missfits-2.8.0/src/fits/fitsutil.c:485:6:  [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(str, "%20d", *(short *)ptr);
data/missfits-2.8.0/src/fits/fitsutil.c:488:6:  [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(str, "%20lld", *(SLONGLONG *)ptr);
data/missfits-2.8.0/src/fits/fitsutil.c:492:19:  [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.
    case H_FLOAT:	sprintf(str, "    %16.8f", (ttype==T_DOUBLE)?
data/missfits-2.8.0/src/fits/fitsutil.c:496:18:  [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.
    case H_EXPO:	sprintf(str, " %19.12E", (ttype==T_DOUBLE)?
data/missfits-2.8.0/src/fits/fitsutil.c:502:6:  [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(str, "                   T");
data/missfits-2.8.0/src/fits/fitsutil.c:504:6:  [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(str, "                   F");
data/missfits-2.8.0/src/fits/fitsutil.c:520:6:  [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(str, "'%-18.18s ", str2);
data/missfits-2.8.0/src/fits/fitsutil.c:526:6:  [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(str, "'%-68.68s ", str2);
data/missfits-2.8.0/src/fits/fitswrite.c:256:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char  padbuf[FBSIZE];
data/missfits-2.8.0/src/fitswcs.c:350: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		str[MAXCHARS];
data/missfits-2.8.0/src/fitswcs.c:351: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		wstr1[TNX_MAXCHARS], wstr2[TNX_MAXCHARS];
data/missfits-2.8.0/src/fitswcs.c:356:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char		name[16],
data/missfits-2.8.0/src/fitswcs.c:360:46:  [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.
  filename = (tab->cat? tab->cat->filename : strcpy(name, "internal header"));
data/missfits-2.8.0/src/fitswcs.c:378: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(str, "CTYPE%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:381: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(str, "CUNIT%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:384: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(str, "CRVAL%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:386: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(str, "CRPIX%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:388: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(str, "CDELT%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:390: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(str, "CRDER%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:392: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(str, "CSYER%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:405: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(str, "CD%d_%d", l+1, j+1);
data/missfits-2.8.0/src/fitswcs.c:414: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(str, "PC%03d%03d", l+1, j+1);
data/missfits-2.8.0/src/fitswcs.c:456:21:  [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).
          dpar[l] = atoi(pstr);
data/missfits-2.8.0/src/fitswcs.c:534: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(str, "WAT1_001");
data/missfits-2.8.0/src/fitswcs.c:537: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(str, "WAT1_%03d", j);
data/missfits-2.8.0/src/fitswcs.c:541: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(str, "WAT2_001");
data/missfits-2.8.0/src/fitswcs.c:544: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(str, "WAT2_%03d", j);
data/missfits-2.8.0/src/fitswcs.c:581: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(str, "PROJP%-3d", j);
data/missfits-2.8.0/src/fitswcs.c:589: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(str, "PV%d_%d ", l+1, j);
data/missfits-2.8.0/src/fitswcs.c:625: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		str[MAXCHARS];
data/missfits-2.8.0/src/fitswcs.c:635: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(str, "NAXIS%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:670: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(str, "CTYPE%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:673: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(str, "CUNIT%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:676: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(str, "CRVAL%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:679: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(str, "CRPIX%-3d", l+1);
data/missfits-2.8.0/src/fitswcs.c:684: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(str, "CD%d_%d", l+1, j+1);
data/missfits-2.8.0/src/fitswcs.c:691: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(str, "PV%d_%d", l+1, j);
data/missfits-2.8.0/src/fitswcs.c:754: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	projcode[28][5] =
data/missfits-2.8.0/src/fitswcs.c:1162: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		strlng[80], strlat[80];
data/missfits-2.8.0/src/fitswcs.c:2030: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(str,"%02d:%02d:%05.2f", hh, mm, ss);
data/missfits-2.8.0/src/fitswcs.c:2057: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(str,"%c%02d:%02d:%04.1f", sign, dd, dm, ds);
data/missfits-2.8.0/src/fitswcs.h:65: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		ctype[NAXIS][9];	/* FITS CTYPE strings */
data/missfits-2.8.0/src/fitswcs.h:66: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		cunit[NAXIS][32];	/* FITS CUNIT strings */
data/missfits-2.8.0/src/globals.h:33: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		gstr[MAXCHAR];
data/missfits-2.8.0/src/key.h:39: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[32];
data/missfits-2.8.0/src/key.h:45: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		keylist[32][32];	/* List of keywords */
data/missfits-2.8.0/src/main.c:64: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 	liststr[MAXCHAR];
data/missfits-2.8.0/src/main.c:89: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(prefs.sdate_start,"%04d-%02d-%02d",
data/missfits-2.8.0/src/main.c:91: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(prefs.stime_start,"%02d:%02d:%02d",
data/missfits-2.8.0/src/main.c:97: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(prefs.prefs_name, "default.missfits");
data/missfits-2.8.0/src/main.c:147:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((fp=fopen(listname,"r")))
data/missfits-2.8.0/src/main.c:202: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(prefs.sdate_end,"%04d-%02d-%02d",
data/missfits-2.8.0/src/main.c:204: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(prefs.stime_end,"%02d:%02d:%02d",
data/missfits-2.8.0/src/makeit.c:58: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	                im[MAXCHAR], keyword[16];
data/missfits-2.8.0/src/makeit.c:168: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(gstr, " misses extensions/files (%d expected, %d found)",
data/missfits-2.8.0/src/makeit.c:186: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(keyword, "NAXIS%d", tab->naxis);
data/missfits-2.8.0/src/makeit.c:206: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(keyword, "NAXIS%d  ", tab->naxis);
data/missfits-2.8.0/src/makeit.c:322: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			keyword[12], str[100],tmpkey[12],
data/missfits-2.8.0/src/makeit.c:367: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(xmlkey[i].display_value,"%12d", (ttype==T_SHORT)?
data/missfits-2.8.0/src/makeit.c:375: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(xmlkey[i].display_value,"%30lf", (ttype==T_DOUBLE)?
data/missfits-2.8.0/src/makeit.c:381: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(xmlkey[i].display_value,"%c", *(int *)gstr? '0':'1');
data/missfits-2.8.0/src/makeit.c:387: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(xmlkey[i].display_value,"%.70s", gstr);
data/missfits-2.8.0/src/makeit.c:401: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(xmlkey[i].display_value,"xxx");
data/missfits-2.8.0/src/makeit.c:422: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	error[MAXCHAR];
data/missfits-2.8.0/src/preflist.h: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			keylist[sizeof(key)/sizeof(pkeystruct)][32];
data/missfits-2.8.0/src/prefs.c:81: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		*cp, str[MAXCHAR], *keyword, *value, **dp;
data/missfits-2.8.0/src/prefs.c:85: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		value2[MAXCHAR],envname[MAXCHAR];
data/missfits-2.8.0/src/prefs.c:90:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((infile = fopen(filename,"r")) == NULL)
data/missfits-2.8.0/src/prefs.c:200:20:  [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).
            ival = atoi(value);
data/missfits-2.8.0/src/prefs.c:210:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            strcpy((char *)key[nkey].ptr, value);
data/missfits-2.8.0/src/prefs.c:311:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              free(((char **)key[nkey].ptr)[i]);
data/missfits-2.8.0/src/prefs.c:312: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.
              QMALLOC(((char **)key[nkey].ptr)[i], char, MAXCHAR);
data/missfits-2.8.0/src/prefs.c:313:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              strcpy(((char **)key[nkey].ptr)[i], value);
data/missfits-2.8.0/src/prefs.c:394: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 dirname[MAXCHAR], str2[MAXCHAR], *pstr;
data/missfits-2.8.0/src/prefs.h:42: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		prefs_name[MAXCHAR];   	    /* prefs filename*/
data/missfits-2.8.0/src/prefs.h:43: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		*(file_name[MAXFILE]);	    /* Filename(s) of input images */
data/missfits-2.8.0/src/prefs.h:47: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		*(display_key[MAXKEYWORD]); /* Keyword display */
data/missfits-2.8.0/src/prefs.h:49: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		new_suffix[MAXCHAR];	    /* Generic suffix for new files */
data/missfits-2.8.0/src/prefs.h: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		*(remove_key[MAXKEYWORD]);  /* Keyword removal */
data/missfits-2.8.0/src/prefs.h: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		*(replace_key[MAXKEYWORD]); /* Keyword translations */
data/missfits-2.8.0/src/prefs.h:57: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		old_key[8][MAXKEYWORD];	    /* Keywords to be replaced */
data/missfits-2.8.0/src/prefs.h:59: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		new_key[8][MAXKEYWORD];	    /* Replacing keywords */
data/missfits-2.8.0/src/prefs.h:60: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		*(slice_key[MAXKEYWORD]);   /* Keyword translations */
data/missfits-2.8.0/src/prefs.h:62: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		oldslice_key[8][MAXKEYWORD];  /* Keywords to be sliced */
data/missfits-2.8.0/src/prefs.h:63: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		newslice_key[8][MAXKEYWORD];  /* Sliced keyword */
data/missfits-2.8.0/src/prefs.h:64: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		slicekey_format[MAXCHAR];   /* Suffix format for splitted key */
data/missfits-2.8.0/src/prefs.h:68: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		split_format[MAXCHAR];	    /* Suffix format for splitted files */
data/missfits-2.8.0/src/prefs.h:70: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		slice_format[MAXCHAR];	    /* Suffix format for splitted files */
data/missfits-2.8.0/src/prefs.h:73: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		head_suffix[MAXCHAR];	    /* Generic suffix for FITS headers */
data/missfits-2.8.0/src/prefs.h:78: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		xml_name[MAXCHAR];          /* XML file name */
data/missfits-2.8.0/src/prefs.h:79: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		xsl_name[MAXCHAR];          /* XSL file name (or URL) */
data/missfits-2.8.0/src/prefs.h:80: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		sdate_start[12];            /* missfits start date */
data/missfits-2.8.0/src/prefs.h:81: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		stime_start[12];            /* missfits start time */
data/missfits-2.8.0/src/prefs.h:82: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		sdate_end[12];		    /* missfits end date */
data/missfits-2.8.0/src/prefs.h:83: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		stime_end[12];		    /* missfits end time */
data/missfits-2.8.0/src/wcs/cel.c:287: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 pcodes[27][4] =
data/missfits-2.8.0/src/wcs/cel.c:313: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.
const char pcode[4];
data/missfits-2.8.0/src/wcs/cel.c:570: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.
const char pcode[4];
data/missfits-2.8.0/src/wcs/cel.c:599: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.
const char pcode[4];
data/missfits-2.8.0/src/wcs/cel.h:71: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 pcodes[27][4];
data/missfits-2.8.0/src/wcs/poly.c:86: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		str[512];
data/missfits-2.8.0/src/wcs/poly.c:94: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(str, "The dimensionality of the polynom (%d) exceeds the maximum\n"
data/missfits-2.8.0/src/wcs/poly.c:127: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(str, "The degree of the polynom (%d) exceeds the maximum\n"
data/missfits-2.8.0/src/wcs/wcs.c:464: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 requir[9];
data/missfits-2.8.0/src/wcs/wcs.c:498:10:  [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(wcs->pcode, "%.3s", &ctype[j][5]);
data/missfits-2.8.0/src/wcs/wcs.c:502:13:  [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(wcs->lngtyp, "RA");
data/missfits-2.8.0/src/wcs/wcs.c:503:13:  [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(wcs->lattyp, "DEC");
data/missfits-2.8.0/src/wcs/wcs.c:508:13:  [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(wcs->lngtyp, "RA");
data/missfits-2.8.0/src/wcs/wcs.c:509:13:  [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(wcs->lattyp, "DEC");
data/missfits-2.8.0/src/wcs/wcs.c:514: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(wcs->lngtyp, "%cLON", ctype[j][0]);
data/missfits-2.8.0/src/wcs/wcs.c:515: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(wcs->lattyp, "%cLAT", ctype[j][0]);
data/missfits-2.8.0/src/wcs/wcs.c:520: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(wcs->lngtyp, "%cLON", ctype[j][0]);
data/missfits-2.8.0/src/wcs/wcs.c:521: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(wcs->lattyp, "%cLAT", ctype[j][0]);
data/missfits-2.8.0/src/wcs/wcs.c:593:10:  [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(wcs->pcode, "SIN");
data/missfits-2.8.0/src/wcs/wcs.c:727:10:  [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(wcs->pcode, "SIN");
data/missfits-2.8.0/src/wcs/wcs.h:73: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 pcode[4];
data/missfits-2.8.0/src/wcs/wcs.h:74: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 lngtyp[5], lattyp[5];
data/missfits-2.8.0/src/xml.c:122: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      str2[MAXCHAR], tmpname[MAXCHAR];
data/missfits-2.8.0/src/xml.c:139: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(x->infiletype,"SAME");
data/missfits-2.8.0/src/xml.c:140: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(x->outfiletype,"SAME");
data/missfits-2.8.0/src/xml.c:156: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(x->infiletype,"CUBE");
data/missfits-2.8.0/src/xml.c:157: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(x->outfiletype,"SLICE");
data/missfits-2.8.0/src/xml.c:184: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(x->infiletype,"MULTI");
data/missfits-2.8.0/src/xml.c:185: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(x->outfiletype,"SPLIT");
data/missfits-2.8.0/src/xml.c:215: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(x->infiletype,"SLICE");
data/missfits-2.8.0/src/xml.c:216: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(x->outfiletype,"CUBE");
data/missfits-2.8.0/src/xml.c:232: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(x->infiletype,"SPLIT");
data/missfits-2.8.0/src/xml.c:233: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(x->outfiletype,"MULTI");
data/missfits-2.8.0/src/xml.c:253: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(x->infiletype,"MULTI");
data/missfits-2.8.0/src/xml.c:254: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(x->outfiletype,"SPLIT");
data/missfits-2.8.0/src/xml.c:284: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(x->infiletype,"CUBE");
data/missfits-2.8.0/src/xml.c:285: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(x->outfiletype,"SLICE");
data/missfits-2.8.0/src/xml.c:367: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 (!(file = fopen(prefs.xml_name, "w")))
data/missfits-2.8.0/src/xml.c:435: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(prefs.sdate_end,"%04d-%02d-%02d",
data/missfits-2.8.0/src/xml.c:437: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(prefs.stime_end,"%02d:%02d:%02d",
data/missfits-2.8.0/src/xml.c:673: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).
  else if (!(file = fopen(filename, "w")))
data/missfits-2.8.0/src/xml.c:706: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		value[MAXCHAR], uunit[MAXCHAR];
data/missfits-2.8.0/src/xml.c:772: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(value, "%c", *((int *)key[i].ptr)? 'T':'F');
data/missfits-2.8.0/src/xml.c:781: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(value, "%c", ((int *)key[i].ptr)[0]? 'T':'F');
data/missfits-2.8.0/src/xml.c:787: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(value, "%c", ((int *)key[i].ptr)[j]? 'T':'F');
data/missfits-2.8.0/src/xml.c:798:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      sprintf(value, "%s", (char *)key[i].ptr);
data/missfits-2.8.0/src/xml.c:807:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        sprintf(value, "%s", ((char **)key[i].ptr)[0]);
data/missfits-2.8.0/src/xml.c:813:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          strcpy(value, ((char **)key[i].ptr)[j]);
data/missfits-2.8.0/src/xml.h:43: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[80];                /* name of the file */
data/missfits-2.8.0/src/xml.h:44: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         infiletype[8];               /* input file type */
data/missfits-2.8.0/src/xml.h:45: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         outfiletype[8];              /* output file type */
data/missfits-2.8.0/src/xml.h: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	       display_key[MAXCHAR];  /* Keyword to display */
data/missfits-2.8.0/src/xml.h:57: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	       display_value[MAXCHAR];/* Value of displayed keyword */
data/missfits-2.8.0/src/file.c:151:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pstr = hname+strlen(hname);
data/missfits-2.8.0/src/file.c:195: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).
            pstr = hname+strlen(hname);
data/missfits-2.8.0/src/file.c:250:24:  [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).
          pstr = hname+strlen(hname);
data/missfits-2.8.0/src/fits/fitsconv.c:96:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(line, lptr, 80);
data/missfits-2.8.0/src/fits/fitshead.c:423:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(str, "(");
data/missfits-2.8.0/src/fits/fitshead.c:431:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(str2, ")");
data/missfits-2.8.0/src/fits/fitshead.c:492:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(tab->headbuf, "SIMPLE  =                    T "
data/missfits-2.8.0/src/fits/fitshead.c:523:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(tab->headbuf, "XTENSION= 'IMAGE   '           "
data/missfits-2.8.0/src/fits/fitsutil.c:148: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).
  len = strlen(keyword);
data/missfits-2.8.0/src/fits/fitsutil.c:175:32:  [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 (!strncmp(fitsbuf, str, strlen(str)))
data/missfits-2.8.0/src/fits/fitsutil.c:339:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str,fitsbuf+80*pos,80);
data/missfits-2.8.0/src/fits/fitsutil.c:362:18:  [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.
    case H_BOOL:	sscanf(str+10, "%1s", s);
data/missfits-2.8.0/src/fits/fitsutil.c:518: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(str2)<=18)
data/missfits-2.8.0/src/fits/fitsutil.c:579:32:  [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 (posoff==10 && i && (l=69-strlen(str))>0)
data/missfits-2.8.0/src/fits/fitsutil.c:581:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(str2, cstr, i);
data/missfits-2.8.0/src/fits/fitsutil.c:583:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(str, " ");
data/missfits-2.8.0/src/fits/fitsutil.c:584:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(str, str2, l);
data/missfits-2.8.0/src/fitswcs.c:130:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(wcs->ctype[l], ctype[l], 8);
data/missfits-2.8.0/src/fitswcs.c:132:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(wcs->ctype[l], "RA---AIT", 8);
data/missfits-2.8.0/src/fitswcs.c:134:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(wcs->ctype[l], "DEC--AIT", 8);
data/missfits-2.8.0/src/fitswcs.c:380:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(wcs->ctype[l], str, 8);
data/missfits-2.8.0/src/fitswcs.c:383:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(wcs->cunit[l], str, 32);
data/missfits-2.8.0/src/fitswcs.c:538: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).
          pstr += strlen(pstr);
data/missfits-2.8.0/src/fitswcs.c:545: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).
          pstr += strlen(pstr);
data/missfits-2.8.0/src/main.c:110: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(argv[a])<4 || opt == '-')
data/missfits-2.8.0/src/main.c:159: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).
            l = strlen(str)+1;
data/missfits-2.8.0/src/makeit.c:235:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tab->headbuf+n*80, prefs.new_key[k],8);
data/missfits-2.8.0/src/makeit.c:244:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(tab->headbuf+n*80, prefs.newslice_key[k],8);
data/missfits-2.8.0/src/makeit.c:258:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy(tab->headbuf+n*80, prefs.oldslice_key[k],strlen(prefs.oldslice_key[k]));
data/missfits-2.8.0/src/makeit.c:258:68:  [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).
                  strncpy(tab->headbuf+n*80, prefs.oldslice_key[k],strlen(prefs.oldslice_key[k]));
data/missfits-2.8.0/src/makeit.c:348:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tstr,prefs.display_key[i],8);
data/missfits-2.8.0/src/prefs.c:162:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(envname, valuet, nc=strcspn(valuet,"}/:\"\'\\"));
data/missfits-2.8.0/src/prefs.c:483:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(prefs.old_key[i], strtok(prefs.replace_key[i], ":"), 8);
data/missfits-2.8.0/src/prefs.c:485:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(prefs.new_key[i], tstr, strlen(tstr));
data/missfits-2.8.0/src/prefs.c:485:37:  [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).
    strncpy(prefs.new_key[i], tstr, strlen(tstr));
data/missfits-2.8.0/src/prefs.c:494:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tstr,prefs.slice_key[i],8);
data/missfits-2.8.0/src/prefs.c:505:35:  [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 (*(pstr=prefs.file_name[i]+strlen(prefs.file_name[i])-1) == '/')
data/missfits-2.8.0/src/wcs/wcs.c:466:4:  [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(wcs->pcode, "");
data/missfits-2.8.0/src/wcs/wcs.c:467:4:  [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(requir, "");
data/missfits-2.8.0/src/wcs/wcs.c:535:10:  [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(requir, "");

ANALYSIS SUMMARY:

Hits = 523
Lines analyzed = 21795 in approximately 0.66 seconds (33092 lines/second)
Physical Source Lines of Code (SLOC) = 13524
Hits@level = [0] 194 [1]  40 [2] 254 [3]   5 [4] 224 [5]   0
Hits@level+ = [0+] 717 [1+] 523 [2+] 483 [3+] 229 [4+] 224 [5+]   0
Hits/KSLOC@level+ = [0+] 53.0169 [1+] 38.672 [2+] 35.7143 [3+] 16.9329 [4+] 16.5631 [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.