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/tree-puzzle-5.3~rc16+dfsg/src/consensus.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/consensus.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/gamma.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/gamma.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/ml.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/ml1.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/mlparam.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/model1.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/model2.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/pstep-mrca.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/pstep-recur.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/pstep-split.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/pstep-tripl.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/pstep.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/pstep.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/sched.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/sched.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/subsetmatr.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/subsetmatr.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/treesort.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/treetest.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/treetest.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/util.h
Examining data/tree-puzzle-5.3~rc16+dfsg/src/util.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c
Examining data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c

FINAL RESULTS:

data/tree-puzzle-5.3~rc16+dfsg/src/ml1.c:49:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    printf
data/tree-puzzle-5.3~rc16+dfsg/src/ml1.c:52:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    fprintf
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:40:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    printf
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:43:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    fprintf
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:352:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf(ifp, "%s\n\n", dummyversion);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:385:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
     fscanf(ifp, "%s\n", dummyname);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1903: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(name, str);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1945: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(name, str);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1987: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(name, str);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6761: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(INFILE,      INFILEDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6762: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(OUTFILE,     OUTFILEDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6763: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(TREEFILE,    TREEFILEDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6764: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(INTREE,      INTREEDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6765: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(DISTANCES,   DISTANCESDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6766: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(TSTV,        TSTVDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6767: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(EDITDIST,    EDITDISTDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6768: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(SITEFREQS,   SITEFREQSDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6769: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(TRIANGLEEPS, TRIANGLEEPSDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6770: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(TRIANGLESVG, TRIANGLESVGDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6771: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(UNRESOLVED,  UNRESOLVEDDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6772: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(LMAPTAB,     LMAPTABDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6773: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(ALLQUART,    ALLQUARTDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6774: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(ALLQUARTLH,  ALLQUARTLHDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6775: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(SITELH,      SITELHDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6776: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(SITELHB,     SITELHBDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6777: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(SITERATE,    SITERATEDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6778: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(SITERATEB,   SITERATEBDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6779: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(OUTPARAM,    OUTPARAMDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6780: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(SUBSET,      SUBSETDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6781: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(OUTPTLIST,   OUTPTLISTDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6782: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(OUTPTORDER,  OUTPTORDERDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6783: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(OUTPTALL,    OUTPTALLDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6784: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(NEXALL,      NEXALLDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6785: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(NEXPTORDER,  NEXPTORDERDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6786: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(NEXPTSPLITS, NEXPTSPLITSDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6787: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(PTSPLITS,    PTSPLITSDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6788: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(RDSTATS,     RDSTATSDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6789: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(ALIINFO,     ALIINFODEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6790: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(ALIINFONUM,  ALIINFONUMDEFAULT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7038:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      		   sprintf(FILEPREFIX, "%s", INTREE);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7041:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      		   sprintf(FILEPREFIX, "%s", INFILE);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7048:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(OUTFILE       ,"%s.%s", FILEPREFIX, OUTFILEEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7049:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(TREEFILE      ,"%s.%s", FILEPREFIX, TREEFILEEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7050:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(DISTANCES     ,"%s.%s", FILEPREFIX, DISTANCESEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7051:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(TSTV          ,"%s.%s", FILEPREFIX, TSTVEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7052:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(EDITDIST      ,"%s.%s", FILEPREFIX, EDITDISTEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7053:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SITEFREQS     ,"%s.%s", FILEPREFIX, SITEFREQSEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7054:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(TRIANGLEEPS   ,"%s.%s", FILEPREFIX, TRIANGLEEPSEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7055:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(TRIANGLESVG   ,"%s.%s", FILEPREFIX, TRIANGLESVGEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7056:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(UNRESOLVED    ,"%s.%s", FILEPREFIX, UNRESOLVEDEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7057:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(LMAPTAB       ,"%s.%s", FILEPREFIX, LMAPTABEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7058:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ALLQUART      ,"%s.%s", FILEPREFIX, ALLQUARTEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7059:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ALLQUARTLH    ,"%s.%s", FILEPREFIX, ALLQUARTLHEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7060:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SITELH        ,"%s.%s", FILEPREFIX, SITELHEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7061:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SITELHB       ,"%s.%s", FILEPREFIX, SITELHBEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7062:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SITERATE      ,"%s.%s", FILEPREFIX, SITERATEEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7063:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SITERATEB     ,"%s.%s", FILEPREFIX, SITERATEBEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7064:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(OUTPARAM      ,"%s.%s", FILEPREFIX, OUTPARAMEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7065:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SUBSET        ,"%s.%s", FILEPREFIX, SUBSETEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7066:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(OUTPTLIST     ,"%s.%s", FILEPREFIX, OUTPTLISTEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7067:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(OUTPTORDER    ,"%s.%s", FILEPREFIX, OUTPTORDEREXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7068:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(OUTPTALL      ,"%s.%s", FILEPREFIX, OUTPTALLEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7069:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(PTSPLITS      ,"%s.%s", FILEPREFIX, PTSPLITSEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7070:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(RDSTATS       ,"%s.%s", FILEPREFIX, RDSTATSEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7071:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(SPLITOCCUR    ,"%s.%s", FILEPREFIX, SPLITOCCUREXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7072:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ALIINFO       ,"%s.%s", FILEPREFIX, ALIINFOEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7073:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(ALIINFONUM    ,"%s.%s", FILEPREFIX, ALIINFONUMEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7075:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   	sprintf(NEXALL        ,"%s.%s", FILEPREFIX, NEXALLEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7076:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   	sprintf(NEXPTORDER    ,"%s.%s", FILEPREFIX, NEXALLEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7077:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   	sprintf(NEXPTSPLITS   ,"%s.%s", FILEPREFIX, NEXALLEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7079:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   	sprintf(NEXALL     ,"%s.%s", FILEPREFIX, NEXALLEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7080:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   	sprintf(NEXPTORDER ,"%s.%s", FILEPREFIX, NEXPTORDEREXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7081:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   	sprintf(NEXPTSPLITS,"%s.%s", FILEPREFIX, NEXPTSPLITSEXT);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7134:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		count = fscanf(stdin, "%s", argstr[n]);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7176:14:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					count = fscanf(stdin, "%s", argstr[n]);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7903: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(INFILE, (*argv)[n]);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7906:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(FILEPREFIX, INFILE);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7926:16:  [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(INTREE, (*argv)[n]);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7929:20:  [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(FILEPREFIX, INTREE);
data/tree-puzzle-5.3~rc16+dfsg/src/sched.c:34:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    printf
data/tree-puzzle-5.3~rc16+dfsg/src/sched.c:37:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    fprintf
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:67:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    printf
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:70:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#       define FPRINTF    fprintf
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:3207:6:  [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 (getenv("SOURCE_DATE_EPOCH") == NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:3831:6:  [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 (getenv("SOURCE_DATE_EPOCH") != NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:8933:6:  [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 (getenv("SOURCE_DATE_EPOCH") == NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:586:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand((unsigned) time(NULL));
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:623:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand((unsigned) time(NULL));
data/tree-puzzle-5.3~rc16+dfsg/src/consensus.c:1164:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4];
data/tree-puzzle-5.3~rc16+dfsg/src/consensus.c:1194:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%d", consconfid[node]);
data/tree-puzzle-5.3~rc16+dfsg/src/ml1.c:1217:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpname[20];
data/tree-puzzle-5.3~rc16+dfsg/src/ml1.c:1225: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(tmpname, "tr%-7d  ", t+1);
data/tree-puzzle-5.3~rc16+dfsg/src/ml1.c:1231:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tmpname, "ctr%-7d ", t+1);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:289:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char   ident[100];
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:290:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char   idcomp[11];
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1698:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[11]; 
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1702:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(name, "%drates", numcats);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1705:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(name, "1inv+%d", numcats);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1708:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(name, "1inv+1var");
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1711:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(name, "uniform");
data/tree-puzzle-5.3~rc16+dfsg/src/mlparam.c:434:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
				tmpfp = tmpfile();
data/tree-puzzle-5.3~rc16+dfsg/src/mlparam.c:469:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			tmpfp = tmpfile();
data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c:159:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  errstr[MPI_MAX_ERROR_STRING];
data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c:612:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char treebits[3];
data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c:613:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char discreteweight[3];
data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c:2311: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 ma[7] = "master";
data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c:2312: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 sl[7] = "slave ";
data/tree-puzzle-5.3~rc16+dfsg/src/ppuzzle.c:2314: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 PP_ProcName[MPI_MAX_PROCESSOR_NAME] = "empty";
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:133: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 infilename         [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:134: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 outfilename        [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:135: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 outtreename        [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:136: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 intreename         [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:137: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 outdistname        [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:138: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 outtstvname        [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:139: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 outeditdistname    [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:140: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 outsitefreqsname   [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:141: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 outlmepsname       [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:142: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 outlmsvgname       [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:143: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 outqlistname       [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:144: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 outlmaptabname     [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:145: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 outallquartname    [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:146: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 outallquartlhname  [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:147: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 outsitelhname      [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:148: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 outsitelhbname     [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:149: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 outsiteratename    [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:150: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 outsiteratebname   [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:151: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 outparamname       [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:152: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 insubsetmatrname   [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:153: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 outpstepname       [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:154: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 outptordername     [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:155: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 outptallname       [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:156: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 nexallname         [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:157: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 nexptordername     [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:158: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 nexptsplitsname    [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:159: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 ptsplitsfilename   [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:160: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 rdstatsfilename    [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:161: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 splitoccurfilename [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:162: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 aliinfofilename    [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:163: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 aliinfonumfilename [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:165: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 fileprefixname     [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:166: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 paramfilename      [FILENAMELENGTH];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:334: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           dummyversion[128];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:335: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           dummyname[128];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1874:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*fp = fopen(name, "r")) == NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1880: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).
		while ((*fp = fopen(str, "r")) == NULL)
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1917:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*fp = fopen(name, "w")) == NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1922: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).
		while ((*fp = fopen(str, "w")) == NULL)
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1959:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*fp = fopen(name, "a")) == NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1964: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).
		while ((*fp = fopen(str, "a")) == NULL)
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:3523:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char discreteweight[3], treebits[3];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:5692: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 *jtype [7];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:6347:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		tmpfp = tmpfile();
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:8055:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((utfp = fopen(INTREE, "r")) != NULL) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:8553:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	tmpfp = tmpfile();
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c:1669:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char treebits[3];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c:1674:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char discreteweight[3];
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c:1765:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char treebits[3];
data/tree-puzzle-5.3~rc16+dfsg/src/sched.c:351:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  chunksize = atoi(argv[3]);
data/tree-puzzle-5.3~rc16+dfsg/src/sched.c:353:25:  [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 = numquarts(atoi(argv[1]));
data/tree-puzzle-5.3~rc16+dfsg/src/sched.c:354:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          p = atoi(argv[2]);
data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c:375:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                *len+=sprintf(&(str[*len]), "%d", ctree[ct_sortkeyaddr(edge)] + 1);  /* changed to have taxon IDs 1..n for NEXUS output */
data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c:410: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.
	len+=sprintf (&(tmpptr[len]), "(%d,", ctree[ct_sortkeyaddr(startnode*4)] + 1);  /* changed to have taxon IDs 1..n for NEXUS output */
data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c:413: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.
	len+=sprintf (&(tmpptr[len]), ");");
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:72:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  *ch = fgetc(itfp); 
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:85:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *ch = fgetc(itfp); 
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:152:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		*ci = fgetc(itfp);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:159:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			*ci = fgetc(itfp);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:183:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ci = fgetc(itfp);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:199:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ci = fgetc(itfp);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:214:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					ci = fgetc(itfp);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:229:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					ci = fgetc(itfp);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1345: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).
					n += strlen(cp->kinp->label);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1810: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).
						numtc += strlen(cp->kinp->label);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1862:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		numtc += strlen(rootbr->label);
data/tree-puzzle-5.3~rc16+dfsg/src/ml2.c:1878:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		numtc += strlen(rootbr->kinp->label);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle.h:785:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *sprintfctree(int *ctree, int strlen);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:83:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (getchar() != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:852:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getc(param_in);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:856:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:885:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:945:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:966:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:986:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1091:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1124:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
										ch = getc(param_in);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1128:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
										while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1319:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1354:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1370:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1388:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1681:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1714:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1740:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1754:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						do ; while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1765:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						do ; while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1776:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						do ; while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1787:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						do ; while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1798:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						do ; while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:1809:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						do ; while (getc(param_in) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7097: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).
	len = strlen(inargv);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7120:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = getc(stdin);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7124:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (getc(stdin) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7136:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (getc(stdin) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7141: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(argstr[n]) > 100) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7160:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = getc(stdin);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7164:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while (getc(stdin) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7178:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					while (getc(stdin) != '\n');
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7183: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(argstr[n]) > 100) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7237:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (n = strlen((*argv)[0]) - 5; 
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7892:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen((*argv)[n]) >= FILENAMELENGTH) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:7915:20:  [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)[n]) >= FILENAMELENGTH) {
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:8107:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ci = fgetc(utfp);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle1.c:8511:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ci = fgetc(utfp);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c:77:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ci = fgetc(infp);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c:149:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ci = fgetc(ifp);
data/tree-puzzle-5.3~rc16+dfsg/src/puzzle2.c:174:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ci = fgetc(ifp);
data/tree-puzzle-5.3~rc16+dfsg/src/subsetmatr.c:207:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ('\n' != getc(fp));
data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c:383:2:  [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[*len]), "(");
data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c:386:2:  [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[*len]), ",");
data/tree-puzzle-5.3~rc16+dfsg/src/treesort.c:389:2:  [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[*len]), ")");
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:764:6:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getchar();
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:770:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getchar();
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:801:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(infp);
data/tree-puzzle-5.3~rc16+dfsg/src/util.c:808:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getc(infp);

ANALYSIS SUMMARY:

Hits = 224
Lines analyzed = 34576 in approximately 1.19 seconds (29143 lines/second)
Physical Source Lines of Code (SLOC) = 25404
Hits@level = [0] 2678 [1]  61 [2]  75 [3]   5 [4]  83 [5]   0
Hits@level+ = [0+] 2902 [1+] 224 [2+] 163 [3+]  88 [4+]  83 [5+]   0
Hits/KSLOC@level+ = [0+] 114.234 [1+] 8.81751 [2+] 6.41631 [3+] 3.46402 [4+] 3.2672 [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.