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/psfex-3.17.1+dfsg/src/catout.c
Examining data/psfex-3.17.1+dfsg/src/check.c
Examining data/psfex-3.17.1+dfsg/src/context.c
Examining data/psfex-3.17.1+dfsg/src/diagnostic.c
Examining data/psfex-3.17.1+dfsg/src/fft.c
Examining data/psfex-3.17.1+dfsg/src/field.c
Examining data/psfex-3.17.1+dfsg/src/fitswcs.c
Examining data/psfex-3.17.1+dfsg/src/homo.c
Examining data/psfex-3.17.1+dfsg/src/main.c
Examining data/psfex-3.17.1+dfsg/src/makeit.c
Examining data/psfex-3.17.1+dfsg/src/misc.c
Examining data/psfex-3.17.1+dfsg/src/pca.c
Examining data/psfex-3.17.1+dfsg/src/prefs.c
Examining data/psfex-3.17.1+dfsg/src/psf.c
Examining data/psfex-3.17.1+dfsg/src/sample.c
Examining data/psfex-3.17.1+dfsg/src/vignet.c
Examining data/psfex-3.17.1+dfsg/src/xml.c
Examining data/psfex-3.17.1+dfsg/src/cathead.h
Examining data/psfex-3.17.1+dfsg/src/catout.h
Examining data/psfex-3.17.1+dfsg/src/check.h
Examining data/psfex-3.17.1+dfsg/src/context.h
Examining data/psfex-3.17.1+dfsg/src/cplot.h
Examining data/psfex-3.17.1+dfsg/src/define.h
Examining data/psfex-3.17.1+dfsg/src/diagnostic.h
Examining data/psfex-3.17.1+dfsg/src/fft.h
Examining data/psfex-3.17.1+dfsg/src/field.h
Examining data/psfex-3.17.1+dfsg/src/fitswcs.h
Examining data/psfex-3.17.1+dfsg/src/globals.h
Examining data/psfex-3.17.1+dfsg/src/homo.h
Examining data/psfex-3.17.1+dfsg/src/key.h
Examining data/psfex-3.17.1+dfsg/src/misc.h
Examining data/psfex-3.17.1+dfsg/src/pca.h
Examining data/psfex-3.17.1+dfsg/src/prefs.h
Examining data/psfex-3.17.1+dfsg/src/preflist.h
Examining data/psfex-3.17.1+dfsg/src/psf.h
Examining data/psfex-3.17.1+dfsg/src/sample.h
Examining data/psfex-3.17.1+dfsg/src/threads.h
Examining data/psfex-3.17.1+dfsg/src/types.h
Examining data/psfex-3.17.1+dfsg/src/vignet.h
Examining data/psfex-3.17.1+dfsg/src/wcscelsys.h
Examining data/psfex-3.17.1+dfsg/src/xml.h
Examining data/psfex-3.17.1+dfsg/src/fits/fitscat.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitscheck.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitsconv.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitshead.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitskey.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitsmisc.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitsread.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitstab.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitsutil.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitswrite.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitscat_defs.h
Examining data/psfex-3.17.1+dfsg/src/fits/fitscat.h
Examining data/psfex-3.17.1+dfsg/src/fits/fitscleanup.c
Examining data/psfex-3.17.1+dfsg/src/fits/fitsbody.c
Examining data/psfex-3.17.1+dfsg/src/levmar/Axb.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmbc.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lm.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmblec.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmbleic.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmlec.c
Examining data/psfex-3.17.1+dfsg/src/levmar/misc.c
Examining data/psfex-3.17.1+dfsg/src/levmar/compiler.h
Examining data/psfex-3.17.1+dfsg/src/levmar/levmar.h
Examining data/psfex-3.17.1+dfsg/src/levmar/misc.h
Examining data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lm_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/misc_core.c
Examining data/psfex-3.17.1+dfsg/src/levmar/expfit.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lmdemo.c
Examining data/psfex-3.17.1+dfsg/src/levmar/lm.h
Examining data/psfex-3.17.1+dfsg/src/levmar/matlab/levmar.c
Examining data/psfex-3.17.1+dfsg/src/wcs/cel.c
Examining data/psfex-3.17.1+dfsg/src/wcs/lin.c
Examining data/psfex-3.17.1+dfsg/src/wcs/poly.c
Examining data/psfex-3.17.1+dfsg/src/wcs/proj.c
Examining data/psfex-3.17.1+dfsg/src/wcs/sph.c
Examining data/psfex-3.17.1+dfsg/src/wcs/tnx.c
Examining data/psfex-3.17.1+dfsg/src/wcs/wcs.c
Examining data/psfex-3.17.1+dfsg/src/wcs/wcstrig.c
Examining data/psfex-3.17.1+dfsg/src/wcs/cel.h
Examining data/psfex-3.17.1+dfsg/src/wcs/lin.h
Examining data/psfex-3.17.1+dfsg/src/wcs/poly.h
Examining data/psfex-3.17.1+dfsg/src/wcs/proj.h
Examining data/psfex-3.17.1+dfsg/src/wcs/sph.h
Examining data/psfex-3.17.1+dfsg/src/wcs/tnx.h
Examining data/psfex-3.17.1+dfsg/src/wcs/wcs.h
Examining data/psfex-3.17.1+dfsg/src/wcs/wcsmath.h
Examining data/psfex-3.17.1+dfsg/src/wcs/wcstrig.h
Examining data/psfex-3.17.1+dfsg/src/cplot.c

FINAL RESULTS:

data/psfex-3.17.1+dfsg/src/catout.c:148: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/psfex-3.17.1+dfsg/src/catout.c:317: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/psfex-3.17.1+dfsg/src/catout.c:318: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/psfex-3.17.1+dfsg/src/check.c:90: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, checkname);
data/psfex-3.17.1+dfsg/src/check.c:93: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(filename, field->rcatname);
data/psfex-3.17.1+dfsg/src/check.c:97:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pstr, "_%s.fits", filename);
data/psfex-3.17.1+dfsg/src/check.c:855: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(listfilename, field->catname);
data/psfex-3.17.1+dfsg/src/check.c:858:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(pstr, "%s", ".dat");
data/psfex-3.17.1+dfsg/src/cplot.c:132: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/psfex-3.17.1+dfsg/src/cplot.c:136: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/psfex-3.17.1+dfsg/src/cplot.c:144:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(str, name);
data/psfex-3.17.1+dfsg/src/cplot.c:154:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(plotfilename, "%s_%s%s", prefs.cplot_name[cval], str,
data/psfex-3.17.1+dfsg/src/cplot.c:860:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%s", (wcs->lng == wcs->lat)?
data/psfex-3.17.1+dfsg/src/define.h:102: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).
                    strcpy(str, (def)); \
data/psfex-3.17.1+dfsg/src/define.h:134:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/define.h:144:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/define.h:154:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/define.h:165:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		     sprintf(gstr, #ptrout " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/define.h:176: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/psfex-3.17.1+dfsg/src/define.h:183: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/psfex-3.17.1+dfsg/src/define.h:185: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/psfex-3.17.1+dfsg/src/field.c:86: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->catname, catname);
data/psfex-3.17.1+dfsg/src/field.c:92: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->rtcatname, field->rcatname);
data/psfex-3.17.1+dfsg/src/field.c:397:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cat->filename, "%s", filename);
data/psfex-3.17.1+dfsg/src/fits/fitsbody.c:119: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:220: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:1197: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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitscat_defs.h:129:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/fits/fitscat_defs.h:139:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/fits/fitscat_defs.h:149:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		   sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/src/fits/fitscat_defs.h:160:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		     sprintf(gstr, #ptrout " (" #nel "=%lld elements) " \
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitshead.c:259:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fitsread(tab->headbuf, strk, key->printf, H_STRING, T_STRING);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:260:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (*key->printf)
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:261:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      tdisptoprintf(key->printf, key->printf);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:261:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      tdisptoprintf(key->printf, key->printf);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:428:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str2, n?", %d%n":"%d%n", key->naxisn[n],&j);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:440:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (*key->printf)
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:444:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fitswrite(tab->headbuf, strk, printftotdisp(key->printf, str),
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitskey.c:529:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(names[i],key->name);
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:684:15:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
              fprintf(stream, skycathead, 6.0);
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:698:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(key->name,  map->newname);
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:737:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy(key->name, map->newname);
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:825:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:825:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:825:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:845:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:845:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:845:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:866:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%lld",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:866:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%lld",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:866:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%lld",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:869:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:869:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:869:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:889:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stream, *key->printf?key->printf:"%g",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:889:43:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stream, *key->printf?key->printf:"%g",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:889:55:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stream, *key->printf?key->printf:"%g",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:909:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%f",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:909:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%f",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:909:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   fprintf(stream, *key->printf?key->printf:"%f",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:940:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:940:44:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:940:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf(stream, *key->printf?key->printf:"%d",
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:986:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     fprintf(stream, skycattail, 1.0);
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitswrite.c:418:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:418:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:418:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:423:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:423:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:423:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:428:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:428:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:428:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:433:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:433:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:433:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:438:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:438:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:438:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:451:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:451:34:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:451:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:504:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:504:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:504:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:509:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:509:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:509:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:514:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:514:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:514:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:519:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:519:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:519:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:524:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:524:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:524:45:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:537:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:537:34:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/psfex-3.17.1+dfsg/src/fits/fitswrite.c:537:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fitswcs.c:1244: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/psfex-3.17.1+dfsg/src/fitswcs.c:1245: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/psfex-3.17.1+dfsg/src/fitswcs.c:1246: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/psfex-3.17.1+dfsg/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(wcs->ctype[lat], strlat);
data/psfex-3.17.1+dfsg/src/homo.c:308: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/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:190:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_QR) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:198:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_QR) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:218: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", GEQRF) " in ", AX_EQ_B_QR) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:222: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(stderr, RCAT(RCAT("Unknown LAPACK error %d for ", GEQRF) " in ", AX_EQ_B_QR) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:238: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", ORGQR) " in ", AX_EQ_B_QR) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:242: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(stderr, RCAT("Unknown LAPACK error (%d) in ", AX_EQ_B_QR) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:263: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", TRTRS) " in ", AX_EQ_B_QR) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:267: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(stderr, RCAT("LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in ", AX_EQ_B_QR) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:329:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  fprintf(stderr, RCAT("Normal equations require that the number of rows is greater than number of columns in ", AX_EQ_B_QRLS) "() [%d x %d]! -- try transposing\n", m, n);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:354:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_QRLS) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:362:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_QRLS) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:389: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", GEQRF) " in ", AX_EQ_B_QRLS) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:393: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(stderr, RCAT(RCAT("Unknown LAPACK error %d for ", GEQRF) " in ", AX_EQ_B_QRLS) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:417: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", TRTRS) " in ", AX_EQ_B_QRLS) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:421: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(stderr, RCAT("LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in ", AX_EQ_B_QRLS) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:435: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", TRTRS) " in ", AX_EQ_B_QRLS) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.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(stderr, RCAT("LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in ", AX_EQ_B_QRLS) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:506:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_CHOL) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:514:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_CHOL) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:533: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(stderr, RCAT(RCAT(RCAT("LAPACK error: illegal value for argument %d of ", POTF2) "/", POTRF) " in ",
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:538: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(stderr, RCAT(RCAT(RCAT("LAPACK error: the leading minor of order %d is not positive definite,\nthe factorization could not be completed for ", POTF2) "/", POTRF) " in ", AX_EQ_B_CHOL) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:550:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", POTRS) " in ", AX_EQ_B_CHOL) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:560: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", TRTRS) " in ", AX_EQ_B_CHOL) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:564: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(stderr, RCAT("LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in ", AX_EQ_B_CHOL) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:578: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", TRTRS) "in ", AX_EQ_B_CHOL) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:582: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(stderr, RCAT("LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in ", AX_EQ_B_CHOL) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:693:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_PLASMA_CHOL) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:701: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(stderr, RCAT("memory allocation in ", AX_EQ_B_PLASMA_CHOL) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:718:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("\n", AX_EQ_B_PLASMA_CHOL) "(): PLASMA is running on %d cores.\n\n", PLASMA_ncores);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:726: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", PLASMA_POSV) " in ",
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:731: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(stderr, RCAT(RCAT("LAPACK error: the leading minor of order %d is not positive definite,\n"
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:800:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_LU) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:808:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_LU) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:828: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(stderr, RCAT(RCAT("argument %d of ", GETRF) " illegal in ", AX_EQ_B_LU) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:832: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(stderr, RCAT(RCAT("singular matrix A for ", GETRF) " in ", AX_EQ_B_LU) "()\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:845:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, RCAT(RCAT("argument %d of ", GETRS) " illegal in ", AX_EQ_B_LU) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:849:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, RCAT(RCAT("unknown error for ", GETRS) " in ", AX_EQ_B_LU) "()\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:932: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(stderr, RCAT("memory allocation in ", AX_EQ_B_SVD) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:940: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(stderr, RCAT("memory allocation in ", AX_EQ_B_SVD) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:964: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(stderr, RCAT(RCAT(RCAT("LAPACK error: illegal value for argument %d of ", GESVD), "/" GESDD) " in ", AX_EQ_B_SVD) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:968: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(stderr, RCAT("LAPACK error: dgesdd (dbdsdc)/dgesvd (dbdsqr) failed to converge in ", AX_EQ_B_SVD) "() [info=%d]\n", info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1070: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(stderr, RCAT("memory allocation in ", AX_EQ_B_BK) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1078:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("memory allocation in ", AX_EQ_B_BK) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1097: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", SYTRF) " in ", AX_EQ_B_BK) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1101: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(stderr, RCAT(RCAT("LAPACK error: singular block diagonal matrix D for", SYTRF) " in ", AX_EQ_B_BK)"() [D(%d, %d) is zero]\n", info, info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1113:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", SYTRS) " in ", AX_EQ_B_BK) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1213: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(stderr, RCAT("memory allocation in ", AX_EQ_B_LU) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1221: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(stderr, RCAT("memory allocation in ", AX_EQ_B_LU) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1241:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("Singular matrix A in ", AX_EQ_B_LU) "()!\n");
data/psfex-3.17.1+dfsg/src/levmar/lm_core.c:149:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_DER, "(): cannot solve a problem with fewer measurements [%d] than unknowns [%d]\n"), n, m);
data/psfex-3.17.1+dfsg/src/levmar/lm_core.c:154:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("No function specified for computing the Jacobian in ", LEVMAR_DER)
data/psfex-3.17.1+dfsg/src/levmar/lm_core.c:178: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(stderr, LCAT(LEVMAR_DER, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lm_core.c:530:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_DIF, "(): cannot solve a problem with fewer measurements [%d] than unknowns [%d]\n"), n, m);
data/psfex-3.17.1+dfsg/src/levmar/lm_core.c:559: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(stderr, LCAT(LEVMAR_DIF, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:468:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BC_DER, "(): cannot solve a problem with fewer measurements [%d] than unknowns [%d]\n"), n, m);
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:473:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("No function specified for computing the Jacobian in ", LEVMAR_BC_DER)
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:479:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BC_DER, "(): at least one lower bound exceeds the upper one\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:486:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, LCAT(LEVMAR_BC_DER, "(): scaling constants should be positive (scale %d: %g <= 0)\n"), i, dscl[i]);
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:492: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(stderr, LCAT(LEVMAR_BC_DER, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:516: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(stderr, LCAT(LEVMAR_BC_DER, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:546: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(stderr, RCAT("Warning: component %d of starting point not feasible in ", LEVMAR_BC_DER) "()! [%g projected to %g]\n",
data/psfex-3.17.1+dfsg/src/levmar/lmbc_core.c:1137:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BC_DIF, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:257:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("No function specified for computing the Jacobian in ", LEVMAR_BLEC_DER)
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:263:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT(LCAT(LEVMAR_BLEC_DER, "(): lower and upper bounds for box constraints cannot be both NULL, use "),
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:269:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEC_DER, "(): at least one lower bound exceeds the upper one\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:277: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(stderr, LCAT(LEVMAR_BLEC_DER, "(): memory allocation request #1 failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:291:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEC_DER, "(): memory allocation request #2 failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:372:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT(LCAT(LEVMAR_BLEC_DIF, "(): lower and upper bounds for box constraints cannot be both NULL, use "),
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:378:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEC_DER, "(): at least one lower bound exceeds the upper one\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:386: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(stderr, LCAT(LEVMAR_BLEC_DER, "(): memory allocation request #1 failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmblec_core.c:400:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEC_DER, "(): memory allocation request #2 failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:185:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("No function specified for computing the Jacobian in ", LEVMAR_BLEIC_DER)
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:191:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT(LCAT(LEVMAR_BLEIC_DER, "(): missing inequality constraints, use "), LEVMAR_BLEC_DER) "() in this case!\n");
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:200:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEIC_DER, "(): cannot solve a problem with fewer measurements + equality constraints [%d + %d] than unknowns [%d]\n"), n, k1, m);
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:207:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEIC_DER, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:349:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT(LCAT(LEVMAR_BLEIC_DIF, "(): missing inequality constraints, use "), LEVMAR_BLEC_DIF) "() in this case!\n");
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:357:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEIC_DIF, "(): cannot solve a problem with fewer measurements + equality constraints [%d + %d] than unknowns [%d]\n"), n, k1, m);
data/psfex-3.17.1+dfsg/src/levmar/lmbleic_core.c:364:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_BLEIC_DIF, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:127:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("matrix of constraints cannot have more rows than columns in", LMLEC_ELIM) "()!\n");
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:148:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("Memory allocation request failed in ", LMLEC_ELIM) "()\n");
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:178: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", GEQP3) " in ", LMLEC_ELIM) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:181: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(stderr, RCAT(RCAT("unknown LAPACK error (%d) for ", GEQP3) " in ", LMLEC_ELIM) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:205:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("\nConstraints matrix in ",  LMLEC_ELIM) "() is not of full row rank (i.e. %d < %d)!\n"
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:226: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", TRTRI) " in ", LMLEC_ELIM) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:229: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(stderr, RCAT(RCAT("A(%d, %d) is exactly zero for ", TRTRI) " (singular matrix) in ", LMLEC_ELIM) "()\n", info, info);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:252: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(stderr, RCAT(RCAT("LAPACK error: illegal value for argument %d of ", ORGQR) " in ", LMLEC_ELIM) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:255: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(stderr, RCAT(RCAT("unknown LAPACK error (%d) for ", ORGQR) " in ", LMLEC_ELIM) "()\n", info);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:444:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("No function specified for computing the Jacobian in ", LEVMAR_LEC_DER)
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:452:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_LEC_DER, "(): cannot solve a problem with fewer measurements + equality constraints [%d + %d] than unknowns [%d]\n"), n, k, m);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:458:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_LEC_DER, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:500: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(stderr, RCAT("Warning: component %d of starting point not feasible in ", LEVMAR_LEC_DER) "()! [%.10g reset to %.10g]\n",
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:578:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_LEC_DIF, "(): cannot solve a problem with fewer measurements + equality constraints [%d + %d] than unknowns [%d]\n"), n, k, m);
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:584:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_LEC_DIF, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:626: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(stderr, RCAT("Warning: component %d of starting point not feasible in ", LEVMAR_LEC_DIF) "()! [%.10g reset to %.10g]\n",
data/psfex-3.17.1+dfsg/src/levmar/lmlec_core.c:648: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(stderr, LCAT(LEVMAR_LEC_DIF, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/matlab/levmar.c:76:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buf, fmt, args);
data/psfex-3.17.1+dfsg/src/levmar/matlab/levmar.c:89:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buf, fmt, args);
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:297:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, LCAT(LEVMAR_CHKJAC, "(): memory allocation request failed\n"));
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:385: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(stderr, RCAT("memory allocation in ", LEVMAR_PSEUDOINVERSE) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:408: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(stderr, RCAT(RCAT(RCAT("LAPACK error: illegal value for argument %d of ", GESVD), "/" GESDD) " in ", LEVMAR_PSEUDOINVERSE) "()\n", -info);
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:411: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(stderr, RCAT("LAPACK error: dgesdd (dbdsdc)/dgesvd (dbdsqr) failed to converge in ", LEVMAR_PSEUDOINVERSE) "() [info=%d]\n", info);
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:475:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("memory allocation in ", LEVMAR_LUINVERSE) "() failed!\n");
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:494:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, RCAT("Singular matrix A in ", LEVMAR_LUINVERSE) "()!\n");
data/psfex-3.17.1+dfsg/src/levmar/misc_core.c:679:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, RCAT("memory allocation request failed in ", LEVMAR_R2) "()\n");
data/psfex-3.17.1+dfsg/src/main.c:113: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/psfex-3.17.1+dfsg/src/makeit.c:215:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "Computing new PCA image basis from %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:243:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "Computing new PCA image basis from %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:264:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str, "Computing hidden dependency parameter(s) from %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:307:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "Computing final PSF model from %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:339:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str,
data/psfex-3.17.1+dfsg/src/makeit.c:343:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Computing hidden dependency parameter(s) from %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:389:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Reading data from %s[%d/%d]...",
data/psfex-3.17.1+dfsg/src/makeit.c:392:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Reading data from %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:403:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Computing final PSF model for %s[%d/%d]...",
data/psfex-3.17.1+dfsg/src/makeit.c:406:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "Computing final PSF model for %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:452:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "Computing diagnostics for %s[%d/%d]...",
data/psfex-3.17.1+dfsg/src/makeit.c:455:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "Computing diagnostics for %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:519:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "Saving PSF model and metadata for %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:529:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str, "%s/%s", prefs.psf_dir, pstr);
data/psfex-3.17.1+dfsg/src/makeit.c:532: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, incatnames[c]);
data/psfex-3.17.1+dfsg/src/makeit.c:535:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pstr, "%s", prefs.psf_suffix);
data/psfex-3.17.1+dfsg/src/makeit.c:543:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "Computing homogenisation kernel for %s[%d/%d]...",
data/psfex-3.17.1+dfsg/src/makeit.c:546:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "Computing homogenisation kernel for %s...",
data/psfex-3.17.1+dfsg/src/makeit.c:555:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "%s/%s", prefs.homokernel_dir, pstr);
data/psfex-3.17.1+dfsg/src/makeit.c:558: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, incatnames[c]);
data/psfex-3.17.1+dfsg/src/makeit.c:561:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(pstr, "%s", prefs.homokernel_suffix);
data/psfex-3.17.1+dfsg/src/makeit.c:715:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(error, "%s%s", msg1,msg2);
data/psfex-3.17.1+dfsg/src/prefs.c:111: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/psfex-3.17.1+dfsg/src/prefs.c:128:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(str, *(dp++)+1);
data/psfex-3.17.1+dfsg/src/prefs.c:130: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/psfex-3.17.1+dfsg/src/prefs.c:143: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/psfex-3.17.1+dfsg/src/prefs.c:228: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/psfex-3.17.1+dfsg/src/prefs.c:252:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf(errstr, "*Error*: %s set to an unknown keyword: ",
data/psfex-3.17.1+dfsg/src/prefs.c:326:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(errstr, "*Error*: %s set to an unknown keyword: ",
data/psfex-3.17.1+dfsg/src/prefs.c:353: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/psfex-3.17.1+dfsg/src/prefs.c:462: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/psfex-3.17.1+dfsg/src/psf.c:285:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "%d%s", ngroup2, d==1?"st":(d==2?"nd":(d==3?"rd":"th")));
data/psfex-3.17.1+dfsg/src/psf.c:331: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(psf->contextname[d], *(names2t++));
data/psfex-3.17.1+dfsg/src/sample.c:176:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf(str, "FLUS_RADIUS not found in catalog %s",
data/psfex-3.17.1+dfsg/src/sample.c:183:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf(str, "SNR_WIN not found in catalog %s",
data/psfex-3.17.1+dfsg/src/sample.c:507: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 catalogue ",
data/psfex-3.17.1+dfsg/src/sample.c:522: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 catalogue ",
data/psfex-3.17.1+dfsg/src/sample.c:540: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(rkeyname, prefs.photflux_key);
data/psfex-3.17.1+dfsg/src/sample.c:545: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 catalogue ",
data/psfex-3.17.1+dfsg/src/sample.c:556:7:  [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 catalogue %s: ",
data/psfex-3.17.1+dfsg/src/sample.c:627: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 the header of ",
data/psfex-3.17.1+dfsg/src/sample.c:634: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(rkeyname, *kstr);
data/psfex-3.17.1+dfsg/src/sample.c:639: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 ", *kstr);
data/psfex-3.17.1+dfsg/src/sample.c:650:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(str, "Not enough %s elements in catalogue %s: ", rkeyname,
data/psfex-3.17.1+dfsg/src/sample.c:655: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(set->contextname[i], key->name);
data/psfex-3.17.1+dfsg/src/sample.c:671:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,"Catalog #%d %s: Object #%d / %d samples stored",
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/xml.c:788: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, field->rcatname);
data/psfex-3.17.1+dfsg/src/xml.c:1407:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(uunit, " unit=\"%s\"", unit);
data/psfex-3.17.1+dfsg/src/xml.c:1413:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(value, format, *((double *)key[i].ptr));
data/psfex-3.17.1+dfsg/src/xml.c:1422:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value, format, ((double *)key[i].ptr)[0]);
data/psfex-3.17.1+dfsg/src/xml.c:1428:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(value, format, ((double *)key[i].ptr)[j]);
data/psfex-3.17.1+dfsg/src/xml.c:1439:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(value, format, *((int *)key[i].ptr));
data/psfex-3.17.1+dfsg/src/xml.c:1448:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value, format, ((int *)key[i].ptr)[0]);
data/psfex-3.17.1+dfsg/src/xml.c:1454:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(value, format, ((int *)key[i].ptr)[j]);
data/psfex-3.17.1+dfsg/src/xml.c:1491:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(value, "%s", (char *)key[i].ptr);
data/psfex-3.17.1+dfsg/src/xml.c:1500:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(value, "%s", ((char **)key[i].ptr)[0]);
data/psfex-3.17.1+dfsg/src/xml.c:1506:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(value, "%s", ((char **)key[i].ptr)[j]);
data/psfex-3.17.1+dfsg/src/xml.c:1517:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(value, "%s", key[i].keylist[*((int *)key[i].ptr)]);
data/psfex-3.17.1+dfsg/src/xml.c:1526:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(value, "%s", key[i].keylist[((int *)key[i].ptr)[0]]);
data/psfex-3.17.1+dfsg/src/xml.c:1532:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(value, "%s", key[i].keylist[((int *)key[i].ptr)[j]]);
data/psfex-3.17.1+dfsg/src/levmar/expfit.c:50:27:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define INIT_RANDOM(seed) srandom(seed)
data/psfex-3.17.1+dfsg/src/levmar/expfit.c:52:27:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define INIT_RANDOM(seed) srandom((int)GETPID()) // seed unused
data/psfex-3.17.1+dfsg/src/levmar/expfit.c:60:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  r1=((double)random())/DBL_RAND_MAX;
data/psfex-3.17.1+dfsg/src/levmar/expfit.c:61:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  r2=((double)random())/DBL_RAND_MAX;
data/psfex-3.17.1+dfsg/src/prefs.c:178: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/psfex-3.17.1+dfsg/src/xml.c:243: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/psfex-3.17.1+dfsg/src/xml.c:244: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/psfex-3.17.1+dfsg/src/xml.c:245: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/psfex-3.17.1+dfsg/src/xml.c:246: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/psfex-3.17.1+dfsg/src/catout.c:76: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/psfex-3.17.1+dfsg/src/catout.c:111: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/psfex-3.17.1+dfsg/src/catout.c:159:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(asctab->headbuf, imtabtemplate, sizeof(imtabtemplate));
data/psfex-3.17.1+dfsg/src/catout.c:302: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/psfex-3.17.1+dfsg/src/catout.c:324: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/psfex-3.17.1+dfsg/src/catout.c:325: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/psfex-3.17.1+dfsg/src/catout.c:326: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/psfex-3.17.1+dfsg/src/catout.c:327: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/psfex-3.17.1+dfsg/src/catout.c:328: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/psfex-3.17.1+dfsg/src/check.c:76: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			filename[MAXCHAR], str[82],
data/psfex-3.17.1+dfsg/src/check.c:111: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, "chip%02d", ext+1);
data/psfex-3.17.1+dfsg/src/check.c:369: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(pix, sample->vigresi, npix*sizeof(float));
data/psfex-3.17.1+dfsg/src/check.c:494: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(pix, sample->vig, npix*sizeof(float));
data/psfex-3.17.1+dfsg/src/check.c:847: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.
       char	listfilename[MAXCHARL], str[MAXCHARL], str2[80],
data/psfex-3.17.1+dfsg/src/check.c:859:24:  [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 (!(listfile = fopen(listfilename, "r")))
data/psfex-3.17.1+dfsg/src/check.c:904: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(str2, "Reading input list... (%d objects)", i);
data/psfex-3.17.1+dfsg/src/check.c:1187: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/psfex-3.17.1+dfsg/src/cplot.c:74:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	plotfilename[MAXCHAR];
data/psfex-3.17.1+dfsg/src/cplot.c:117: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/psfex-3.17.1+dfsg/src/cplot.c:188: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/psfex-3.17.1+dfsg/src/cplot.c:197: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/psfex-3.17.1+dfsg/src/cplot.c:269: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/psfex-3.17.1+dfsg/src/cplot.c:271: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/psfex-3.17.1+dfsg/src/cplot.c:273: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/psfex-3.17.1+dfsg/src/cplot.c:275: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/psfex-3.17.1+dfsg/src/cplot.c:310: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/psfex-3.17.1+dfsg/src/cplot.c:312: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/psfex-3.17.1+dfsg/src/cplot.c:314: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/psfex-3.17.1+dfsg/src/cplot.c:316: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/psfex-3.17.1+dfsg/src/cplot.c:414: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/psfex-3.17.1+dfsg/src/cplot.c:677: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/psfex-3.17.1+dfsg/src/cplot.c:716: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, "#uField %.24s: FWHM map", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:909: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/psfex-3.17.1+dfsg/src/cplot.c:948: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, "#uField %.24s: ellipticity map", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:1082: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, "(a-b)/(a+b)");
data/psfex-3.17.1+dfsg/src/cplot.c:1127: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/psfex-3.17.1+dfsg/src/cplot.c:1166: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, "#uField %.24s: map of Moffat fit residuals", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:1346: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/psfex-3.17.1+dfsg/src/cplot.c:1385: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, "#uField %.24s: PSF asymmetry map", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:1559: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/psfex-3.17.1+dfsg/src/cplot.c:1599: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, "#uField %.24s: source count map", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:1718: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/psfex-3.17.1+dfsg/src/cplot.c:1758: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, "#uField %.24s: source count fraction map", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:1877: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/psfex-3.17.1+dfsg/src/cplot.c:1918: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, "#uField %.24s: #gx#u2#d/d.o.f. map", field->rtcatname);
data/psfex-3.17.1+dfsg/src/cplot.c:2036: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/psfex-3.17.1+dfsg/src/cplot.c:2077: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, "#uField %.24s: map of residuals", field->rtcatname);
data/psfex-3.17.1+dfsg/src/define.h:97:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					 atoi(strncpy(st, &point[10], 70)) \
data/psfex-3.17.1+dfsg/src/define.h:170: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/psfex-3.17.1+dfsg/src/diagnostic.c:461: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(dpos, pthread_dpos, pthread_npc*sizeof(double));
data/psfex-3.17.1+dfsg/src/field.c:117: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(imatab->headbuf, key->ptr, key->nbytes);
data/psfex-3.17.1+dfsg/src/field.c:124:9:  [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/psfex-3.17.1+dfsg/src/field.c:391: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		*head,
data/psfex-3.17.1+dfsg/src/field.c:419: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, "POLGRP%1d", i+1);
data/psfex-3.17.1+dfsg/src/field.c:423: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, "POLNAME%1d", i+1);
data/psfex-3.17.1+dfsg/src/field.c:426: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, "POLZERO%1d", i+1);
data/psfex-3.17.1+dfsg/src/field.c:429: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, "POLSCAL%1d", i+1);
data/psfex-3.17.1+dfsg/src/field.c:438: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, "POLDEG%1d", i+1);
data/psfex-3.17.1+dfsg/src/field.c:454: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, "PSFAXIS%1d", i+1);
data/psfex-3.17.1+dfsg/src/field.c:465: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(key->comment, "Tabulated PSF data");
data/psfex-3.17.1+dfsg/src/field.c:482:7:  [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(key->comment, "PSF basis vector coefficients");
data/psfex-3.17.1+dfsg/src/field.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		catname[MAXCHAR];	/* Input catalog filename */
data/psfex-3.17.1+dfsg/src/field.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		rtcatname[MAXCHAR];	/* "Reduced", no trail catalog name */
data/psfex-3.17.1+dfsg/src/field.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		ident[MAXCHAR];		/* Field identifier (read from FITS) */
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:122: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:223: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:564: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:571: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:611: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:744: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:751: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/psfex-3.17.1+dfsg/src/fits/fitsbody.c:791: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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitscat_defs.h:89:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char		gstr[MAXCHAR];
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitscheck.c:227:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf, (char *)tab->bodybuf+tab->tabsize-size, size);
data/psfex-3.17.1+dfsg/src/fits/fitscheck.c:269:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char		str[32],
data/psfex-3.17.1+dfsg/src/fits/fitscheck.c:289:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(str, "%u", sum);
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitshead.c:136:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(key,"NAXIS%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:189:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tab->bodysum = (unsigned int)atoi(str);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:210:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char		strf[88], strk[16];
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:248:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(strk, "TTYPE%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:256:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(strk, "TUNIT%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:258:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(strk, "TDISP%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:263:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(strk, "TFORM%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:293:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(strk, "TDIM%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:340:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char		strk[88], str[88];
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:362:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(strk, "NAXIS%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:410:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(strk, "TTYPE%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:413:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(strk, "TFORM%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:421:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(strk, "TDIM%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:436:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(strk, "TUNIT%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:442:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(strk, "TDISP%-3d", i+1);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:457:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "%u", tab->bodysum);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:662:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(str, "%d%c", n, t);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:747:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char		control[4];
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:761:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "%%%dc",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:764:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "%%%dd",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:768:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%d.%dd",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:770:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%dd",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:774:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%d.%dx",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:776:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%dx",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:780:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%d.%do",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:782:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%do",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:786:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%d.%df",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:788:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%df",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:792:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%d.%dE",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:794:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%dE",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:798:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%d.%dG",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:800:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%%%dG",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:847:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "A%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:850:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "A%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:854:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "I%d.%d",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:856:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "I%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:860:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "O%d.%d",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:862:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "O%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:866:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "Z%d.%d",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:868:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "Z%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:872:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "F%d.%d",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:874:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "F%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:878:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "E%d.%d",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:880:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "E%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:884:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "G%d.%d",w,d);
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:886:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "G%d",w);
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:606:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char    oldname[80];         /* Name of the original pipeline key */
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:607:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char    newname[80];         /* Name of the skycat required key   */
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:665:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          key_col[i] = atoi(++t);
data/psfex-3.17.1+dfsg/src/fits/fitskey.c:814:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          ptr = memcpy(rfield, buf+key->pos, key->nbytes);
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitswrite.c:256:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char  padbuf[FBSIZE];
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fitswcs.c:465:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          dpar[l] = atoi(pstr);
data/psfex-3.17.1+dfsg/src/fitswcs.c:543: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/psfex-3.17.1+dfsg/src/fitswcs.c:546: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/psfex-3.17.1+dfsg/src/fitswcs.c:550: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/psfex-3.17.1+dfsg/src/fitswcs.c:553: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/psfex-3.17.1+dfsg/src/fitswcs.c:591: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/psfex-3.17.1+dfsg/src/fitswcs.c:599: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/psfex-3.17.1+dfsg/src/fitswcs.c:635: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/psfex-3.17.1+dfsg/src/fitswcs.c:645: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/psfex-3.17.1+dfsg/src/fitswcs.c:680: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/psfex-3.17.1+dfsg/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, "CUNIT%-3d", l+1);
data/psfex-3.17.1+dfsg/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, "CRVAL%-3d", l+1);
data/psfex-3.17.1+dfsg/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, "CRPIX%-3d", l+1);
data/psfex-3.17.1+dfsg/src/fitswcs.c:694: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/psfex-3.17.1+dfsg/src/fitswcs.c:701: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/psfex-3.17.1+dfsg/src/fitswcs.c:801: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/psfex-3.17.1+dfsg/src/fitswcs.c:1231: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/psfex-3.17.1+dfsg/src/fitswcs.c:2099: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/psfex-3.17.1+dfsg/src/fitswcs.c:2126: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/psfex-3.17.1+dfsg/src/fitswcs.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		ctype[NAXIS][9];	/* FITS CTYPE strings */
data/psfex-3.17.1+dfsg/src/fitswcs.h:72: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/psfex-3.17.1+dfsg/src/globals.h:40: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/psfex-3.17.1+dfsg/src/homo.c:300: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/psfex-3.17.1+dfsg/src/homo.c:321: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, "POLGRP%1d", i+1);
data/psfex-3.17.1+dfsg/src/homo.c:325: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, "POLNAME%1d", i+1);
data/psfex-3.17.1+dfsg/src/homo.c:328: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, "POLZERO%1d", i+1);
data/psfex-3.17.1+dfsg/src/homo.c:331: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, "POLSCAL%1d", i+1);
data/psfex-3.17.1+dfsg/src/homo.c:340: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, "POLDEG%1d", i+1);
data/psfex-3.17.1+dfsg/src/key.h:39:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		name[32];
data/psfex-3.17.1+dfsg/src/key.h:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		keylist[32][32];	/* List of keywords */
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:232: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(r, a, r_sz*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:524: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, A, a_sz*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:525: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(x, B, m*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:711: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(a, A, a_sz*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:712: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(x, B, m*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1090: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, A, a_sz*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1091: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(x, B, m*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1231: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, A, a_sz*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/Axb_core.c:1232: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(x, B, m*sizeof(LM_REAL));
data/psfex-3.17.1+dfsg/src/levmar/matlab/levmar.c:72:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char  buf[256];
data/psfex-3.17.1+dfsg/src/levmar/matlab/levmar.c:85:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char  buf[256];
data/psfex-3.17.1+dfsg/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, "default.psfex");
data/psfex-3.17.1+dfsg/src/makeit.c:80: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/psfex-3.17.1+dfsg/src/makeit.c:97:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(prefs.sdate_start,"%04d-%02d-%02d",
data/psfex-3.17.1+dfsg/src/makeit.c:99:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(prefs.stime_start,"%02d:%02d:%02d",
data/psfex-3.17.1+dfsg/src/makeit.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(prefs.sdate_end,"%04d-%02d-%02d",
data/psfex-3.17.1+dfsg/src/makeit.c:121: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/psfex-3.17.1+dfsg/src/makeit.c:364: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, "Computing final PSF model for extension [%d/%d]...",
data/psfex-3.17.1+dfsg/src/makeit.c:475: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/%d]", ext+1, next);
data/psfex-3.17.1+dfsg/src/makeit.c:493: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, "Saving CHECK-image #%d...", i+1);
data/psfex-3.17.1+dfsg/src/makeit.c:585:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(prefs.sdate_end,"%04d-%02d-%02d",
data/psfex-3.17.1+dfsg/src/makeit.c:587:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(prefs.stime_end,"%02d:%02d:%02d",
data/psfex-3.17.1+dfsg/src/makeit.c:713:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char	error[MAXCHAR];
data/psfex-3.17.1+dfsg/src/pca.c:60: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/psfex-3.17.1+dfsg/src/pca.c:91: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, "Setting-up the PCA covariance matrix (%.0f%%)...",
data/psfex-3.17.1+dfsg/src/pca.c:115: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 Principal Component vector #%d...", p);
data/psfex-3.17.1+dfsg/src/pca.c:142: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/psfex-3.17.1+dfsg/src/pca.c:166: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, "Setting-up the PCA covariance matrix (%.0f%%)...",
data/psfex-3.17.1+dfsg/src/pca.c:210:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str, "Setting-up the PCA covariance matrix (%.0f%%)...",
data/psfex-3.17.1+dfsg/src/pca.c:231: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 Principal Component vector #%d...", p);
data/psfex-3.17.1+dfsg/src/preflist.h:149: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/psfex-3.17.1+dfsg/src/prefs.c:90: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], errstr[MAXCHAR],
data/psfex-3.17.1+dfsg/src/prefs.c:95: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/psfex-3.17.1+dfsg/src/prefs.c:100: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/psfex-3.17.1+dfsg/src/prefs.c:228: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/psfex-3.17.1+dfsg/src/prefs.c:351: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/psfex-3.17.1+dfsg/src/prefs.c:352: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/psfex-3.17.1+dfsg/src/prefs.c:353: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/psfex-3.17.1+dfsg/src/prefs.c:441: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/psfex-3.17.1+dfsg/src/prefs.c:445: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/psfex-3.17.1+dfsg/src/prefs.c:478: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/psfex-3.17.1+dfsg/src/prefs.c:522: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/psfex-3.17.1+dfsg/src/prefs.h:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		prefs_name[MAXCHAR];		/* prefs filename */
data/psfex-3.17.1+dfsg/src/prefs.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		*(incat_name[MAXFILE]);		/* Filename(s) of input cats */
data/psfex-3.17.1+dfsg/src/prefs.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		psf_dir[MAXCHAR];		/* PSF output dir */
data/psfex-3.17.1+dfsg/src/prefs.h:70:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		psf_suffix[MAXCHAR];		/* Suffix for PSF filenames */
data/psfex-3.17.1+dfsg/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		photflux_key[MAXCHAR];		/* Name of phot. flux key */
data/psfex-3.17.1+dfsg/src/prefs.h:92: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[MAXCHAR];		/* Reduced phot. flux key */
data/psfex-3.17.1+dfsg/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		photfluxerr_key[MAXCHAR];	/* Name of phot. flux err. key*/
data/psfex-3.17.1+dfsg/src/prefs.h:94: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[MAXCHAR];	/* Reduced phot. flux err. key*/
data/psfex-3.17.1+dfsg/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		basis_name[MAXCHAR];		/* PSF vector basis filename */
data/psfex-3.17.1+dfsg/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		*(center_key[2]);		/* Names of centering keys */
data/psfex-3.17.1+dfsg/src/prefs.h:108: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/psfex-3.17.1+dfsg/src/prefs.h:113: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/psfex-3.17.1+dfsg/src/prefs.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		homokernel_dir[MAXCHAR];	/* Homo. kernel output dir */
data/psfex-3.17.1+dfsg/src/prefs.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		homokernel_suffix[MAXCHAR];	/* Homo. kernel file suffix */
data/psfex-3.17.1+dfsg/src/prefs.h:136: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		outcat_name[MAXCHAR];		/* Output filename */
data/psfex-3.17.1+dfsg/src/prefs.h:144: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/psfex-3.17.1+dfsg/src/prefs.h:155: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/psfex-3.17.1+dfsg/src/prefs.h:156: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/psfex-3.17.1+dfsg/src/prefs.h:157: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];		/* PSFEx start date */
data/psfex-3.17.1+dfsg/src/prefs.h:158: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];		/* PSFEx start time */
data/psfex-3.17.1+dfsg/src/prefs.h:159: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];			/* PSFEx end date */
data/psfex-3.17.1+dfsg/src/prefs.h:160: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];			/* PSFEx end time */
data/psfex-3.17.1+dfsg/src/psf.c:249: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	str[MAXCHAR];
data/psfex-3.17.1+dfsg/src/psf.c:911: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/psfex-3.17.1+dfsg/src/psf.c:965: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, "Processing sample #%d", n+1);
data/psfex-3.17.1+dfsg/src/psf.c:1377: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[128];
data/psfex-3.17.1+dfsg/src/psf.c:1429: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, "Generating basis vector #%d/%d", k++, kmax);
data/psfex-3.17.1+dfsg/src/sample.c:75: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/psfex-3.17.1+dfsg/src/sample.c:120: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,"Examining Catalog #%d", i+1);
data/psfex-3.17.1+dfsg/src/sample.c:278: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 samples loaded.", set->nsample);
data/psfex-3.17.1+dfsg/src/sample.c:402: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		str[MAXCHAR], str2[MAXCHAR];
data/psfex-3.17.1+dfsg/src/sample.c:403: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			rkeyname[MAXCHAR],
data/psfex-3.17.1+dfsg/src/sample.c:482: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(set->head, head, (n+1)*80);
data/psfex-3.17.1+dfsg/src/sample.c:542:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  n = (pstr = strtok(NULL,"([{}])"))? atoi(pstr) - 1 : 0;
data/psfex-3.17.1+dfsg/src/sample.c:564: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*: SNR_WIN parameter not found in catalogue ");
data/psfex-3.17.1+dfsg/src/sample.c:636:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      n= (pstr = strtok(NULL,"([{}])"))? atoi(pstr) - 1 : -1;
data/psfex-3.17.1+dfsg/src/sample.c:658: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(str2, "[%d/%d]", ext+1, next);
data/psfex-3.17.1+dfsg/src/sample.c:755: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(sample->vig, vignet, vigsize*sizeof(float));
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/xml.c:131:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(file = fopen(prefs.xml_name, "w")))
data/psfex-3.17.1+dfsg/src/xml.c:157: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		sysname[16];
data/psfex-3.17.1+dfsg/src/xml.c:172: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(sysname, "ICRS");
data/psfex-3.17.1+dfsg/src/xml.c:222: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/psfex-3.17.1+dfsg/src/xml.c:233: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/psfex-3.17.1+dfsg/src/xml.c:235: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/psfex-3.17.1+dfsg/src/xml.c:791: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, ".png");
data/psfex-3.17.1+dfsg/src/xml.c:1366: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/psfex-3.17.1+dfsg/src/xml.c:1399: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/psfex-3.17.1+dfsg/src/xml.c:1465: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/psfex-3.17.1+dfsg/src/xml.c:1474: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/psfex-3.17.1+dfsg/src/xml.c:1480: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/psfex-3.17.1+dfsg/src/xml.c:1491:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      sprintf(value, "%s", (char *)key[i].ptr);
data/psfex-3.17.1+dfsg/src/xml.c:1500:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        sprintf(value, "%s", ((char **)key[i].ptr)[0]);
data/psfex-3.17.1+dfsg/src/xml.c:1506: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.
          sprintf(value, "%s", ((char **)key[i].ptr)[j]);
data/psfex-3.17.1+dfsg/src/catout.c:320: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/psfex-3.17.1+dfsg/src/check.c:92:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pstr = cat->filename+strlen(cat->filename);
data/psfex-3.17.1+dfsg/src/check.c:95:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pstr2 = filename+strlen(filename);
data/psfex-3.17.1+dfsg/src/check.c:857: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 = listfilename+strlen(listfilename);
data/psfex-3.17.1+dfsg/src/context.c:90:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(context->name[d2], names[d], 80);
data/psfex-3.17.1+dfsg/src/cplot.c:146:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pstr = str+strlen(str);
data/psfex-3.17.1+dfsg/src/cplot.c:697:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:929:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:1147:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:1366:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:1580:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:1739:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:1899:5:  [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/psfex-3.17.1+dfsg/src/cplot.c:2058:5:  [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/psfex-3.17.1+dfsg/src/define.h:94:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					 atof(strncpy(st, &point[10], 70)) \
data/psfex-3.17.1+dfsg/src/define.h:97:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					 atoi(strncpy(st, &point[10], 70)) \
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fits/fitshead.c:423:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(str, "(");
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:431:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(str2, ")");
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:492:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(tab->headbuf, "SIMPLE  =                    T "
data/psfex-3.17.1+dfsg/src/fits/fitshead.c:523:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(tab->headbuf, "XTENSION= 'IMAGE   '           "
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/fitswcs.c:547: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/psfex-3.17.1+dfsg/src/fitswcs.c:554: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/psfex-3.17.1+dfsg/src/main.c:101: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/psfex-3.17.1+dfsg/src/makeit.c:534:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pstr = str+strlen(str);
data/psfex-3.17.1+dfsg/src/makeit.c:560:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          pstr = str+strlen(str);
data/psfex-3.17.1+dfsg/src/prefs.c:174: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/psfex-3.17.1+dfsg/src/prefs.c:454: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/psfex-3.17.1+dfsg/src/prefs.c:627:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((i=strlen(prefs.psf_dir)-1) > 0 && *(pstr=prefs.psf_dir+i) == (char)'/')
data/psfex-3.17.1+dfsg/src/prefs.c:629:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((i=strlen(prefs.homokernel_dir)-1) > 0
data/psfex-3.17.1+dfsg/src/psf.c:461:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(newpsf->contextname[d], psf->contextname[d], 80);
data/psfex-3.17.1+dfsg/src/sample.c:660: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(str2, "");
data/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/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/psfex-3.17.1+dfsg/src/xml.c:790: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);

ANALYSIS SUMMARY:

Hits = 685
Lines analyzed = 43328 in approximately 1.38 seconds (31470 lines/second)
Physical Source Lines of Code (SLOC) = 28196
Hits@level = [0] 406 [1]  50 [2] 334 [3]   9 [4] 292 [5]   0
Hits@level+ = [0+] 1091 [1+] 685 [2+] 635 [3+] 301 [4+] 292 [5+]   0
Hits/KSLOC@level+ = [0+] 38.6934 [1+] 24.2942 [2+] 22.5209 [3+] 10.6753 [4+] 10.3561 [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.