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/scamp-2.9.2/src/astrcplot.c
Examining data/scamp-2.9.2/src/astrefcat.c
Examining data/scamp-2.9.2/src/astrefcat.h
Examining data/scamp-2.9.2/src/astrsolve.c
Examining data/scamp-2.9.2/src/astrsolve.h
Examining data/scamp-2.9.2/src/astrstats.c
Examining data/scamp-2.9.2/src/astrstats.h
Examining data/scamp-2.9.2/src/cathead.h
Examining data/scamp-2.9.2/src/catout.c
Examining data/scamp-2.9.2/src/catout.h
Examining data/scamp-2.9.2/src/chealpix.c
Examining data/scamp-2.9.2/src/chealpix.h
Examining data/scamp-2.9.2/src/chealpixstore.c
Examining data/scamp-2.9.2/src/chealpixstore.h
Examining data/scamp-2.9.2/src/check.c
Examining data/scamp-2.9.2/src/check.h
Examining data/scamp-2.9.2/src/colour.c
Examining data/scamp-2.9.2/src/colour.h
Examining data/scamp-2.9.2/src/cplot.c
Examining data/scamp-2.9.2/src/cplot.h
Examining data/scamp-2.9.2/src/crossid.c
Examining data/scamp-2.9.2/src/crossid.h
Examining data/scamp-2.9.2/src/define.h
Examining data/scamp-2.9.2/src/dgeomap.c
Examining data/scamp-2.9.2/src/dgeomap.h
Examining data/scamp-2.9.2/src/fft.c
Examining data/scamp-2.9.2/src/fft.h
Examining data/scamp-2.9.2/src/fgroup.c
Examining data/scamp-2.9.2/src/fgroup.h
Examining data/scamp-2.9.2/src/field.c
Examining data/scamp-2.9.2/src/field.h
Examining data/scamp-2.9.2/src/fits/fitsbody.c
Examining data/scamp-2.9.2/src/fits/fitscat.c
Examining data/scamp-2.9.2/src/fits/fitscat.h
Examining data/scamp-2.9.2/src/fits/fitscat_defs.h
Examining data/scamp-2.9.2/src/fits/fitscheck.c
Examining data/scamp-2.9.2/src/fits/fitscleanup.c
Examining data/scamp-2.9.2/src/fits/fitsconv.c
Examining data/scamp-2.9.2/src/fits/fitshead.c
Examining data/scamp-2.9.2/src/fits/fitskey.c
Examining data/scamp-2.9.2/src/fits/fitsmisc.c
Examining data/scamp-2.9.2/src/fits/fitsread.c
Examining data/scamp-2.9.2/src/fits/fitstab.c
Examining data/scamp-2.9.2/src/fits/fitsutil.c
Examining data/scamp-2.9.2/src/fits/fitswrite.c
Examining data/scamp-2.9.2/src/fitswcs.c
Examining data/scamp-2.9.2/src/fitswcs.h
Examining data/scamp-2.9.2/src/globals.h
Examining data/scamp-2.9.2/src/header.c
Examining data/scamp-2.9.2/src/header.h
Examining data/scamp-2.9.2/src/key.h
Examining data/scamp-2.9.2/src/main.c
Examining data/scamp-2.9.2/src/makeit.c
Examining data/scamp-2.9.2/src/match.c
Examining data/scamp-2.9.2/src/match.h
Examining data/scamp-2.9.2/src/merge.c
Examining data/scamp-2.9.2/src/merge.h
Examining data/scamp-2.9.2/src/misc.c
Examining data/scamp-2.9.2/src/misc.h
Examining data/scamp-2.9.2/src/mosaic.c
Examining data/scamp-2.9.2/src/mosaic.h
Examining data/scamp-2.9.2/src/photcplot.c
Examining data/scamp-2.9.2/src/photsolve.c
Examining data/scamp-2.9.2/src/photsolve.h
Examining data/scamp-2.9.2/src/pqueue.c
Examining data/scamp-2.9.2/src/pqueue.h
Examining data/scamp-2.9.2/src/preflist.h
Examining data/scamp-2.9.2/src/prefs.c
Examining data/scamp-2.9.2/src/prefs.h
Examining data/scamp-2.9.2/src/proper.c
Examining data/scamp-2.9.2/src/proper.h
Examining data/scamp-2.9.2/src/quadtree.c
Examining data/scamp-2.9.2/src/quadtree.h
Examining data/scamp-2.9.2/src/samples.c
Examining data/scamp-2.9.2/src/samples.h
Examining data/scamp-2.9.2/src/threads.c
Examining data/scamp-2.9.2/src/threads.h
Examining data/scamp-2.9.2/src/types.h
Examining data/scamp-2.9.2/src/url.c
Examining data/scamp-2.9.2/src/url.h
Examining data/scamp-2.9.2/src/wcs/cel.c
Examining data/scamp-2.9.2/src/wcs/cel.h
Examining data/scamp-2.9.2/src/wcs/lin.c
Examining data/scamp-2.9.2/src/wcs/lin.h
Examining data/scamp-2.9.2/src/wcs/poly.c
Examining data/scamp-2.9.2/src/wcs/poly.h
Examining data/scamp-2.9.2/src/wcs/proj.c
Examining data/scamp-2.9.2/src/wcs/proj.h
Examining data/scamp-2.9.2/src/wcs/sph.c
Examining data/scamp-2.9.2/src/wcs/sph.h
Examining data/scamp-2.9.2/src/wcs/tnx.c
Examining data/scamp-2.9.2/src/wcs/tnx.h
Examining data/scamp-2.9.2/src/wcs/wcs.c
Examining data/scamp-2.9.2/src/wcs/wcs.h
Examining data/scamp-2.9.2/src/wcs/wcsmath.h
Examining data/scamp-2.9.2/src/wcs/wcstrig.c
Examining data/scamp-2.9.2/src/wcs/wcstrig.h
Examining data/scamp-2.9.2/src/wcscelsys.h
Examining data/scamp-2.9.2/src/xml.c
Examining data/scamp-2.9.2/src/xml.h
Examining data/scamp-2.9.2/tests/test_chealpix.c
Examining data/scamp-2.9.2/tests/test_chealpixstore.c
Examining data/scamp-2.9.2/tests/test_crossid_single_catalog.c
Examining data/scamp-2.9.2/tests/test_crossid_single_catalog_moving.c

FINAL RESULTS:

data/scamp-2.9.2/src/astrcplot.c:1158:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%s", mscale < 0.09*ARCSEC/DEG?
data/scamp-2.9.2/src/astrcplot.c:5100:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%s", "pixel");
data/scamp-2.9.2/src/astrcplot.c:5365:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%s", "pixel");
data/scamp-2.9.2/src/astrefcat.c:279:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s: no such band in astrometric reference catalog %s, use ",
data/scamp-2.9.2/src/astrefcat.c:284:9:  [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, b==nband-1? " or " : ", ");
data/scamp-2.9.2/src/astrefcat.c:285: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(str, astrefcat->bandnames[b]);
data/scamp-2.9.2/src/astrefcat.c:326:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(maglimcmd, "%s=%f..%f&",
data/scamp-2.9.2/src/astrefcat.c:334:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(url,
data/scamp-2.9.2/src/astrefcat.c:347: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(url, colname); 
data/scamp-2.9.2/src/astrefcat.c:350:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Querying %s for %s astrometric reference stars...",
data/scamp-2.9.2/src/astrefcat.c:870:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str,"%-.36s (%s band) : %d / %d references stored",
data/scamp-2.9.2/src/astrefcat.c:1021: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/scamp-2.9.2/src/astrefcat.c:1133:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str,"Examining Catalog %s...", rfilename);
data/scamp-2.9.2/src/astrefcat.c:1141: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 (field->filename, filename);
data/scamp-2.9.2/src/astrefcat.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(field->hfilename, filename);
data/scamp-2.9.2/src/astrefcat.c:1148:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(pstr, "%s", prefs.ahead_suffix);
data/scamp-2.9.2/src/astrefcat.c:1157: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(field->path, field->filename);
data/scamp-2.9.2/src/astrefcat.c:1160: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(field->path, pspath? pspath: ".");
data/scamp-2.9.2/src/astrefcat.c:1164: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(field->path, pstr+1);
data/scamp-2.9.2/src/astrefcat.c:1176:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str,"Loading Catalog %s...", rfilename);
data/scamp-2.9.2/src/astrefcat.c:1187:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str, "%s [%d]", rfilename, n+1);
data/scamp-2.9.2/src/astrefcat.c:1189: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(str, rfilename);
data/scamp-2.9.2/src/astrefcat.c:1285:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/astrefcat.c:1298:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/astrefcat.c:1309:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/astrefcat.c:1320:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/astrefcat.c:1363:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/astrefcat.c:1374:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s parameter not found in catalog ", prefs.astrefmagerr_key);
data/scamp-2.9.2/src/astrefcat.c:1387:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s parameter not found in catalog ", prefs.astrefobsdate_key);
data/scamp-2.9.2/src/catout.c:158:7:  [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(ascfile, skycathead, 8.0);
data/scamp-2.9.2/src/catout.c:163:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "\t%s", key->printf);
data/scamp-2.9.2/src/catout.c:163:35:  [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.
        sprintf(str, "\t%s", key->printf);
data/scamp-2.9.2/src/catout.c:164: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(key->printf, str);
data/scamp-2.9.2/src/catout.c:164:21:  [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.
        strcpy(key->printf, str);
data/scamp-2.9.2/src/catout.c:191: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(cat->filename, filename);
data/scamp-2.9.2/src/catout.c:321:7:  [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(ascfile, skycattail);
data/scamp-2.9.2/src/catout.c:439:7:  [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(ascfile, skycathead, 8.0);
data/scamp-2.9.2/src/catout.c:444:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "\t%s", key->printf);
data/scamp-2.9.2/src/catout.c:444:35:  [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.
        sprintf(str, "\t%s", key->printf);
data/scamp-2.9.2/src/catout.c:445: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(key->printf, str);
data/scamp-2.9.2/src/catout.c:445:21:  [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.
        strcpy(key->printf, str);
data/scamp-2.9.2/src/catout.c:472: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(cat->filename, filename);
data/scamp-2.9.2/src/catout.c:563:7:  [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(ascfile, skycattail);
data/scamp-2.9.2/src/catout.c:619:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "%s%d", d?"x":" arraysize=\"", key->naxisn[d]);
data/scamp-2.9.2/src/catout.c:620:9:  [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(arraysize, str);
data/scamp-2.9.2/src/chealpix.c:1169: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(order, nest ? "NESTED  " : "RING    ");
data/scamp-2.9.2/src/check.c:69:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str,"Writing check-image %s", rfilename);
data/scamp-2.9.2/src/cplot.c:127:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "convert -geometry \"%dx%d\" -antialias %s %s",
data/scamp-2.9.2/src/cplot.c:131:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system(str);
data/scamp-2.9.2/src/cplot.c:139: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(plotfilename, prefs.cplot_name[cval]);
data/scamp-2.9.2/src/cplot.c:149:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pstr, "_%d%s", num, cplot_device[j].extension);
data/scamp-2.9.2/src/define.h:117:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%ld bytes) " \
data/scamp-2.9.2/src/define.h:127:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%ld bytes) " \
data/scamp-2.9.2/src/define.h:137:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%ld bytes) " \
data/scamp-2.9.2/src/define.h:148:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		     sprintf(gstr, #ptrout " (" #nel "=%ld bytes) " \
data/scamp-2.9.2/src/define.h:158:15:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		{if (!(file=popen(cmdline, flag))) \
data/scamp-2.9.2/src/define.h:163: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/scamp-2.9.2/src/define.h:168: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/scamp-2.9.2/src/define.h:170:51:  [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 (prefs.verbose_type != QUIET)	fprintf
data/scamp-2.9.2/src/dgeomap.c:108:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cat->filename, "%s", filename);
data/scamp-2.9.2/src/fft.h:43:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lu elements) " \
data/scamp-2.9.2/src/fft.h:54:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lu elements) " \
data/scamp-2.9.2/src/fgroup.c:83:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "Grouping fields: field %d/%d, %d group%s",
data/scamp-2.9.2/src/fgroup.c:416: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(ctype[i], field->set[0]->wcs->ctype[i]);
data/scamp-2.9.2/src/field.c:95:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Examining Catalog %s", rfilename);
data/scamp-2.9.2/src/field.c:106: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 (field->filename, filename);
data/scamp-2.9.2/src/field.c:111: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(field->hfilename, hfilename);
data/scamp-2.9.2/src/field.c:114: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(field->hfilename, filename);
data/scamp-2.9.2/src/field.c:117:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(pstr, "%s", prefs.ahead_suffix);
data/scamp-2.9.2/src/field.c:127: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(field->path, field->filename);
data/scamp-2.9.2/src/field.c:130: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(field->path, pspath? pspath: ".");
data/scamp-2.9.2/src/field.c:134:13:  [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(field->path, pstr+1);
data/scamp-2.9.2/src/field.c:316:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    sprintf(pstr+1, field->projection_type==PROJECTION_TPV? "TPV":"TAN");
data/scamp-2.9.2/src/field.c:342:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str,"Loading Catalog %s", rfilename);
data/scamp-2.9.2/src/field.c:351:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(str, "%s [%d/%d]", rfilename, n+1, field->nset);
data/scamp-2.9.2/src/field.c:353:17:  [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, rfilename);
data/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitsbody.c:1201: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitscat_defs.h:129:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%ld elements) " \
data/scamp-2.9.2/src/fits/fitscat_defs.h:139:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%ld elements) " \
data/scamp-2.9.2/src/fits/fitscat_defs.h:149:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%ld elements) " \
data/scamp-2.9.2/src/fits/fitscat_defs.h:160:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		     sprintf(gstr, #ptrout " (" #nel "=%ld elements) " \
data/scamp-2.9.2/src/fits/fitscat_defs.h:172: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitshead.c:140:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(key, comptileflag ? "ZNAXIS%-2d" : "NAXIS%-3d", i+1);
data/scamp-2.9.2/src/fits/fitshead.c:263: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/scamp-2.9.2/src/fits/fitshead.c:264: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/scamp-2.9.2/src/fits/fitshead.c:265: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/scamp-2.9.2/src/fits/fitshead.c:265: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/scamp-2.9.2/src/fits/fitshead.c:432: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/scamp-2.9.2/src/fits/fitshead.c:444: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/scamp-2.9.2/src/fits/fitshead.c:448: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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitskey.c:533: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/scamp-2.9.2/src/fits/fitskey.c:691: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/scamp-2.9.2/src/fits/fitskey.c:705: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/scamp-2.9.2/src/fits/fitskey.c:744: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/scamp-2.9.2/src/fits/fitskey.c:833: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/scamp-2.9.2/src/fits/fitskey.c:833: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/scamp-2.9.2/src/fits/fitskey.c:833: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/scamp-2.9.2/src/fits/fitskey.c:853: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/scamp-2.9.2/src/fits/fitskey.c:853: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/scamp-2.9.2/src/fits/fitskey.c:853: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/scamp-2.9.2/src/fits/fitskey.c:874: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/scamp-2.9.2/src/fits/fitskey.c:874: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/scamp-2.9.2/src/fits/fitskey.c:874: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/scamp-2.9.2/src/fits/fitskey.c:877: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/scamp-2.9.2/src/fits/fitskey.c:877: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/scamp-2.9.2/src/fits/fitskey.c:877: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/scamp-2.9.2/src/fits/fitskey.c:897: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/scamp-2.9.2/src/fits/fitskey.c:897: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/scamp-2.9.2/src/fits/fitskey.c:897: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/scamp-2.9.2/src/fits/fitskey.c:917: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/scamp-2.9.2/src/fits/fitskey.c:917: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/scamp-2.9.2/src/fits/fitskey.c:917: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/scamp-2.9.2/src/fits/fitskey.c:948: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/scamp-2.9.2/src/fits/fitskey.c:948: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/scamp-2.9.2/src/fits/fitskey.c:948: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/scamp-2.9.2/src/fits/fitskey.c:994: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitsutil.c:413: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/scamp-2.9.2/src/fits/fitsutil.c:416: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/scamp-2.9.2/src/fits/fitsutil.c:558:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		        sprintf(str, "'%s'", str2);
data/scamp-2.9.2/src/fits/fitsutil.c:564: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/scamp-2.9.2/src/fits/fitsutil.c:569: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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitswrite.c:422: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/scamp-2.9.2/src/fits/fitswrite.c:422: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/scamp-2.9.2/src/fits/fitswrite.c:422: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/scamp-2.9.2/src/fits/fitswrite.c:427: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/scamp-2.9.2/src/fits/fitswrite.c:427: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/scamp-2.9.2/src/fits/fitswrite.c:427: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/scamp-2.9.2/src/fits/fitswrite.c:432: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/scamp-2.9.2/src/fits/fitswrite.c:432: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/scamp-2.9.2/src/fits/fitswrite.c:432: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/scamp-2.9.2/src/fits/fitswrite.c:437: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/scamp-2.9.2/src/fits/fitswrite.c:437: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/scamp-2.9.2/src/fits/fitswrite.c:437: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/scamp-2.9.2/src/fits/fitswrite.c:442: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/scamp-2.9.2/src/fits/fitswrite.c:442: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/scamp-2.9.2/src/fits/fitswrite.c:442: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/scamp-2.9.2/src/fits/fitswrite.c:455: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/scamp-2.9.2/src/fits/fitswrite.c:455: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/scamp-2.9.2/src/fits/fitswrite.c:455: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/scamp-2.9.2/src/fits/fitswrite.c:508: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/scamp-2.9.2/src/fits/fitswrite.c:508: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/scamp-2.9.2/src/fits/fitswrite.c:508: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/scamp-2.9.2/src/fits/fitswrite.c:513: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/scamp-2.9.2/src/fits/fitswrite.c:513: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/scamp-2.9.2/src/fits/fitswrite.c:513: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/scamp-2.9.2/src/fits/fitswrite.c:518: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/scamp-2.9.2/src/fits/fitswrite.c:518: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/scamp-2.9.2/src/fits/fitswrite.c:518: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/scamp-2.9.2/src/fits/fitswrite.c:523: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/scamp-2.9.2/src/fits/fitswrite.c:523: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/scamp-2.9.2/src/fits/fitswrite.c:523: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/scamp-2.9.2/src/fits/fitswrite.c:528: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/scamp-2.9.2/src/fits/fitswrite.c:528: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/scamp-2.9.2/src/fits/fitswrite.c:528: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/scamp-2.9.2/src/fits/fitswrite.c:541: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/scamp-2.9.2/src/fits/fitswrite.c:541: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/scamp-2.9.2/src/fits/fitswrite.c:541: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/scamp-2.9.2/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/scamp-2.9.2/src/fitswcs.c:1247: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/scamp-2.9.2/src/fitswcs.c:1248: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/scamp-2.9.2/src/fitswcs.c:1249: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/scamp-2.9.2/src/fitswcs.c:1250: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/scamp-2.9.2/src/header.c:211:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "HISTORY   Astrometric solution by %s version %s (%s)",
data/scamp-2.9.2/src/header.c:214:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "COMMENT   (c) %s", COPYRIGHT);
data/scamp-2.9.2/src/main.c:115: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/scamp-2.9.2/src/makeit.c:203:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(str, "%s/%s_%02d%02d%c%02d%02d_r%-.0f.cat",
data/scamp-2.9.2/src/makeit.c:520: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(filename, prefs.head_name[f]);
data/scamp-2.9.2/src/makeit.c:523: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(filename, fields[f]->filename);
data/scamp-2.9.2/src/makeit.c:526:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(pstr, "%s", prefs.head_suffix);
data/scamp-2.9.2/src/makeit.c:619: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(filename, prefs.mergedcat_name);
data/scamp-2.9.2/src/makeit.c:626:17:  [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(extension, pstr);
data/scamp-2.9.2/src/makeit.c:627:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(pstr, "_%d%s", g+1, extension);
data/scamp-2.9.2/src/makeit.c:636: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(filename, prefs.dgeomap_name);
data/scamp-2.9.2/src/makeit.c:641:17:  [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(extension, pstr);
data/scamp-2.9.2/src/makeit.c:642:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(pstr, "_%0d%s", i+1, extension);
data/scamp-2.9.2/src/makeit.c:655: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(filename, prefs.fullcat_name);
data/scamp-2.9.2/src/makeit.c:662:17:  [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(extension, pstr);
data/scamp-2.9.2/src/makeit.c:663:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(pstr, "_%d%s", g+1, extension);
data/scamp-2.9.2/src/makeit.c:711:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(error, "%s%s", msg1,msg2);
data/scamp-2.9.2/src/match.c:122:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "Matching field %s...", field->rfilename);
data/scamp-2.9.2/src/prefs.c:115: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/scamp-2.9.2/src/prefs.c:133: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/scamp-2.9.2/src/prefs.c:135: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/scamp-2.9.2/src/prefs.c:148: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/scamp-2.9.2/src/prefs.c:233: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/scamp-2.9.2/src/prefs.c:350: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/scamp-2.9.2/src/prefs.c:466: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(listbuf+bufpos, str);
data/scamp-2.9.2/src/prefs.c:588: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(prefs.photflux_rkey, prefs.photflux_key);
data/scamp-2.9.2/src/prefs.c:591: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(prefs.photfluxerr_rkey, prefs.photfluxerr_key);
data/scamp-2.9.2/src/prefs.c:688:19:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((testfile=popen("convert", "r")))
data/scamp-2.9.2/src/samples.c:143:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/samples.c:160:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/samples.c:175:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/samples.c:186:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/samples.c:197:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/samples.c:217:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Not enough apertures for %s in catalog %s: ",
data/scamp-2.9.2/src/samples.c:225:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "*Error*: %s parameter not found in catalog ",
data/scamp-2.9.2/src/samples.c:245:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Not enough apertures for %s in catalog %s: ",
data/scamp-2.9.2/src/samples.c:344:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(str, "*Error*: %s parameter not found in the header of ",
data/scamp-2.9.2/src/samples.c:349: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(set->contextname[i], *kstr);
data/scamp-2.9.2/src/samples.c:355:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(str, "*Error*: %s parameter not found in catalog ", *kstr);
data/scamp-2.9.2/src/samples.c:360: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(set->contextname[i], key->name);
data/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/xml.c:320: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(plotfilename, prefs.cplot_name[pngindex]);
data/scamp-2.9.2/src/xml.c:793: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(plotfilename, prefs.cplot_name[cp[t]]);
data/scamp-2.9.2/src/xml.c:888: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(plotfilename, prefs.cplot_name[cp[t]]);
data/scamp-2.9.2/src/xml.c:1226:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(uunit, " unit=\"%s\"", unit);
data/scamp-2.9.2/src/xml.c:1232:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(value, format, *((double *)key[i].ptr));
data/scamp-2.9.2/src/xml.c:1241:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value, format, ((double *)key[i].ptr)[0]);
data/scamp-2.9.2/src/xml.c:1247:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(value, format, ((double *)key[i].ptr)[j]);
data/scamp-2.9.2/src/xml.c:1258:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(value, format, *((int *)key[i].ptr));
data/scamp-2.9.2/src/xml.c:1267:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value, format, ((int *)key[i].ptr)[0]);
data/scamp-2.9.2/src/xml.c:1273:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(value, format, ((int *)key[i].ptr)[j]);
data/scamp-2.9.2/src/xml.c:1310: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, (char *)key[i].ptr);
data/scamp-2.9.2/src/xml.c:1319: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, ((char **)key[i].ptr)[0]);
data/scamp-2.9.2/src/xml.c:1325: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/scamp-2.9.2/src/xml.c:1336: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/scamp-2.9.2/src/xml.c:1345: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/scamp-2.9.2/src/xml.c:1351: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/scamp-2.9.2/src/astrefcat.c:1152: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/scamp-2.9.2/src/field.c:122: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.
    pspath = getenv("PWD");
data/scamp-2.9.2/src/prefs.c:183: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/scamp-2.9.2/src/xml.c:224: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/scamp-2.9.2/src/xml.c:225: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/scamp-2.9.2/src/xml.c:226: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/scamp-2.9.2/src/xml.c:227: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/scamp-2.9.2/src/astrcplot.c:78: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/scamp-2.9.2/src/astrcplot.c:119: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#uh", ((int)(wcspos[0]/15.0+0.1+24.0))%24);
data/scamp-2.9.2/src/astrcplot.c:142: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#uo", (int)(wcspos[1]+(wcspos[1]>=0.0?0.1:-0.1)));
data/scamp-2.9.2/src/astrcplot.c:354: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		str[32];
data/scamp-2.9.2/src/astrcplot.c:566: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		str[32];
data/scamp-2.9.2/src/astrcplot.c:783: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[80];
data/scamp-2.9.2/src/astrcplot.c:839: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, "#uGroup ##%d: detections", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:1011: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			*ctype[NAXIS],
data/scamp-2.9.2/src/astrcplot.c:1050: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, "#uInstrument A%d: distortion map", field->astromlabel+1);
data/scamp-2.9.2/src/astrcplot.c:1210: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		*ctype[NAXIS],
data/scamp-2.9.2/src/astrcplot.c:1301:5:  [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(dispunit, "10 #(2218)");
data/scamp-2.9.2/src/astrcplot.c:1303:5:  [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(dispunit, "1 #(2218)");
data/scamp-2.9.2/src/astrcplot.c:1305:5:  [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(dispunit, "10 #(2216)");
data/scamp-2.9.2/src/astrcplot.c:1307:5:  [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(dispunit, "1 #(2216)");
data/scamp-2.9.2/src/astrcplot.c:1309:5:  [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(dispunit, "10 #(2216)#(2216)");
data/scamp-2.9.2/src/astrcplot.c:1311:5:  [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(dispunit, "1 #(2216)#(2216)");
data/scamp-2.9.2/src/astrcplot.c:1313:5:  [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(dispunit, "100 mas");
data/scamp-2.9.2/src/astrcplot.c:1315:5:  [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(dispunit, "10 mas");
data/scamp-2.9.2/src/astrcplot.c:1317:5:  [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(dispunit, "1 mas");
data/scamp-2.9.2/src/astrcplot.c:1319:5:  [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(dispunit, "100 #gmas");
data/scamp-2.9.2/src/astrcplot.c:1321:5:  [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(dispunit, "10 #gmas");
data/scamp-2.9.2/src/astrcplot.c:1325:5:  [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(dispunit, "1 #gmas");
data/scamp-2.9.2/src/astrcplot.c:1337: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, "#uInstrument A%d: map of astrometric systematics (internal)", 
data/scamp-2.9.2/src/astrcplot.c:1532: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		*ctype[NAXIS],
data/scamp-2.9.2/src/astrcplot.c:1623:5:  [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(dispunit, "10 #(2218)");
data/scamp-2.9.2/src/astrcplot.c:1625:5:  [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(dispunit, "1 #(2218)");
data/scamp-2.9.2/src/astrcplot.c:1627:5:  [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(dispunit, "10 #(2216)");
data/scamp-2.9.2/src/astrcplot.c:1629:5:  [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(dispunit, "1 #(2216)");
data/scamp-2.9.2/src/astrcplot.c:1631:5:  [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(dispunit, "10 #(2216)#(2216)");
data/scamp-2.9.2/src/astrcplot.c:1633:5:  [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(dispunit, "1 #(2216)#(2216)");
data/scamp-2.9.2/src/astrcplot.c:1635:5:  [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(dispunit, "100 mas");
data/scamp-2.9.2/src/astrcplot.c:1637:5:  [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(dispunit, "10 mas");
data/scamp-2.9.2/src/astrcplot.c:1639:5:  [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(dispunit, "1 mas");
data/scamp-2.9.2/src/astrcplot.c:1641:5:  [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(dispunit, "100 #gmas");
data/scamp-2.9.2/src/astrcplot.c:1643:5:  [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(dispunit, "10 #gmas");
data/scamp-2.9.2/src/astrcplot.c:1647:5:  [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(dispunit, "1 #gmas");
data/scamp-2.9.2/src/astrcplot.c:1659: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, "#uInstrument A%d: map of astrometric systematics (reference)",
data/scamp-2.9.2/src/astrcplot.c:1836: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/astrcplot.c:1878: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(xlabel, "Field ##");
data/scamp-2.9.2/src/astrcplot.c:1879: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(ylabel, "#gx#u2#d / d.o.f.");
data/scamp-2.9.2/src/astrcplot.c:1880: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, "Group ##%d: chi2 / d.o.f. (astrometry, internal)", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:1899: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(xlabel, "Field ##");
data/scamp-2.9.2/src/astrcplot.c:1900: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(ylabel, "#gx#u2#d / d.o.f.");
data/scamp-2.9.2/src/astrcplot.c:1901: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, "Group ##%d: chi2 / d.o.f. (astrometry, reference)", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:1944: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/astrcplot.c:2016: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(xlabel, "Airmass");
data/scamp-2.9.2/src/astrcplot.c:2017: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(ylabel, "Contraction (%%)");
data/scamp-2.9.2/src/astrcplot.c:2018: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, "Instrument A%d: image flattening as a fonction of airmass",
data/scamp-2.9.2/src/astrcplot.c:2032: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, "altitude %d km", j);
data/scamp-2.9.2/src/astrcplot.c:2093: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/astrcplot.c:2284: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(xlabel, "AXIS%d [pixels]", d2+1);
data/scamp-2.9.2/src/astrcplot.c:2285: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(ylabel, "#gDAXIS%d [\"]", d+1);
data/scamp-2.9.2/src/astrcplot.c:2306: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, "Group ##%d: 1D internal astrometric errors", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:2349: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[80];
data/scamp-2.9.2/src/astrcplot.c:2556: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, "Group ##%d: 2D internal astrometric errors", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:2620: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/astrcplot.c:2809: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(xlabel, "AXIS%d [pixels]", d2+1);
data/scamp-2.9.2/src/astrcplot.c:2810: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(ylabel, "#gDAXIS%d [\"]", d+1);
data/scamp-2.9.2/src/astrcplot.c:2829: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, "Group ##%d: 1D reference astrometric errors", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:2874: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[80];
data/scamp-2.9.2/src/astrcplot.c:3074: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, "Group ##%d: 2D reference astrometric errors", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:3143: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/astrcplot.c:3407: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(xlabel, "AXIS%d [pixels]", d2+1);
data/scamp-2.9.2/src/astrcplot.c:3408: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(ylabel, "#gDAXIS%d [pixels]", d+1);
data/scamp-2.9.2/src/astrcplot.c:3442: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, "Instrument A%d: mean 1D astrometric residuals vs "
data/scamp-2.9.2/src/astrcplot.c:3510: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/astrcplot.c:3758: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(xlabel, "AXIS%d [sub-pixel]", d2+1);
data/scamp-2.9.2/src/astrcplot.c:3759: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(ylabel, "#gDAXIS%d [pixels]", d+1);
data/scamp-2.9.2/src/astrcplot.c:3794: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, "Instrument A%d: mean 1D astrometric residuals vs "
data/scamp-2.9.2/src/astrcplot.c:3856: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		xlabel[80], ylabel[80];
data/scamp-2.9.2/src/astrcplot.c:4109: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(xlabel, "P%d - P%d [mag]", instru2+1, instru1+1);
data/scamp-2.9.2/src/astrcplot.c:4110: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(ylabel, "#gDAXIS%d [\"]", d+1);
data/scamp-2.9.2/src/astrcplot.c:4199: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[80];
data/scamp-2.9.2/src/astrcplot.c:4375: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,"Group ##%d: "
data/scamp-2.9.2/src/astrcplot.c:4416: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[80];
data/scamp-2.9.2/src/astrcplot.c:4603: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, "Group ##%d : Observation dates", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:4634: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[80];
data/scamp-2.9.2/src/astrcplot.c:4823: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, "Group ##%d: 2D proper motions", fgroup->no);
data/scamp-2.9.2/src/astrcplot.c:4880: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			*ctype[NAXIS],
data/scamp-2.9.2/src/astrcplot.c:4964: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, "#uInstrument A%d: pixel coordinate residuals (x)",
data/scamp-2.9.2/src/astrcplot.c:5144: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			*ctype[NAXIS],
data/scamp-2.9.2/src/astrcplot.c:5229: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, "#uInstrument A%d: pixel coordinate residuals (y)",
data/scamp-2.9.2/src/astrefcat.c:208: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.
static void	vizier_to_array(char *str, char (*cols)[COLUMN_SIZE]);
data/scamp-2.9.2/src/astrefcat.c:208:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void	vizier_to_array(char *str, char (*cols)[COLUMN_SIZE]);
data/scamp-2.9.2/src/astrefcat.c:210: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	astref_ctype[NAXIS][8]= {"RA---STG", "DEC--STG"};
data/scamp-2.9.2/src/astrefcat.c:240: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		cols[MAX_COLUMN][COLUMN_SIZE],
data/scamp-2.9.2/src/astrefcat.c:463:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          if (atoi(cols[cindex++])==5)
data/scamp-2.9.2/src/astrefcat.c:533:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          if (atoi(cols[cindex++])<2)
data/scamp-2.9.2/src/astrefcat.c:564:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          nobs = atoi(cols[cindex++]);
data/scamp-2.9.2/src/astrefcat.c:580:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          mode = atoi(cols[cindex++]);
data/scamp-2.9.2/src/astrefcat.c:581:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          qual = atoi(cols[cindex++]);
data/scamp-2.9.2/src/astrefcat.c:597:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          mode = atoi(cols[cindex++]);
data/scamp-2.9.2/src/astrefcat.c:598:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          qual = atoi(cols[cindex++]);
data/scamp-2.9.2/src/astrefcat.c:844:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          if (atoi(cols[cindex++]) & 4 == 0)	// Test PS1 reliability
data/scamp-2.9.2/src/astrefcat.c:974:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ctype[d] = (char *)astref_ctype[d];
data/scamp-2.9.2/src/astrefcat.c:1035: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(asctab->headbuf, imtabtemplate, sizeof(imtabtemplate));
data/scamp-2.9.2/src/astrefcat.c:1068:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      objkeys[k].ptr = (void *)((char *)objkeys[k].ptr + dptr); /* a trick */
data/scamp-2.9.2/src/astrefcat.c:1122: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/scamp-2.9.2/src/astrefcat.c:1254: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/scamp-2.9.2/src/astrefcat.c:1403: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, "*Error*: band #%d not found in catalog ", band+1);
data/scamp-2.9.2/src/astrefcat.c:1421: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,"%-.36s: %d / %d references stored",
data/scamp-2.9.2/src/astrefcat.c:1537: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.
static void	vizier_to_array(char *str, char (*cols)[COLUMN_SIZE])
data/scamp-2.9.2/src/astrefcat.c:1537:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void	vizier_to_array(char *str, char (*cols)[COLUMN_SIZE])
data/scamp-2.9.2/src/astrefcat.h:67: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[16];		/* Catalog name */
data/scamp-2.9.2/src/astrefcat.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		viziername[32];		/* Vizier catalog name */
data/scamp-2.9.2/src/astrefcat.h:69: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		viziercolumns[MAX_COLUMN][COLUMN_SIZE];
data/scamp-2.9.2/src/astrefcat.h:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		vizierbandnames[MAX_BAND][32];
data/scamp-2.9.2/src/astrefcat.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		bandnames[MAX_BAND][32];/* Real names of available bands */
data/scamp-2.9.2/src/astrsolve.c:125: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		str[64],
data/scamp-2.9.2/src/astrsolve.c:348: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, "alpha ((ncoefftot+1)*ncoefftot)/2 =%ld bytes) "
data/scamp-2.9.2/src/astrsolve.c:383: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, "Filling the global astrometry matrix: "
data/scamp-2.9.2/src/astrsolve.c:419:29:  [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,"set #%d of instrument A%d ",s+1,field->astromlabel+1);
data/scamp-2.9.2/src/astrsolve.c:421:29:  [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, "instrument A%d ", field->astromlabel+1);
data/scamp-2.9.2/src/astrsolve.c:1031: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		str[128];
data/scamp-2.9.2/src/astrsolve.c:1066:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "Filling the global astrometry matrix: "
data/scamp-2.9.2/src/catout.c:94: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[80],
data/scamp-2.9.2/src/catout.c:139:23:  [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 (!(ascfile = fopen(filename, "w+")))
data/scamp-2.9.2/src/catout.c:202: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(asctab->headbuf, imtabtemplate, sizeof(imtabtemplate));
data/scamp-2.9.2/src/catout.c:382: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[80],
data/scamp-2.9.2/src/catout.c:420:23:  [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 (!(ascfile = fopen(filename, "w+")))
data/scamp-2.9.2/src/catout.c:483: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(asctab->headbuf, imtabtemplate, sizeof(imtabtemplate));
data/scamp-2.9.2/src/catout.c:604: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		datatype[40], arraysize[40], str[40];
data/scamp-2.9.2/src/catout.c:626:20:  [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.
      case T_BYTE:	strcpy(datatype, "unsignedByte"); break;
data/scamp-2.9.2/src/catout.c:627:21:  [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.
      case T_SHORT:	strcpy(datatype, "short"); break;
data/scamp-2.9.2/src/catout.c:628:20:  [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.
      case T_LONG:	strcpy(datatype, "int"); break;
data/scamp-2.9.2/src/catout.c:629:21:  [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.
      case T_FLOAT:	strcpy(datatype, "float"); break;
data/scamp-2.9.2/src/catout.c:630:22:  [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.
      case T_DOUBLE:	strcpy(datatype, "double"); break;
data/scamp-2.9.2/src/chealpix.c:1055:5:  [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(coordsys9,"C       ");
data/scamp-2.9.2/src/chealpix.c:1057:5:  [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 (coordsys9,"G       ");
data/scamp-2.9.2/src/chealpix.c:1059:5:  [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 (coordsys9,"E       ");
data/scamp-2.9.2/src/chealpix.c:1153: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 order[9]; /* HEALPix ordering */
data/scamp-2.9.2/src/chealpix.c:1157: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 coordsys9[9];
data/scamp-2.9.2/src/check.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[MAXCHAR],
data/scamp-2.9.2/src/cplot.c:70:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char		plotfilename[MAXCHAR];
data/scamp-2.9.2/src/cplot.c:112: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/scamp-2.9.2/src/cplot.c:182: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, "%dx%d",
data/scamp-2.9.2/src/cplot.c:191: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, "%dx%d", prefs.cplot_res[0], prefs.cplot_res[1]);
data/scamp-2.9.2/src/cplot.c:289: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,"%02d#uh#d%02d#um#d%05.2f#us#d", hh, mm, ss);
data/scamp-2.9.2/src/cplot.c:291: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,"%02d#uh#d%02d#um#d%02.0f#us#d", hh, mm, ss);
data/scamp-2.9.2/src/cplot.c:293: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,"%02d#uh#d%02d#um#d", hh, mm);
data/scamp-2.9.2/src/cplot.c:295: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,"%02d#uh#d", hh);
data/scamp-2.9.2/src/cplot.c:330: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,"%c%02d#(2218)%02d#(2216)%05.2f#(2216)#(2216)", sign,dd,dm,ds);
data/scamp-2.9.2/src/cplot.c:332: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,"%c%02d#(2218)%02d#(2216)%2.0f#(2216)#(2216)", sign,dd,dm,ds);
data/scamp-2.9.2/src/cplot.c:334: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,"%c%02d#(2218)%02d#(2216)", sign,dd,dm);
data/scamp-2.9.2/src/cplot.c:336: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,"%c%02d#(2218)", sign,dd);
data/scamp-2.9.2/src/define.h:153: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/scamp-2.9.2/src/dgeomap.c:79: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[64];
data/scamp-2.9.2/src/dgeomap.c:119: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,
data/scamp-2.9.2/src/fgroup.c:71: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  str[80];
data/scamp-2.9.2/src/fgroup.c:298: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  *ctype[NAXIS];
data/scamp-2.9.2/src/fgroup.c:409: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(ctype[i], "%5.5sSTG", field->set[0]->wcs->ctype[i]);
data/scamp-2.9.2/src/fgroup.c:591: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  str1[32], str2[32];
data/scamp-2.9.2/src/field.c:85: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  str[MAXCHAR], label[72], keystr[16],
data/scamp-2.9.2/src/field.c:199: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(imatab->headbuf, key->ptr, key->nbytes);
data/scamp-2.9.2/src/field.c:207:17:  [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(field->ident, "no ident");
data/scamp-2.9.2/src/field.c:269: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, "%d", prefs.nastrinstrustr);
data/scamp-2.9.2/src/field.c:295: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, "%d", prefs.nphotinstrustr);
data/scamp-2.9.2/src/field.c:311:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(keystr, "CTYPE%1d  ", d+1);
data/scamp-2.9.2/src/field.c:329:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "precessing EQUINOX %7.2f to %7.2f", wcs->equinox, 2000.0);
data/scamp-2.9.2/src/field.h:58: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  path[MAXCHAR];  /* catalog path */
data/scamp-2.9.2/src/field.h:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  filename[MAXCHAR]; /* catalog filename */
data/scamp-2.9.2/src/field.h:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  hfilename[MAXCHAR]; /* header filename */
data/scamp-2.9.2/src/field.h:63: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  ident[MAXCHAR];  /* field identifier (read from FITS) */
data/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitsbody.c:557: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/scamp-2.9.2/src/fits/fitsbody.c:564: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/scamp-2.9.2/src/fits/fitsbody.c:604: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/scamp-2.9.2/src/fits/fitsbody.c:740: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/scamp-2.9.2/src/fits/fitsbody.c:747: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/scamp-2.9.2/src/fits/fitsbody.c:787: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitscat_defs.h:91: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/scamp-2.9.2/src/fits/fitscat_defs.h:165: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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitscheck.c:229: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/scamp-2.9.2/src/fits/fitscheck.c:271: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/scamp-2.9.2/src/fits/fitscheck.c:291: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitshead.c:193:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tab->bodysum = (unsigned int)atoi(str);
data/scamp-2.9.2/src/fits/fitshead.c:214: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/scamp-2.9.2/src/fits/fitshead.c:252: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/scamp-2.9.2/src/fits/fitshead.c:260: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/scamp-2.9.2/src/fits/fitshead.c:262: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/scamp-2.9.2/src/fits/fitshead.c:267: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/scamp-2.9.2/src/fits/fitshead.c:297: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/scamp-2.9.2/src/fits/fitshead.c:344: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/scamp-2.9.2/src/fits/fitshead.c:366: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/scamp-2.9.2/src/fits/fitshead.c:414: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/scamp-2.9.2/src/fits/fitshead.c:417: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/scamp-2.9.2/src/fits/fitshead.c:425: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/scamp-2.9.2/src/fits/fitshead.c:440: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/scamp-2.9.2/src/fits/fitshead.c:446: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/scamp-2.9.2/src/fits/fitshead.c:461: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/scamp-2.9.2/src/fits/fitshead.c:666: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/scamp-2.9.2/src/fits/fitshead.c:751: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/scamp-2.9.2/src/fits/fitshead.c:765: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/scamp-2.9.2/src/fits/fitshead.c:768: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/scamp-2.9.2/src/fits/fitshead.c:772: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/scamp-2.9.2/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, "%%%dd",w);
data/scamp-2.9.2/src/fits/fitshead.c:778: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/scamp-2.9.2/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, "%%%dx",w);
data/scamp-2.9.2/src/fits/fitshead.c:784: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/scamp-2.9.2/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, "%%%do",w);
data/scamp-2.9.2/src/fits/fitshead.c:790: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/scamp-2.9.2/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, "%%%df",w);
data/scamp-2.9.2/src/fits/fitshead.c:796: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/scamp-2.9.2/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, "%%%dE",w);
data/scamp-2.9.2/src/fits/fitshead.c:802: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/scamp-2.9.2/src/fits/fitshead.c:804: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/scamp-2.9.2/src/fits/fitshead.c:851: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/scamp-2.9.2/src/fits/fitshead.c:854: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/scamp-2.9.2/src/fits/fitshead.c:858: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/scamp-2.9.2/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, "I%d",w);
data/scamp-2.9.2/src/fits/fitshead.c:864: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/scamp-2.9.2/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, "O%d",w);
data/scamp-2.9.2/src/fits/fitshead.c:870: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/scamp-2.9.2/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, "Z%d",w);
data/scamp-2.9.2/src/fits/fitshead.c:876: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/scamp-2.9.2/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, "F%d",w);
data/scamp-2.9.2/src/fits/fitshead.c:882: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/scamp-2.9.2/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, "E%d",w);
data/scamp-2.9.2/src/fits/fitshead.c:888: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/scamp-2.9.2/src/fits/fitshead.c:890: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/scamp-2.9.2/src/fits/fitskey.c:613: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/scamp-2.9.2/src/fits/fitskey.c:614: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/scamp-2.9.2/src/fits/fitskey.c:672: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/scamp-2.9.2/src/fits/fitskey.c:822: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitsutil.c:282: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/scamp-2.9.2/src/fits/fitsutil.c:344: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/scamp-2.9.2/src/fits/fitsutil.c:481: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/scamp-2.9.2/src/fits/fitsutil.c:494: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/scamp-2.9.2/src/fits/fitsutil.c:496: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/scamp-2.9.2/src/fits/fitsutil.c:499: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/scamp-2.9.2/src/fits/fitsutil.c:503: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/scamp-2.9.2/src/fits/fitsutil.c:507: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/scamp-2.9.2/src/fits/fitsutil.c:513: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/scamp-2.9.2/src/fits/fitsutil.c:515: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/scamp-2.9.2/src/fits/fitsutil.c:531: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/scamp-2.9.2/src/fits/fitsutil.c:537: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/scamp-2.9.2/src/fits/fitswrite.c:257: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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%d_%d", l+1, j+1);
data/scamp-2.9.2/src/fitswcs.c:423: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/scamp-2.9.2/src/fitswcs.c:444:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char	*pstr, tstr[100];
data/scamp-2.9.2/src/fitswcs.c:546: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/scamp-2.9.2/src/fitswcs.c:549: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/scamp-2.9.2/src/fitswcs.c:553: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/scamp-2.9.2/src/fitswcs.c:556: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/scamp-2.9.2/src/fitswcs.c:594: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/scamp-2.9.2/src/fitswcs.c:602: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/scamp-2.9.2/src/fitswcs.c:638: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/scamp-2.9.2/src/fitswcs.c:648: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/scamp-2.9.2/src/fitswcs.c:683: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/scamp-2.9.2/src/fitswcs.c:686: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/scamp-2.9.2/src/fitswcs.c:689: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/scamp-2.9.2/src/fitswcs.c:692: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/scamp-2.9.2/src/fitswcs.c:697: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/scamp-2.9.2/src/fitswcs.c:704: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/scamp-2.9.2/src/fitswcs.c:804: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/scamp-2.9.2/src/fitswcs.c:1234: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/scamp-2.9.2/src/fitswcs.c:2102: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/scamp-2.9.2/src/fitswcs.c:2129: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/scamp-2.9.2/src/fitswcs.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		ctype[NAXIS][9];	/* FITS CTYPE strings */
data/scamp-2.9.2/src/fitswcs.h:74: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/scamp-2.9.2/src/globals.h:34: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/scamp-2.9.2/src/header.c:68: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[MAXCHAR];
data/scamp-2.9.2/src/header.c:74: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/scamp-2.9.2/src/header.c:146: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/scamp-2.9.2/src/header.c:151:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(file=fopen(filename, "w")))
data/scamp-2.9.2/src/header.c:175: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, "ASTIRMS%1d", d+1);
data/scamp-2.9.2/src/header.c:180: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, "ASTRRMS%1d", d+1);
data/scamp-2.9.2/src/key.h:41: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/scamp-2.9.2/src/key.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		keylist[32][32];	/* List of keywords */
data/scamp-2.9.2/src/main.c:94: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, "scamp.conf");
data/scamp-2.9.2/src/makeit.c:76:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char filename[MAXCHAR], extension[MAXCHAR], str[MAXCHAR];
data/scamp-2.9.2/src/makeit.c:92: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_start,"%04d-%02d-%02d",
data/scamp-2.9.2/src/makeit.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(prefs.stime_start,"%02d:%02d:%02d",
data/scamp-2.9.2/src/makeit.c:115: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(prefs.sdate_end,"%04d-%02d-%02d",
data/scamp-2.9.2/src/makeit.c:117: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(prefs.stime_end,"%02d:%02d:%02d",
data/scamp-2.9.2/src/makeit.c:212:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "No source found in reference catalog(s) for group %d; "
data/scamp-2.9.2/src/makeit.c:254: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, "Making preliminary cross-identifications in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:271: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, "Making cross-identifications in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:275: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, "Computing astrometric stats for group %d", g+1);
data/scamp-2.9.2/src/makeit.c:278: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, "Astrometric clipping in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:305: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, "Making cross-identifications in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:363:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "Computing photometric stats for group %d / P%d",
data/scamp-2.9.2/src/makeit.c:367:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "Photometric clipping in group %d / P%d", g+1, i+1);
data/scamp-2.9.2/src/makeit.c:448: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, "Computing colour shifts in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:466: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, "Computing proper motions in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:506:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "Computing proper motions in group %d", g+1);
data/scamp-2.9.2/src/makeit.c:605: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/scamp-2.9.2/src/makeit.c:607: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/scamp-2.9.2/src/makeit.c:617: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, "Saving merged catalog for group %d", g+1);
data/scamp-2.9.2/src/makeit.c:653: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, "Saving full catalog for group %d", g+1);
data/scamp-2.9.2/src/makeit.c:709: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 error[MAXCHAR];
data/scamp-2.9.2/src/match.c:114: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  str[128];
data/scamp-2.9.2/src/match.c:370: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  *ctype[NAXIS];
data/scamp-2.9.2/src/match.c:449: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  str[MAXCHAR],
data/scamp-2.9.2/src/match.c:509: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,"%.24s: projecting reference catalog...", rfilename);
data/scamp-2.9.2/src/match.c:536:21:  [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,"%.24s: reference pair #%d / %d processed",
data/scamp-2.9.2/src/match.c:596:21:  [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,"%.24s: detection pair #%d / %d processed",
data/scamp-2.9.2/src/match.c:629: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,"%.24s: finding field scale and position angle...", rfilename);
data/scamp-2.9.2/src/match.c:708: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  str[MAXCHAR],
data/scamp-2.9.2/src/match.c:766: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,"%.24s: projecting reference catalog...", rfilename);
data/scamp-2.9.2/src/match.c:781:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str,"%.24s: reference source #%d / %d processed",
data/scamp-2.9.2/src/match.c:819:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str,"%.24s: detection #%d / %d processed", rfilename, n,nsample);
data/scamp-2.9.2/src/match.c:837: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,"%.24s: finding field coordinate shift...", rfilename);
data/scamp-2.9.2/src/match.c:1168: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  str[MAXCHAR];
data/scamp-2.9.2/src/match.c:1184: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,"%.24s: refining matching parameters...", set->field->rfilename);
data/scamp-2.9.2/src/match.c:1517: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(pv1, pvt1, npv * sizeof(double));
data/scamp-2.9.2/src/match.c:1518: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(pv2, pvt2, npv * sizeof(double));
data/scamp-2.9.2/src/match.c:1756: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(pv1, pvt1, 40 * sizeof(double));
data/scamp-2.9.2/src/match.c:1757: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(pv2, pvt2, 40 * sizeof(double));
data/scamp-2.9.2/src/match.c:1842:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  str[128];
data/scamp-2.9.2/src/match.c:1855:21:  [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, "%-11.11s[%2d/%-2d] A%-2d P%-2d%#+6.2f deg "
data/scamp-2.9.2/src/match.c:1878:21:  [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, "%-11.11s[%2d/%-2d] A%-2d P%-2d%#+6.2f deg "
data/scamp-2.9.2/src/match.c:1903:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "%-18.18s A%-2d P%-2d%#+6.2f deg "
data/scamp-2.9.2/src/match.c:1926:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "%-18.18s A%-2d P%-2d%#+6.2f deg "
data/scamp-2.9.2/src/mosaic.c:92: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/scamp-2.9.2/src/mosaic.c:107: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, "Computing set shifts for field %d/%d", f+1, nfield);
data/scamp-2.9.2/src/mosaic.c:165: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, "Instrument A%-2d: Adjusting set %d/%d",
data/scamp-2.9.2/src/mosaic.c:246: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(fields[f]->set[s]->wcs->cd, cd,naxis*naxis*sizeof(double));
data/scamp-2.9.2/src/mosaic.c:368: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[80];
data/scamp-2.9.2/src/mosaic.c:383: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, "Instrument A%-2d: Adjusting set %d/%d",
data/scamp-2.9.2/src/photcplot.c:141: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/photcplot.c:202: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(xlabel, "Field ##");
data/scamp-2.9.2/src/photcplot.c:203: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(ylabel, "#gDZP [mag]");
data/scamp-2.9.2/src/photcplot.c:206: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, "Group ##%d / Instrument P%d: Zero-point corrections",
data/scamp-2.9.2/src/photcplot.c:279: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/photcplot.c:503: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(xlabel, "AXIS%d [pixels]", d+1);
data/scamp-2.9.2/src/photcplot.c:504: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(ylabel, "#gDmag");
data/scamp-2.9.2/src/photcplot.c:507: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, "Group ##%d / Instrument P%d: Internal photometric error",
data/scamp-2.9.2/src/photcplot.c:566: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		xlabel[80], ylabel[80], str[80];
data/scamp-2.9.2/src/photcplot.c:796: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(xlabel, "mag");
data/scamp-2.9.2/src/photcplot.c:797: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(ylabel, "#gDmag");
data/scamp-2.9.2/src/photcplot.c:798: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, "Group ##%d / Instrument P%d: Internal photometric error",
data/scamp-2.9.2/src/photcplot.c:839: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[80];
data/scamp-2.9.2/src/photcplot.c:1043: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, "Group ##%d / Instrument P%d: Zero-point corrections",
data/scamp-2.9.2/src/preflist.h:210: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/scamp-2.9.2/src/prefs.c:94: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[MAXCHARL],
data/scamp-2.9.2/src/prefs.c:99: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		value2[MAXCHARL],envname[MAXCHAR];
data/scamp-2.9.2/src/prefs.c:104: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/scamp-2.9.2/src/prefs.c:233: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/scamp-2.9.2/src/prefs.c:348: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/scamp-2.9.2/src/prefs.c:349: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/scamp-2.9.2/src/prefs.c:350: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/scamp-2.9.2/src/prefs.c:445: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/scamp-2.9.2/src/prefs.c:449:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(fp=fopen(listname,"r")))
data/scamp-2.9.2/src/prefs.c:483: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			teststr[80],str[80],
data/scamp-2.9.2/src/prefs.c:523: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, "NTHREADS defaulted to %d", prefs.nthreads);
data/scamp-2.9.2/src/prefs.c:590:56:  [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).
  prefs.photflux_num = (pstr = strtok(NULL,"([{}])"))? atoi(pstr) : 1;
data/scamp-2.9.2/src/prefs.c:593:59:  [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).
  prefs.photfluxerr_num = (pstr = strtok(NULL,"([{}])"))? atoi(pstr) : 1;
data/scamp-2.9.2/src/prefs.c:623:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(prefs.ref_server[i], "vizier.u-strasbg.fr");
data/scamp-2.9.2/src/prefs.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		prefs_name[MAXCHAR];	/* prefs filename*/
data/scamp-2.9.2/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		*(file_name[MAXFILE]);	/* Filename(s) of input images */
data/scamp-2.9.2/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		ahead_global[MAXCHAR];	/* Global input FITS header filename */
data/scamp-2.9.2/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		*(ahead_name[MAXFILE]);	/* Filename(s) of input FITS headers */
data/scamp-2.9.2/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		ahead_suffix[MAXCHAR];	/* Suffix for input FITS headers */
data/scamp-2.9.2/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		*(head_name[MAXFILE]);	/* Filename(s) of output FITS headers */
data/scamp-2.9.2/src/prefs.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		head_suffix[MAXCHAR];	/* Suffix for output FITS headers */
data/scamp-2.9.2/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		*(ref_server[MAX_SERVER]);/* IP addresses of ref cat servers */
data/scamp-2.9.2/src/prefs.h:84: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		*(astref_name[MAXNGROUP]);/* Astrometric ref. cat. filenames */
data/scamp-2.9.2/src/prefs.h:86: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		astref_bandname[MAXCHAR];/* Astrometric ref. band name */
data/scamp-2.9.2/src/prefs.h:89: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		*(astrefcent_key[NAXIS]);/* Astrom ref. cat. centroid keywords*/
data/scamp-2.9.2/src/prefs.h:91: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		*(astreferr_key[(NAXIS*(NAXIS+1))/2]);/* err.ellipse keywords*/
data/scamp-2.9.2/src/prefs.h:93: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		*(astrefprop_key[NAXIS]);/* Astrom ref. cat. PM keywords*/
data/scamp-2.9.2/src/prefs.h:95: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		*(astrefproperr_key[NAXIS]);/* PM err keywords*/
data/scamp-2.9.2/src/prefs.h:97: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		astrefmag_key[72];	/* Astrom ref. cat. mag. keyword */
data/scamp-2.9.2/src/prefs.h:98: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		astrefmagerr_key[72];	/* Astrom ref. cat. mag. error keyword*/
data/scamp-2.9.2/src/prefs.h:99: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		astrefobsdate_key[72];	/* Astrom ref. cat. obs. date keyword */
data/scamp-2.9.2/src/prefs.h:101: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		outref_path[MAXCHAR];	/* Path for ref.catalog output files */
data/scamp-2.9.2/src/prefs.h:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		mergedcat_name[MAXCHAR];/* Output filename */
data/scamp-2.9.2/src/prefs.h:109: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		fullcat_name[MAXCHAR];/* Output filename */
data/scamp-2.9.2/src/prefs.h:116: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		dgeomap_name[MAXCHAR];	/* Output filename */
data/scamp-2.9.2/src/prefs.h:139: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		photflux_key[72];		/* Name of phot. flux key */
data/scamp-2.9.2/src/prefs.h:140: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		photflux_rkey[72];		/* Reduced phot. flux key */
data/scamp-2.9.2/src/prefs.h:142: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		photfluxerr_key[72];		/* Name of phot. flux err. key*/
data/scamp-2.9.2/src/prefs.h:143: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		photfluxerr_rkey[72];		/* Reduced phot. flux err. key*/
data/scamp-2.9.2/src/prefs.h:145: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		*(photinstru_key[35]);		/* Photom instrument keywords */
data/scamp-2.9.2/src/prefs.h:149: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		airmass_key[72];	/* FITS keyword for air mass */
data/scamp-2.9.2/src/prefs.h:150: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		expotime_key[72];	/* FITS keyword for expo. time */
data/scamp-2.9.2/src/prefs.h:151: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		extcoeff_key[72];	/* FITS keyword for extinction coeff */
data/scamp-2.9.2/src/prefs.h:152: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		magzero_key[72];	/* FITS keyword for zero-point */
data/scamp-2.9.2/src/prefs.h:153: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		photomflag_key[72];	/* FITS keyword for photom. exposures*/
data/scamp-2.9.2/src/prefs.h:169: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          *(centroid_key[NAXIS]);		/* Names of centroid measur. */
data/scamp-2.9.2/src/prefs.h:171: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          *(centroiderr_key[(NAXIS*(NAXIS+1))/2]);/* err ellipse names */
data/scamp-2.9.2/src/prefs.h:173: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		*(astrinstru_key[35]);		/* Astrom instrument keywords */
data/scamp-2.9.2/src/prefs.h:180: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          *(context_name[MAXCONTEXT]);	/* Names of context-keys */
data/scamp-2.9.2/src/prefs.h:190: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		astraccuracy_key[72];	/* Fits keyword for astrom. uncer. */
data/scamp-2.9.2/src/prefs.h:208: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		*(cplot_name[MAXCHECK]);	/* check-plot names */
data/scamp-2.9.2/src/prefs.h:211: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		cplot_colourkey[72];		/* FITS keyword for colour */
data/scamp-2.9.2/src/prefs.h:219: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		*(check_name[MAXCHECK]);	/* check-image names */
data/scamp-2.9.2/src/prefs.h:226: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/scamp-2.9.2/src/prefs.h:227: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/scamp-2.9.2/src/prefs.h:228: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];		/* SCAMP start date */
data/scamp-2.9.2/src/prefs.h:229: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];		/* SCAMP start time */
data/scamp-2.9.2/src/prefs.h:230: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];			/* SCAMP end date */
data/scamp-2.9.2/src/prefs.h:231: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];			/* SCAMP end time */
data/scamp-2.9.2/src/proper.c:260: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		*wcsectype[NAXIS];
data/scamp-2.9.2/src/proper.c:293:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(wcsectype[lng], "ELON-AIT");
data/scamp-2.9.2/src/proper.c:294:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(wcsectype[lat], "ELAT-AIT");
data/scamp-2.9.2/src/proper.c:604: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(b,beta,ncoeff*sizeof(double));
data/scamp-2.9.2/src/proper.c:605: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(a,alpha,ncoeff*ncoeff*sizeof(double));
data/scamp-2.9.2/src/samples.c:84: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   str[MAXCHAR],
data/scamp-2.9.2/src/samples.c:414:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str,"%-.36s : %d / %d detections stored",
data/scamp-2.9.2/src/samples.c:1059:25:  [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(sample3->context, samplein->context,
data/scamp-2.9.2/src/samples.c:1102:25:  [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(sample3->context, samplein->context,
data/scamp-2.9.2/src/samples.c:1146:25:  [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(sample3->context, samplein->context,
data/scamp-2.9.2/src/samples.c:1199: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(sample->context, samplein->context, set->ncontext*sizeof(double));
data/scamp-2.9.2/src/url.c:120: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(&url->buffer[url->buffer_pos], buffer, size);
data/scamp-2.9.2/src/url.c:337: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(ptr, file->buffer, want);
data/scamp-2.9.2/src/url.c:373: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(ptr, file->buffer, want);
data/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/wcs/poly.c:65: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/scamp-2.9.2/src/wcs/poly.c:94: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/scamp-2.9.2/src/wcs/poly.c:102: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/scamp-2.9.2/src/wcs/poly.c:135: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/xml.c:119: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(prefs.xml_name, "w")))
data/scamp-2.9.2/src/xml.c:202: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			plotfilename[MAXCHAR],
data/scamp-2.9.2/src/xml.c:214: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/scamp-2.9.2/src/xml.c:216: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/scamp-2.9.2/src/xml.c:323: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(pstr, "_1.png");
data/scamp-2.9.2/src/xml.c:796: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(pstr, "_%d.png", g+1);
data/scamp-2.9.2/src/xml.c:891: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(pstr, "_%d.png", i+1);
data/scamp-2.9.2/src/xml.c:1185: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/scamp-2.9.2/src/xml.c:1218: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/scamp-2.9.2/src/xml.c:1284: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/scamp-2.9.2/src/xml.c:1293: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/scamp-2.9.2/src/xml.c:1299: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/scamp-2.9.2/src/xml.c:1310: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.
      strcpy(value, (char *)key[i].ptr);
data/scamp-2.9.2/src/xml.c:1319: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.
        strcpy(value, ((char **)key[i].ptr)[0]);
data/scamp-2.9.2/src/xml.c:1325: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/scamp-2.9.2/tests/test_chealpix.c:21:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fd = fopen("extra/test_chealpix.data", "r");
data/scamp-2.9.2/tests/test_crossid_single_catalog.c:41: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).
    FILE *cat = fopen(testfile, "r");
data/scamp-2.9.2/tests/test_crossid_single_catalog_moving.c:41: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).
    FILE *cat = fopen(testfile, "r");
data/scamp-2.9.2/src/astrcplot.c:1032:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ctype[i],wcsin->ctype[i], 16);
data/scamp-2.9.2/src/astrcplot.c:1262:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(ctype[i],wcs->ctype[i], 16);
data/scamp-2.9.2/src/astrcplot.c:1584:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(ctype[i],wcs->ctype[i], 16);
data/scamp-2.9.2/src/astrcplot.c:4945:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ctype[d],wcs0->ctype[d], 16);
data/scamp-2.9.2/src/astrcplot.c:5210:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ctype[d],wcs0->ctype[d], 16);
data/scamp-2.9.2/src/astrefcat.c:329:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(maglimcmd, "");
data/scamp-2.9.2/src/astrefcat.c:346:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(url, ",");
data/scamp-2.9.2/src/astrefcat.c:1147:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pstr = field->hfilename+strlen(field->hfilename);
data/scamp-2.9.2/src/astrefcat.c:1163:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(field->path, "/");
data/scamp-2.9.2/src/catout.c:622:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(arraysize, "\"");
data/scamp-2.9.2/src/chealpix.c:1175: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).
    UTIL_ASSERT(strlen(coordsys)>=1,"bad ccordsys value");
data/scamp-2.9.2/src/cplot.c:141:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pstr = plotfilename+strlen(plotfilename);
data/scamp-2.9.2/src/field.c:116: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).
            pstr = field->hfilename+strlen(field->hfilename);
data/scamp-2.9.2/src/field.c:133:13:  [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(field->path, "/");
data/scamp-2.9.2/src/field.c:154:5:  [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(astrombuf, "END     ", 8);
data/scamp-2.9.2/src/field.c:172:5:  [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(photombuf, "END     ", 8);
data/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitshead.c:427: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/scamp-2.9.2/src/fits/fitshead.c:435: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/scamp-2.9.2/src/fits/fitshead.c:496: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/scamp-2.9.2/src/fits/fitshead.c:527: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fits/fitsutil.c:350: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/scamp-2.9.2/src/fits/fitsutil.c:373: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/scamp-2.9.2/src/fits/fitsutil.c:529: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/scamp-2.9.2/src/fits/fitsutil.c:590: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/scamp-2.9.2/src/fits/fitsutil.c:592: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/scamp-2.9.2/src/fits/fitsutil.c:594: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/scamp-2.9.2/src/fits/fitsutil.c:595: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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/src/fitswcs.c:550: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/scamp-2.9.2/src/fitswcs.c:557: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/scamp-2.9.2/src/main.c:103: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/scamp-2.9.2/src/makeit.c:525:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pstr = filename+strlen(filename);
data/scamp-2.9.2/src/makeit.c:622:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pstr = filename+strlen(filename);
data/scamp-2.9.2/src/makeit.c:638:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pstr = filename+strlen(filename);
data/scamp-2.9.2/src/makeit.c:658:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pstr = filename+strlen(filename);
data/scamp-2.9.2/src/prefs.c:179: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/scamp-2.9.2/src/prefs.c:458: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).
      l = strlen(str)+1;
data/scamp-2.9.2/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/scamp-2.9.2/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/scamp-2.9.2/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, "");
data/scamp-2.9.2/src/xml.c:322:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pstr = plotfilename+strlen(plotfilename);
data/scamp-2.9.2/src/xml.c:795:31:  [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 = plotfilename+strlen(plotfilename);
data/scamp-2.9.2/src/xml.c:890:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pstr = plotfilename+strlen(plotfilename);

ANALYSIS SUMMARY:

Hits = 786
Lines analyzed = 49476 in approximately 1.48 seconds (33362 lines/second)
Physical Source Lines of Code (SLOC) = 33641
Hits@level = [0] 436 [1]  50 [2] 494 [3]   7 [4] 235 [5]   0
Hits@level+ = [0+] 1222 [1+] 786 [2+] 736 [3+] 242 [4+] 235 [5+]   0
Hits/KSLOC@level+ = [0+] 36.3247 [1+] 23.3643 [2+] 21.8781 [3+] 7.1936 [4+] 6.98552 [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.