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/phylip-3.697+dfsg/src/clique.c
Examining data/phylip-3.697+dfsg/src/cons.c
Examining data/phylip-3.697+dfsg/src/cons.h
Examining data/phylip-3.697+dfsg/src/consense.c
Examining data/phylip-3.697+dfsg/src/cont.c
Examining data/phylip-3.697+dfsg/src/cont.h
Examining data/phylip-3.697+dfsg/src/contml.c
Examining data/phylip-3.697+dfsg/src/contrast.c
Examining data/phylip-3.697+dfsg/src/disc.c
Examining data/phylip-3.697+dfsg/src/disc.h
Examining data/phylip-3.697+dfsg/src/discrete.c
Examining data/phylip-3.697+dfsg/src/discrete.h
Examining data/phylip-3.697+dfsg/src/dist.c
Examining data/phylip-3.697+dfsg/src/dist.h
Examining data/phylip-3.697+dfsg/src/dnacomp.c
Examining data/phylip-3.697+dfsg/src/dnadist.c
Examining data/phylip-3.697+dfsg/src/dnainvar.c
Examining data/phylip-3.697+dfsg/src/dnaml.c
Examining data/phylip-3.697+dfsg/src/dnamlk.c
Examining data/phylip-3.697+dfsg/src/dnamove.c
Examining data/phylip-3.697+dfsg/src/dnapars.c
Examining data/phylip-3.697+dfsg/src/dnapenny.c
Examining data/phylip-3.697+dfsg/src/dollo.c
Examining data/phylip-3.697+dfsg/src/dollo.h
Examining data/phylip-3.697+dfsg/src/dollop.c
Examining data/phylip-3.697+dfsg/src/dolmove.c
Examining data/phylip-3.697+dfsg/src/dolpenny.c
Examining data/phylip-3.697+dfsg/src/draw.c
Examining data/phylip-3.697+dfsg/src/draw.h
Examining data/phylip-3.697+dfsg/src/draw2.c
Examining data/phylip-3.697+dfsg/src/drawgram.c
Examining data/phylip-3.697+dfsg/src/drawtree.c
Examining data/phylip-3.697+dfsg/src/factor.c
Examining data/phylip-3.697+dfsg/src/fitch.c
Examining data/phylip-3.697+dfsg/src/gendist.c
Examining data/phylip-3.697+dfsg/src/io.h
Examining data/phylip-3.697+dfsg/src/kitsch.c
Examining data/phylip-3.697+dfsg/src/mix.c
Examining data/phylip-3.697+dfsg/src/mlclock.c
Examining data/phylip-3.697+dfsg/src/mlclock.h
Examining data/phylip-3.697+dfsg/src/move.c
Examining data/phylip-3.697+dfsg/src/moves.c
Examining data/phylip-3.697+dfsg/src/moves.h
Examining data/phylip-3.697+dfsg/src/neighbor.c
Examining data/phylip-3.697+dfsg/src/pars.c
Examining data/phylip-3.697+dfsg/src/penny.c
Examining data/phylip-3.697+dfsg/src/phylip.c
Examining data/phylip-3.697+dfsg/src/printree.c
Examining data/phylip-3.697+dfsg/src/printree.h
Examining data/phylip-3.697+dfsg/src/proml.c
Examining data/phylip-3.697+dfsg/src/promlk.c
Examining data/phylip-3.697+dfsg/src/protdist.c
Examining data/phylip-3.697+dfsg/src/protpars.c
Examining data/phylip-3.697+dfsg/src/restdist.c
Examining data/phylip-3.697+dfsg/src/restml.c
Examining data/phylip-3.697+dfsg/src/retree.c
Examining data/phylip-3.697+dfsg/src/seq.c
Examining data/phylip-3.697+dfsg/src/seq.h
Examining data/phylip-3.697+dfsg/src/seqboot.c
Examining data/phylip-3.697+dfsg/src/treedist.c
Examining data/phylip-3.697+dfsg/src/wagner.c
Examining data/phylip-3.697+dfsg/src/wagner.h
Examining data/phylip-3.697+dfsg/src/phylip.h

FINAL RESULTS:

data/phylip-3.697+dfsg/src/cons.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(hp->naym, addname);
data/phylip-3.697+dfsg/src/dnamove.c:1342:3:  [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.
  printf((ansi || ibmpc) ? "\033[2J\033[H" : "\n");
data/phylip-3.697+dfsg/src/dnamove.c:2331: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(infilename,INFILE);
data/phylip-3.697+dfsg/src/dnamove.c:2332: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(intreename,INTREE);
data/phylip-3.697+dfsg/src/dnamove.c:2333: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(outtreename,OUTTREE);
data/phylip-3.697+dfsg/src/dolmove.c:1572: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(infilename,INFILE);
data/phylip-3.697+dfsg/src/dolmove.c:1573: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(outtreename,OUTTREE);
data/phylip-3.697+dfsg/src/dolmove.c:1574: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(intreename,INTREE);
data/phylip-3.697+dfsg/src/draw.c:446: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
data/phylip-3.697+dfsg/src/draw.c:2495:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  scanned=sscanf(line,"%s %s",word1,word2);
data/phylip-3.697+dfsg/src/draw.c:2500:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(line,"%*s %s %*s %*s %s",word1,word2);
data/phylip-3.697+dfsg/src/draw.c:2564:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(afmfile,"%s.afm",fontname);    /* search current dir */
data/phylip-3.697+dfsg/src/draw.c:2569:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(afmfile,"%s%s.afm",AFMDIR,fontname); /* search afm dir */
data/phylip-3.697+dfsg/src/draw.c:2575:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(afmfile,"%s/Library/Fonts/%s.font/%s.afm",getenv("HOME"),
data/phylip-3.697+dfsg/src/draw.c:2581:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(afmfile,"/LocalLibrary/Fonts/%s.font/%s.afm",fontname,fontname);
data/phylip-3.697+dfsg/src/draw.c:2988: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(fontnam,fontname);
data/phylip-3.697+dfsg/src/draw2.c:450: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 (texture_string, TREE_TEXTURE);
data/phylip-3.697+dfsg/src/draw2.c:455: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 (texture_string, NAME_TEXTURE);
data/phylip-3.697+dfsg/src/drawgram.c:283:3:  [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.
  printf((grows == vertical) ? "Vertically\n" : "Horizontally\n");
data/phylip-3.697+dfsg/src/drawgram.c:1857:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
           strcpy(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawgram.c:1899:14:  [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(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawgram.c:1941: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(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawgram.c:1994: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(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawgram.c:2078: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(usefilename, plotfilename);
data/phylip-3.697+dfsg/src/drawgram.c:2079: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(pltfilename, plotfilename);
data/phylip-3.697+dfsg/src/drawgram.c:2083: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(usefilename, previewfilename);
data/phylip-3.697+dfsg/src/drawgram.c:2086: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(trefilename, intreename);
data/phylip-3.697+dfsg/src/drawtree.c:2797:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
           strcpy(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawtree.c:2830:14:  [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(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawtree.c:2867: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(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawtree.c:2915: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(fontname, fontfilename);
data/phylip-3.697+dfsg/src/drawtree.c:3002: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(usefilename, plotfilename);
data/phylip-3.697+dfsg/src/drawtree.c:3006: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(usefilename, previewfilename);
data/phylip-3.697+dfsg/src/drawtree.c:3124: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(filename1, pltfilename);
data/phylip-3.697+dfsg/src/drawtree.c:3128: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(filename1, pltfilename);
data/phylip-3.697+dfsg/src/factor.c:111:5:  [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.
    printf(ansi ? "\033[2J\033[H" : "\n");
data/phylip-3.697+dfsg/src/move.c:167:5:  [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.
    printf((ansi || ibmpc) ? "\033[2J\033[H" : "\n");
data/phylip-3.697+dfsg/src/move.c:1630: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(infilename,INFILE);
data/phylip-3.697+dfsg/src/move.c:1631: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(intreename,INTREE);
data/phylip-3.697+dfsg/src/move.c:1632: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(outtreename,OUTTREE);
data/phylip-3.697+dfsg/src/moves.c:26:3:  [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.
  printf(ansi ? "\033[7m": "");
data/phylip-3.697+dfsg/src/moves.c:33:3:  [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.
  printf(ansi ? "\033[0m" : "");
data/phylip-3.697+dfsg/src/moves.c:189:3:  [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.
  printf(ansi ? "\033(0" : "");
data/phylip-3.697+dfsg/src/moves.c:208:3:  [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.
  printf(ansi ? "\033(B" : "");
data/phylip-3.697+dfsg/src/phylip.c:287: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(file, filename);
data/phylip-3.697+dfsg/src/phylip.c:288: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(filemode, mode);
data/phylip-3.697+dfsg/src/phylip.c:373: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(perm,file);
data/phylip-3.697+dfsg/src/phylip.c:611: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(line, rest);
data/phylip-3.697+dfsg/src/phylip.c:641: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(line, rest);
data/phylip-3.697+dfsg/src/phylip.c:3016:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  return sprintf(buf, format, val);
data/phylip-3.697+dfsg/src/draw.c:2575:57:  [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.
      sprintf(afmfile,"%s/Library/Fonts/%s.font/%s.afm",getenv("HOME"),
data/phylip-3.697+dfsg/src/clique.c:707: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(Chars2->vec, aChars, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/clique.c:708: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(Cands2->vec, Candidates, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/clique.c:709: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(Excl2->vec, Excluded, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/clique.c:790: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(grouping[++n - 1], st, setsz*sizeof(long));
data/phylip-3.697+dfsg/src/clique.c:912: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(su, grouping[i], setsz*sizeof(long));
data/phylip-3.697+dfsg/src/clique.c:917: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(st, su, setsz*sizeof(long));
data/phylip-3.697+dfsg/src/clique.c:946: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(tempset, st, setsz*sizeof(long));
data/phylip-3.697+dfsg/src/clique.c:965: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(st2, st, setsz*sizeof(long));
data/phylip-3.697+dfsg/src/clique.c:985: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(tempset, st2, setsz*sizeof(long));
data/phylip-3.697+dfsg/src/clique.c:1328: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(aChars, Chars_, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/clique.c:1382: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(Chars2->vec, aChars, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/clique.c:1383: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(Cands2->vec, Candidates, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/clique.c:1384: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(Excl2->vec, Excluded, chars*sizeof(boolean));
data/phylip-3.697+dfsg/src/cons.c:307: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(grouping[i - 1], grouping[j - 1], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:333: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(stemp, grouping[j - 1], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:334: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(grouping[j - 1], grouping[j + gap - 1], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:335: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(grouping[j + gap - 1], stemp, setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:399: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(group2[(*n2) - 1], grouping[i - 1], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:494:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(su, grouping[i], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:497: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(st, su, setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:539: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(tempset, st, setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:542: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(st2, st, setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:569: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(tempset, st2, setsz * sizeof(group_type));  /* that becomes set */
data/phylip-3.697+dfsg/src/cons.c:606: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(s, fullset, setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:871: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(grouping[i], group2[i], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:941: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(s, grouping[old_index], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:953:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(grping2[new_index], grouping[old_index], setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:1050: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(grouping[i - 1], s, setsz * sizeof(group_type));
data/phylip-3.697+dfsg/src/cons.c:1222: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(nayme[p->index - 1], p->nayme, MAXNCH);
data/phylip-3.697+dfsg/src/contml.c:846: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(d->view, c->view, totalleles*sizeof(double));
data/phylip-3.697+dfsg/src/contml.c:905: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(tmp->view, x[m - 1], totalleles*sizeof(double));
data/phylip-3.697+dfsg/src/contrast.c:613: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(b[i], a[i], chars*sizeof(double));
data/phylip-3.697+dfsg/src/discrete.c:244: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(p->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:245: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(p->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:246: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(p->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:247: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(p->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:435: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(p->discbase, rt->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:436: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(p->numsteps, rt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:439: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(p->discbase, left->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:440: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(p->numsteps, left->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:491: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(p->olddiscbase, p->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:492: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(p->oldnumsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:538: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(p->numsteps, rt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:539: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(p->discbase, rt->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:541: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(p->numsteps, left->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:542: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(p->discbase, left->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:567: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(p->numsteps, rt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:569: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(p->numsteps, left->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:732: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(p->olddiscbase, p->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:733: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(p->oldnumsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:803: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(newtip->back->discbase, below->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:804: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(newtip->back->numsteps, below->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:805: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(newtip->back->discnumnuc, below->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:807: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(below->back->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:808: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(below->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:812: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(newtip->back->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:813: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(newtip->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:816: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(newtip->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:817: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(newtip->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:825: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(newtip->back->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:826: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(newtip->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:830: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(below->back->discbase, newfork->back->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:831: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(below->back->numsteps, newfork->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:836: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(below->back->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:837: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(below->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:841: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(newfork->olddiscbase, below->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:842: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(newfork->oldnumsteps, below->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:911: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(item->back->olddiscbase, item->back->discbase,
data/phylip-3.697+dfsg/src/discrete.c:913: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(item->back->oldnumsteps, item->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:914: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(item->back->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:915: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(item->back->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:925: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(otherback->olddiscbase, otherback->discbase,
data/phylip-3.697+dfsg/src/discrete.c:927: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(otherback->oldnumsteps, otherback->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:929: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(otherback->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:930: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(otherback->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:932: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(otherback->discbase, other->back->discbase,
data/phylip-3.697+dfsg/src/discrete.c:934: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(otherback->numsteps, other->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:944: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(other->olddiscbase,(*fork)->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:945: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(other->oldnumsteps,(*fork)->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:949: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(item->olddiscbase, item->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:950: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(item->oldnumsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:951: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(item->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:952: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(item->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:956: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(item->discbase, item->olddiscbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:957: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(item->numsteps, item->oldnumsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1517: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(tempdsc->discbase, tempprt->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1518: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(tempdsc->numsteps, tempprt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1519: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(tempdsc->olddiscbase, desc->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1520: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(tempdsc->oldnumsteps, desc->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1521: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(tempprt->discbase, parent->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1522: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(tempprt->numsteps, parent->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1523: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(tempprt->discnumnuc, parent->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:1536: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(tempdsc->discbase, tempprt->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1537: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(tempdsc->numsteps, tempprt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1538: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(tempdsc->olddiscbase, start->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1539: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(tempdsc->oldnumsteps, start->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1563: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(tempdsc->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1564: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(tempdsc->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1565: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(tempdsc->olddiscbase, desc->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1566: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(tempdsc->oldnumsteps, desc->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1567: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(tempprt->discbase, parent->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1568: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(tempprt->numsteps, parent->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1569: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(tempprt->discnumnuc, parent->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:1592: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(tempdsc->discbase, tempprt->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1593: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(tempdsc->numsteps, tempprt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1594: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(tempdsc->olddiscbase, start->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1595: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(tempdsc->oldnumsteps, start->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1596: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(tempprt->discbase, added->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1597: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(tempprt->numsteps, added->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1598: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(tempprt->discnumnuc, added->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:1685: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(tempdsc->discbase, item->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1686: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(tempdsc->numsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1687: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(tempdsc->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1688: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(tempdsc->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1689: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(added->discbase, below->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1690: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(added->numsteps, below->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1691: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(added->discnumnuc, below->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:1720: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(tempdsc->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1721: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(tempdsc->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1722: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(tempdsc->olddiscbase, added->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1723: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(tempdsc->oldnumsteps, added->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1728: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(tempprt->discbase, belowbk->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/discrete.c:1729: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(tempprt->numsteps, belowbk->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/discrete.c:1730: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(tempprt->discnumnuc, belowbk->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:1989: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(tempnuc, Vars.r->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:1992: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(Vars.r->discnumnuc, tempnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:2096: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(q->discnumnuc, p->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/discrete.c:3082: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(bestrees[j].btree, bestrees[j + 1].btree, spp * sizeof(long));
data/phylip-3.697+dfsg/src/dnadist.c:961: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(xx1, p->x[i][0], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnadist.c:962: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(xx2, q->x[i][0], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnadist.c:1018: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(xx1, p->x[i][0], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnadist.c:1019: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(xx2, q->x[i][0], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnadist.c:1094: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(xx1, p->x[i][0], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnadist.c:1095: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(xx2, q->x[i][0], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnaml.c:123: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 basechar[16]="acmgrsvtwyhkdbn";
data/phylip-3.697+dfsg/src/dnaml.c:859: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(x1, p->x[i][j], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnaml.c:862: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(x2, q->x[i][j], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnaml.c:881: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(contribution[i], clai, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:895: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(clai, contribution[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:902: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(like, nulike, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:1025:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(local_nvd->xx[sib_index],
data/phylip-3.697+dfsg/src/dnaml.c:1085: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(p->x[i][j], p_xx, sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnaml.c:1136: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(x1, p->x[i][j], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnaml.c:1139: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(x2, q->x[i][j], sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnaml.c:1187: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(clai, term[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:1188: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(cslai, slopeterm[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:1189: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(cclai, curveterm[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:1218: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(thelike, nulike, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:1219: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(theslope, nuslope, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:1220: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(thecurve, nucurve, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:2019: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:2067: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/dnaml.c:2084: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/dnamlk.c:159: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 basechar[16] = "acmgrsvtwyhkdbn";
data/phylip-3.697+dfsg/src/dnamlk.c:957: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(local_nvd->xx[sib_index],
data/phylip-3.697+dfsg/src/dnamlk.c:1027: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(p->x[i][j], p_xx, sizeof(sitelike));
data/phylip-3.697+dfsg/src/dnamlk.c:1110: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(contribution[i], clai, sizeof(contribarr));
data/phylip-3.697+dfsg/src/dnamlk.c:1125:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(clai, contribution[lai - 1], sizeof(contribarr));
data/phylip-3.697+dfsg/src/dnamlk.c:1132: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(like, nulike, sizeof(contribarr));
data/phylip-3.697+dfsg/src/dnamlk.c:1706: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/dnamlk.c:1754: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/dnamlk.c:1771: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/dnamove.c:142: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 infilename[FNMLNGTH],intreename[FNMLNGTH],outtreename[FNMLNGTH], weightfilename[FNMLNGTH];
data/phylip-3.697+dfsg/src/dnamove.c:156:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char chh[(long)question - (long)horiz + 1];
data/phylip-3.697+dfsg/src/dnamove.c:258: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(tonode->base, fromnode->base, chars*sizeof(long));
data/phylip-3.697+dfsg/src/dnamove.c:264: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(tonode->numnuc, fromnode->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnamove.c:267: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(tonode->numsteps, fromnode->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnamove.c:1072: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(tempnuc, Vars.r->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnamove.c:1075: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(Vars.r->numnuc, tempnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:73:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char basechar[32]="ACMGRSVTWYHKDBNO???????????????";
data/phylip-3.697+dfsg/src/dnapars.c:551: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(temp->base, p->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:552: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(temp->numsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:553: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(temp->numnuc, p->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:669: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(temp->base, parent->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:670: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(temp->numsteps, parent->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:671: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(temp->numnuc, parent->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:708:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->base, parentback->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:709:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->numsteps, parentback->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:710:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->numnuc, parentback->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:754: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(temp1->base, q->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:755: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(temp1->numsteps, q->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:756: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(temp1->numnuc, q->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:762:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->base, q->back->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:763:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->numsteps, q->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:764:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->numnuc, q->back->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:844: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(temprm->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:845: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(temprm->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:846: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(temprm->oldbase, item->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:847: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(temprm->oldnumsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:848: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(tempf->base, forknode->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:849: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(tempf->numsteps, forknode->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:850: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(tempf->numnuc, forknode->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:903: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(temp2->base, q->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:904: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(temp2->numsteps, q->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:905: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(temp2->numnuc, q->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:950: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(tempf->base, other->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:951: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(tempf->numsteps, other->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:952: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(tempf->oldbase, forknode->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:953: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(tempf->oldnumsteps, forknode->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:958: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(temp->base, other->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:959: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(temp->numsteps, other->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:960: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(temp->numnuc, other->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:990: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(temprm->base, forknode->back->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:991: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(temprm->numsteps, forknode->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:993: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(temprm->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:994: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(temprm->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:996: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(temprm->oldbase, other->back->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:997: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(temprm->oldnumsteps, other->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1000: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(temp2->base, q->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1001: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(temp2->numsteps, q->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1002: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(temp2->numnuc, q->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/dnapars.c:1070: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(tempadd->base, p->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1071: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(tempadd->numsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1072: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(tempadd->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1073: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(tempadd->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1258:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->base, item->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1259:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->numsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1260:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1261:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1375: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(tempadd->base, item->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1376: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(tempadd->numsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1377: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(tempadd->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapars.c:1378: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(tempadd->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/dnapenny.c:563: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(bestplace, place, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/dnapenny.c:564: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(bestval, valyew, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/dnapenny.c:580: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(bestplace, place, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/dnapenny.c:581: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(bestval, valyew, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/dnapenny.c:587: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(place, bestplace, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/dnapenny.c:588: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(valyew, bestval, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/dnapenny.c:614: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(bestorders[nextree - 1], order,
data/phylip-3.697+dfsg/src/dnapenny.c:616: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(bestrees[nextree - 1], current,
data/phylip-3.697+dfsg/src/dollo.c:201: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(HypVars.zerobelow->bits_, zeroanc, words*sizeof(long));
data/phylip-3.697+dfsg/src/dollo.c:202:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(HypVars.onebelow->bits_, oneanc, words*sizeof(long));
data/phylip-3.697+dfsg/src/dollo.c:204: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(HypVars.zerobelow->bits_,
data/phylip-3.697+dfsg/src/dollo.c:206: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(HypVars.onebelow->bits_,
data/phylip-3.697+dfsg/src/dollop.c:584: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(bestrees[i].btree, bestrees[i - 1].btree, spp*sizeof(long));
data/phylip-3.697+dfsg/src/dolmove.c:103:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char cha[10];
data/phylip-3.697+dfsg/src/dolmove.c:139:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char input[100];
data/phylip-3.697+dfsg/src/dolmove.c:1411: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 input[100];
data/phylip-3.697+dfsg/src/dolpenny.c:498: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(bestplace, place, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/dolpenny.c:499: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(bestval, valyew, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/dolpenny.c:515: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(bestplace, place, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/dolpenny.c:516: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(bestval, valyew, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/dolpenny.c:522: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(place, bestplace, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/dolpenny.c:523: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(valyew, bestval, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/dolpenny.c:548: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(bestorders[nextree - 1], order,
data/phylip-3.697+dfsg/src/dolpenny.c:550: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(bestrees[nextree - 1], current,
data/phylip-3.697+dfsg/src/draw.c:35: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 fontname[LARGE_BUF_LENGTH];
data/phylip-3.697+dfsg/src/draw.c: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 pltfilename[FNMLNGTH];
data/phylip-3.697+dfsg/src/draw.c: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 progname[FNMLNGTH];
data/phylip-3.697+dfsg/src/draw.c:1441:17:  [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).
    numtochange=atoi(input);
data/phylip-3.697+dfsg/src/draw.c:1634:17:  [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).
    numtochange=atoi(input);
data/phylip-3.697+dfsg/src/draw.c:1901:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname,"Times");
data/phylip-3.697+dfsg/src/draw.c:2183:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Times-Roman");
data/phylip-3.697+dfsg/src/draw.c:2188:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Times-Bold");
data/phylip-3.697+dfsg/src/draw.c:2193:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Times");
data/phylip-3.697+dfsg/src/draw.c:2198:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2203:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2208:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2219:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2228:12:  [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).
      ch = atoi(input);
data/phylip-3.697+dfsg/src/draw.c:2261:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2266:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2271:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2276:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2281:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2286:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2291:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2296:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2301:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2306:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2317:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      ch = (char)atoi(input);
data/phylip-3.697+dfsg/src/draw.c:2345:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2380:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Hershey");
data/phylip-3.697+dfsg/src/draw.c:2414:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fontname, "Times-Roman");
data/phylip-3.697+dfsg/src/draw.c:2477: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 line[256], word1[100], word2[100];
data/phylip-3.697+dfsg/src/draw.c:2481:6:  [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).
fp = fopen(filename,"r");
data/phylip-3.697+dfsg/src/draw.c:2497:17:  [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).
    capheight = atoi(word2);
data/phylip-3.697+dfsg/src/draw.c:2501: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).
    charnum = atoi(word1);
data/phylip-3.697+dfsg/src/draw.c:2502: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).
    charlen = atoi(word2);
data/phylip-3.697+dfsg/src/draw.c:2512:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      nmetrics = atoi(word2),
data/phylip-3.697+dfsg/src/draw.c:2925:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char returnval[64];
data/phylip-3.697+dfsg/src/draw.c:2928:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-helvetica-medium-r-*-120-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2932:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-helvetica-medium-o-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2936:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-helvetica-bold-r-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2940:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-helvetica-medium-o-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2944:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-times-medium-r-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2948:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-times-medium-i-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2952:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-times-medium-i-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2956:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-times-medium-i-*-140-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2960: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(returnval,"*-courier-medium-r-*-100-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2964:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-courier-medium-r-*-120-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2968:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-courier-bold-r-*-120-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2972:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(returnval,"*-courier-bold-r-*-120-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2976: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(returnval,"*-times-medium-r-*-120-75-75-*"),
data/phylip-3.697+dfsg/src/draw.c:2985: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 fontnam[256];
data/phylip-3.697+dfsg/src/draw.h:58: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 afmfile[FNMLNGTH];
data/phylip-3.697+dfsg/src/draw.h:97: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 fontname[LARGE_BUF_LENGTH]; /* the font name to use */
data/phylip-3.697+dfsg/src/draw2.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 texture_string[7];
data/phylip-3.697+dfsg/src/drawgram.c:50: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 pltfilename[FNMLNGTH];
data/phylip-3.697+dfsg/src/drawgram.c:51: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 trefilename[FNMLNGTH];
data/phylip-3.697+dfsg/src/drawgram.c:169: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(fontname,"Times-Roman");
data/phylip-3.697+dfsg/src/drawgram.c:193: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 input[32];
data/phylip-3.697+dfsg/src/drawgram.c:195: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 cstr[32];
data/phylip-3.697+dfsg/src/drawgram.c:360:8:  [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(cstr,"#Y0PVHSBLMRDTCAF");
data/phylip-3.697+dfsg/src/drawgram.c:364:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(cstr,"#Y0PVHSBLMRDTCAFQ");
data/phylip-3.697+dfsg/src/drawgram.c:368:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(cstr,"#Y0PVHSBLMRDTCAFQ");
data/phylip-3.697+dfsg/src/drawgram.c:370:15:  [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(cstr,"#Y0PVHSBLMRDTCA"); }
data/phylip-3.697+dfsg/src/drawgram.c:372:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(cstr,"#Y0PVHSBLMRDTCA");
data/phylip-3.697+dfsg/src/drawgram.c:387: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 input[100];
data/phylip-3.697+dfsg/src/drawgram.c:615:13:  [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).
        m = atoi(input);
data/phylip-3.697+dfsg/src/drawgram.c:618:13:  [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 = atoi(input);
data/phylip-3.697+dfsg/src/drawgram.c:1635:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(afmfile,"none");
data/phylip-3.697+dfsg/src/drawgram.c:1836: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).
    intree = fopen(intreename,"r"); 
data/phylip-3.697+dfsg/src/drawgram.c:1861: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1865: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1869: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1873: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1877: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1881: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1886: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1893: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1904: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1911: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1918: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1929: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1945: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1949: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1954: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1970: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:1998: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(fontname, "Times-Bold");
data/phylip-3.697+dfsg/src/drawgram.c:2002: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:2012: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawgram.c:2089: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).
    plotfile = fopen(usefilename,plotfileopt);
data/phylip-3.697+dfsg/src/drawtree.c:60: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        pltfilename[FNMLNGTH];
data/phylip-3.697+dfsg/src/drawtree.c:216: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(fontname,"Times-Roman");
data/phylip-3.697+dfsg/src/drawtree.c:245: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    options[32];
data/phylip-3.697+dfsg/src/drawtree.c:247: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(options,"#YN0OPVBLRIDSMC");
data/phylip-3.697+dfsg/src/drawtree.c:256: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(options,"GA");
data/phylip-3.697+dfsg/src/drawtree.c:468: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    options[32];
data/phylip-3.697+dfsg/src/drawtree.c:469: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    line[32];
data/phylip-3.697+dfsg/src/drawtree.c:470: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    input[100];
data/phylip-3.697+dfsg/src/drawtree.c:475: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(options,"YNOPVBLRIDSMC");
data/phylip-3.697+dfsg/src/drawtree.c:483: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(options,"GA");
data/phylip-3.697+dfsg/src/drawtree.c:528:13:  [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).
        m = atoi(input);
data/phylip-3.697+dfsg/src/drawtree.c:534:13:  [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 = atoi(input);
data/phylip-3.697+dfsg/src/drawtree.c:2546:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(afmfile,"none");
data/phylip-3.697+dfsg/src/drawtree.c:2774: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).
    intree = fopen(intreename,"r"); 
data/phylip-3.697+dfsg/src/drawtree.c:2800: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2803: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2806: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2809: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2812: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2815: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2819: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2825: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2834: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2840: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2846: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2856: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2870: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2873: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2877: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2892: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2918: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(fontname, "Times-Bold");
data/phylip-3.697+dfsg/src/drawtree.c:2921: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:2930: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(fontname, "Hershey");
data/phylip-3.697+dfsg/src/drawtree.c:3010: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).
    plotfile = fopen(usefilename,plotfileopt);  
data/phylip-3.697+dfsg/src/drawtree.c:3036: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 filename1[FNMLNGTH];
data/phylip-3.697+dfsg/src/fitch.c:674: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(d->d, c->d, nonodes2*sizeof(double));
data/phylip-3.697+dfsg/src/fitch.c:675: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(d->w, c->w, nonodes2*sizeof(double));
data/phylip-3.697+dfsg/src/fitch.c:738: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(WITH->d, x[m - 1], (nonodes2 * sizeof(double)));
data/phylip-3.697+dfsg/src/fitch.c:739: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(n, reps[m - 1], (spp * sizeof(long)));
data/phylip-3.697+dfsg/src/kitsch.c:794: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(d->d, c->d, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/kitsch.c:795: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(d->w, c->w, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/mix.c:620: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(bestrees[i], bestrees[i - 1], spp*sizeof(long));
data/phylip-3.697+dfsg/src/move.c:95: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 infilename[FNMLNGTH],intreename[FNMLNGTH],outtreename[FNMLNGTH], weightfilename[FNMLNGTH], ancfilename[FNMLNGTH], mixfilename[FNMLNGTH], factfilename[FNMLNGTH];
data/phylip-3.697+dfsg/src/move.c:108:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char che[9];
data/phylip-3.697+dfsg/src/move.c:673: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(zerobelow->bits_, zeroanc, words*sizeof(long));
data/phylip-3.697+dfsg/src/move.c:674: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(onebelow->bits_, oneanc, words*sizeof(long));
data/phylip-3.697+dfsg/src/move.c:676: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(zerobelow->bits_, treenode[r->back->index - 1]->statezero,
data/phylip-3.697+dfsg/src/move.c:678: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(onebelow->bits_, treenode[r->back->index - 1]->stateone,
data/phylip-3.697+dfsg/src/moves.c:10: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 line[100];
data/phylip-3.697+dfsg/src/moves.c:76: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 input[100];
data/phylip-3.697+dfsg/src/moves.c:109:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char input[100];
data/phylip-3.697+dfsg/src/pars.c:570: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(temp->discbase, p->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:571: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(temp->numsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:572: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(temp->discnumnuc, p->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:689: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(temp->discbase, parent->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:690: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(temp->numsteps, parent->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:691: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(temp->discnumnuc, parent->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:728:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->discbase, parentback->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:729:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->numsteps, parentback->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:730:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->discnumnuc, parentback->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:775: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(temp1->discbase, q->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:776: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(temp1->numsteps, q->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:777: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(temp1->discnumnuc, q->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:783:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->discbase, q->back->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:784:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->numsteps, q->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:785:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp->discnumnuc, q->back->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:867: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(temprm->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:868: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(temprm->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:869: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(temprm->olddiscbase, item->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:870: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(temprm->oldnumsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:871: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(tempf->discbase, forknode->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:872: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(tempf->numsteps, forknode->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:873: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(tempf->discnumnuc, forknode->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:928: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(temp2->discbase, q->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:929: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(temp2->numsteps, q->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:930: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(temp2->discnumnuc, q->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:975: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(tempf->discbase, other->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:976: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(tempf->numsteps, other->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:977: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(tempf->olddiscbase, forknode->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:978: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(tempf->oldnumsteps, forknode->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:983: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(temp->discbase, other->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:984: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(temp->numsteps, other->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:985: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(temp->discnumnuc, other->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:1016: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(temprm->discbase, forknode->back->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1017: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(temprm->numsteps, forknode->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1019: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(temprm->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1020: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(temprm->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1022: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(temprm->olddiscbase, other->back->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1023: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(temprm->oldnumsteps, other->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1026: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(temp2->discbase, q->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1027: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(temp2->numsteps, q->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1028: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(temp2->discnumnuc, q->discnumnuc, endsite*sizeof(discnucarray));
data/phylip-3.697+dfsg/src/pars.c:1096: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(tempadd->discbase, p->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1097: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(tempadd->numsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1098: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(tempadd->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1099: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(tempadd->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1283:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->discbase, item->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1284:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->numsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1285:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1286:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tempadd->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1396: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(tempadd->discbase, item->discbase, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1397: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(tempadd->numsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/pars.c:1398: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(tempadd->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/pars.c:1399: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(tempadd->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/penny.c:565: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(bestplace, place, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/penny.c:566: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(bestval, valyew, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/penny.c:582: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(bestplace, place, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/penny.c:583:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(bestval, valyew, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/penny.c:589: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(place, bestplace, nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/penny.c:590: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(valyew, bestval, nonodes*sizeof(double));
data/phylip-3.697+dfsg/src/penny.c:615: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(bestorders[nextree - 1], order,
data/phylip-3.697+dfsg/src/penny.c:617: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(bestrees[nextree - 1], current,
data/phylip-3.697+dfsg/src/phylip.c:196:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(filename,"r");
data/phylip-3.697+dfsg/src/phylip.c:261:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char file[FNMLNGTH];
data/phylip-3.697+dfsg/src/phylip.c:262: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 filemode[3];
data/phylip-3.697+dfsg/src/phylip.c:263: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 input[FNMLNGTH];
data/phylip-3.697+dfsg/src/phylip.c:331:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    of = fopen(file,filemode);
data/phylip-3.697+dfsg/src/phylip.c:422: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(seed, newseed, sizeof(longer));        /* new seed replaces old one */
data/phylip-3.697+dfsg/src/phylip.c:458: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 string[100];
data/phylip-3.697+dfsg/src/phylip.c:593: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 line[100], rest[100];
data/phylip-3.697+dfsg/src/phylip.c:624: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 line[100], rest[100];
data/phylip-3.697+dfsg/src/phylip.c:1011: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 input[100];
data/phylip-3.697+dfsg/src/phylip.c:1581: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(bestrees[i].btree, bestrees[i - 1].btree, spp * sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:1635: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(bestrees[i].btree, bestrees[j].btree, spp * sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:1995: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(p->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:1996: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(p->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:1997: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(p->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:1998: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(p->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2012: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(p->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/phylip.c:2013: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(p->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2014: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(p->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/phylip.c:2015: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(p->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2043: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((*p)->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2044: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((*p)->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2045: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((*p)->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2046: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((*p)->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2068: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((*p)->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2069: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((*p)->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/phylip.c:2070: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((*p)->discbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/phylip.c:2071: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((*p)->olddiscbase, zeros2, endsite*sizeof(unsigned char));
data/phylip-3.697+dfsg/src/phylip.c:3008: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 format[10];
data/phylip-3.697+dfsg/src/phylip.c:3009: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 buf[0x200]; /* TODO: What's the largest possible? */
data/phylip-3.697+dfsg/src/phylip.c:3014: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(format, "%%.%uf", precision); /* %.Nf */
data/phylip-3.697+dfsg/src/phylip.h:338: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.
typedef char naym[MAXNCH];
data/phylip-3.697+dfsg/src/proml.c:120: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 aachar[26]="ARNDCQEGHILKMFPSTWYVBZX?*-";
data/phylip-3.697+dfsg/src/proml.c:864: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(freqaa, probmat[mineig], 20 * sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1526:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(x2, sib_back_ptr->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/proml.c:1538: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(p->protx[i][j], prot_xx, sizeof(psitelike));
data/phylip-3.697+dfsg/src/proml.c:1578: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(x1, p->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/proml.c:1579: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(x2, q->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/proml.c:1636: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(clai, term[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1637: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(cslai, slopeterm[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1638: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(cclai, curveterm[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1667: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(thelike, nulike, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1668: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(theslope, nuslope, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1669: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(thecurve, nucurve, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1850: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(x1, p->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/proml.c:1851: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(x2, q->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/proml.c:1871: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(contribution[i], clai, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1885: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(clai, contribution[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:1892: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(like, nulike, rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:2561: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:2609: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/proml.c:2626: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:122: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 aachar[26]="ARNDCQEGHILKMFPSTWYVBZX?*-";
data/phylip-3.697+dfsg/src/promlk.c:899: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(freqaa, probmat[mineig], 20 * sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:1601: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(x2, sib_back_ptr->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/promlk.c:1620: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(p->protx[i][j], prot_xx, sizeof(psitelike));
data/phylip-3.697+dfsg/src/promlk.c:1850: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(x1, r->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/promlk.c:1851: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(x2, q->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/promlk.c:1871: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(contribution[i], clai, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:1886:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(clai, contribution[lai - 1], rcategs*sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:1893: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:2355: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:2403: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/promlk.c:2420: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(like, nulike, rcategs * sizeof(double));
data/phylip-3.697+dfsg/src/protdist.c:92: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 infilename[100], outfilename[100], catfilename[100], weightfilename[100];
data/phylip-3.697+dfsg/src/protdist.c:1509: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(newsub, sub, sizeof(long) * 3L);
data/phylip-3.697+dfsg/src/protdist.c:1652: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(prob,jttprobs,sizeof(jttprobs));
data/phylip-3.697+dfsg/src/protdist.c:1653: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(eig,jtteigs,sizeof(jtteigs));
data/phylip-3.697+dfsg/src/protdist.c:1660: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(prob,pmbprobs,sizeof(pmbprobs));
data/phylip-3.697+dfsg/src/protdist.c:1661: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(eig,pmbeigs,sizeof(pmbeigs));
data/phylip-3.697+dfsg/src/protdist.c:1668: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(prob,pamprobs,sizeof(pamprobs));
data/phylip-3.697+dfsg/src/protdist.c:1669: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(eig,pameigs,sizeof(pameigs));
data/phylip-3.697+dfsg/src/protpars.c:735: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(treenode[i - 1]->siteset[j - 1],
data/phylip-3.697+dfsg/src/protpars.c:899: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(ls, left->siteset[m], sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:901: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(rs, rt->siteset[m], sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:904: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(qs, rs, sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:908: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(qs, ls, sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:976: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(p->siteset[m], qs, sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:1657: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(r->siteset[i], temparray->seq[i], sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:1683: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(temparray->seq, r->next->back->siteset, chars*sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:1708: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(nothing, translate[(long)quest - (long)ala], sizeof(sitearray));
data/phylip-3.697+dfsg/src/protpars.c:1711: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(hypset[i], nothing, sizeof(sitearray));
data/phylip-3.697+dfsg/src/restml.c:322: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(dest,src,(sitelength+1)*sizeof(double));
data/phylip-3.697+dfsg/src/restml.c:1442:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(b->freetrans,a->freetrans,nonodes*sizeof(long));
data/phylip-3.697+dfsg/src/retree.c:165:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char       cch[14];
data/phylip-3.697+dfsg/src/retree.c:168: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       intreename[FNMLNGTH], outtreename[FNMLNGTH];
data/phylip-3.697+dfsg/src/retree.c:1454: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 tmp[100];
data/phylip-3.697+dfsg/src/retree.c:2861: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 tmp[100];
data/phylip-3.697+dfsg/src/retree.c:3003: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 tipname[100];
data/phylip-3.697+dfsg/src/retree.c:3313:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outtree = fopen(outtreename, "a");
data/phylip-3.697+dfsg/src/seq.c:72: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((*temp)->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:73: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((*temp)->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:364: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(p->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:365: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(p->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:366: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(p->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:367: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(p->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:929: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(p->base, rt->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:930: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(p->numsteps, rt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:933: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(p->base, left->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:934: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(p->numsteps, left->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:988: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(p->oldbase, p->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:989: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(p->oldnumsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1040: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(p->numsteps, rt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1041: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(p->base, rt->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1043: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(p->numsteps, left->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1044: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(p->base, left->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1076: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(p->numsteps, rt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1078: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(p->numsteps, left->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1261: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(p->oldbase, p->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1262: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(p->oldnumsteps, p->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1332: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(newtip->back->base, below->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1333: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(newtip->back->numsteps, below->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1334: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(newtip->back->numnuc, below->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:1336: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(below->back->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1337: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(below->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1341: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(newtip->back->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1342: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(newtip->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1345: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(newtip->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1346: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(newtip->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1354: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(newtip->back->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1355: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(newtip->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1359: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(below->back->base, newfork->back->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1360: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(below->back->numsteps, newfork->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1365: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(below->back->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1366: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(below->back->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1370: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(newfork->oldbase, below->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1371: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(newfork->oldnumsteps, below->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1437: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(item->back->oldbase, item->back->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1438: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(item->back->oldnumsteps, item->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1439: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(item->back->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1440: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(item->back->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1450: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(otherback->oldbase, otherback->base, endsite*sizeof(long));  
data/phylip-3.697+dfsg/src/seq.c:1451: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(otherback->oldnumsteps, otherback->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1453: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(otherback->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1454: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(otherback->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1456: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(otherback->base, other->back->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1457: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(otherback->numsteps, other->back->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1467: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(other->oldbase,(*fork)->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1468: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(other->oldnumsteps,(*fork)->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1472: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(item->oldbase, item->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1473: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(item->oldnumsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1474: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(item->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1475: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(item->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1479: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(item->base, item->oldbase, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:1480: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(item->numsteps, item->oldnumsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2037: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(tempdsc->base, tempprt->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2038: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(tempdsc->numsteps, tempprt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2039: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(tempdsc->oldbase, desc->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2040: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(tempdsc->oldnumsteps, desc->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2041: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(tempprt->base, parent->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2042: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(tempprt->numsteps, parent->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2043: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(tempprt->numnuc, parent->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2056: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(tempdsc->base, tempprt->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2057: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(tempdsc->numsteps, tempprt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2058: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(tempdsc->oldbase, start->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2059: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(tempdsc->oldnumsteps, start->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2083: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(tempdsc->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2084: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(tempdsc->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2085: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(tempdsc->oldbase, desc->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2086: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(tempdsc->oldnumsteps, desc->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2087: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(tempprt->base, parent->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2088: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(tempprt->numsteps, parent->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2089: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(tempprt->numnuc, parent->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2112: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(tempdsc->base, tempprt->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2113: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(tempdsc->numsteps, tempprt->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2114: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(tempdsc->oldbase, start->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2115: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(tempdsc->oldnumsteps, start->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2116: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(tempprt->base, added->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2117: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(tempprt->numsteps, added->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2118: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(tempprt->numnuc, added->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2201: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(tempdsc->base, item->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2202: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(tempdsc->numsteps, item->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2203: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(tempdsc->oldbase, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2204: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(tempdsc->oldnumsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2205: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(added->base, below->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2206: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(added->numsteps, below->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2207: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(added->numnuc, below->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2236: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(tempdsc->base, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2237: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(tempdsc->numsteps, zeros, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2238: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(tempdsc->oldbase, added->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2239: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(tempdsc->oldnumsteps, added->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2244: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(tempprt->base, belowbk->base, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2245: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(tempprt->numsteps, belowbk->numsteps, endsite*sizeof(long));
data/phylip-3.697+dfsg/src/seq.c:2246: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(tempprt->numnuc, belowbk->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2514: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(tempnuc, Vars.r->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2517: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(Vars.r->numnuc, tempnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:2622: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(q->numnuc, p->numnuc, endsite*sizeof(nucarray));
data/phylip-3.697+dfsg/src/seq.c:3376: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(d->x[i][j], c->x[i][j], sizeof(sitelike));
data/phylip-3.697+dfsg/src/seq.c:3377: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(d->underflows,c->underflows,sizeof(double) * endsite);
data/phylip-3.697+dfsg/src/seq.c:3397: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(d->protx[i][j], c->protx[i][j], sizeof(psitelike));
data/phylip-3.697+dfsg/src/seq.c:3398: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(d->underflows,c->underflows,sizeof(double) * endsite);
data/phylip-3.697+dfsg/src/seq.c:4128: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(bestrees[j].btree, bestrees[j + 1].btree, spp * sizeof(long));
data/phylip-3.697+dfsg/src/wagner.c:298: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(vars.zerobelow->bits_, zeroanc, words*sizeof(long));
data/phylip-3.697+dfsg/src/wagner.c:299: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(vars.onebelow->bits_, oneanc, words*sizeof(long));
data/phylip-3.697+dfsg/src/wagner.c:301: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(vars.zerobelow->bits_, treenode[vars.r->back->index - 1]->empstte0,
data/phylip-3.697+dfsg/src/wagner.c:303: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(vars.onebelow->bits_, treenode[vars.r->back->index - 1]->empstte1,
data/phylip-3.697+dfsg/src/clique.c:220:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/clique.c:250:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/clique.c:274:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/cons.c:198:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((*p)->nayme, str, MAXNCH);
data/phylip-3.697+dfsg/src/consense.c:157:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/consense.c:198:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/consense.c:244:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/consense.c:400:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nodep[i]->nayme, nayme[i], MAXNCH);
data/phylip-3.697+dfsg/src/contml.c:188:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/contrast.c:141:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/contrast.c:169:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/dnacomp.c:177:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnacomp.c:214:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dnadist.c:193:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnadist.c:297:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dnadist.c:330:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/dnadist.c:356:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/dnadist.c:367:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/dnainvar.c:148:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnainvar.c:171:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/dnaml.c:305:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnaml.c:408:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dnaml.c:470:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/dnaml.c:499:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/dnamlk.c:331:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnamlk.c:428:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/dnamlk.c:491:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/dnamlk.c:520:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/dnamove.c:456:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnamove.c:1457:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/phylip-3.697+dfsg/src/dnamove.c:1726:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/dnamove.c:2177:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnamove.c:2278:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnapars.c:205:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnapars.c:254:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dnapars.c:288:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dnapars.c:309:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/dnapenny.c:203:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dnapenny.c:233:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dollop.c:189:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dollop.c:238:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/dolpenny.c:165:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/dolpenny.c:214:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/draw.c:887:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:891:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:1467:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1485:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1512:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1539:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1568:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/phylip-3.697+dfsg/src/draw.c:1595:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1602:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1661:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1679:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1706:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1733:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1760:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:1787:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/draw.c:2169:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:2353:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:2360:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:2388:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:2395:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/draw.c:2989:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (i=0;i<strlen(fontnam);++i)
data/phylip-3.697+dfsg/src/draw.c:3155:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fprintf(plotfile,"%c%s",(char)strlen(pstring),pstring);
data/phylip-3.697+dfsg/src/draw.c:3156: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).
    bytewrite+=(14+strlen(pstring));
data/phylip-3.697+dfsg/src/drawgram.c:140:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((*p)->nayme, str, MAXNCH);
data/phylip-3.697+dfsg/src/drawgram.c:431:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:490:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:521:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:538:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:556:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:567:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/drawgram.c:579:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:591:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/drawgram.c:674:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/drawgram.c:2067: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).
        lenname = strlen(plotfilename);
data/phylip-3.697+dfsg/src/drawgram.c:2071: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).
        lenname = strlen(previewfilename);
data/phylip-3.697+dfsg/src/drawtree.c:186:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((*p)->nayme, str, MAXNCH);
data/phylip-3.697+dfsg/src/drawtree.c:252:8:  [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(options,"Q");
data/phylip-3.697+dfsg/src/drawtree.c:254:12:  [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(options,"F");
data/phylip-3.697+dfsg/src/drawtree.c:479:10:  [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(options,"Q");
data/phylip-3.697+dfsg/src/drawtree.c:481:12:  [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(options,"F");
data/phylip-3.697+dfsg/src/drawtree.c:597:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:632:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:649:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:668:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:698:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:723:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:737:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:752:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    (void)getchar();
data/phylip-3.697+dfsg/src/drawtree.c:2411:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(pChar); i++)
data/phylip-3.697+dfsg/src/drawtree.c:2992: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).
        lenname = strlen(plotfilename);
data/phylip-3.697+dfsg/src/drawtree.c:2996: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).
        lenname = strlen(previewfilename);
data/phylip-3.697+dfsg/src/factor.c:130:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/fitch.c:218:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/gendist.c:104:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/kitsch.c:159:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/mix.c:199:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/mix.c:260:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/move.c:207:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/move.c:1478:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/move.c:1585:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/neighbor.c:134:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/pars.c:197:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/pars.c:242:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/pars.c:276:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/pars.c:295:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/penny.c:180:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/penny.c:240:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/phylip.c:172:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ch = getc(f);
data/phylip-3.697+dfsg/src/phylip.c:185:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ch = getc(f);
data/phylip-3.697+dfsg/src/phylip.c:314:9:  [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(filemode,"a");
data/phylip-3.697+dfsg/src/phylip.c:326:9:  [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(filemode,"w");
data/phylip-3.697+dfsg/src/phylip.c:490:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:517:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:535:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:557:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:579:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:961:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:979:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:998:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:1038:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:1055:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:1072:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:1093:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/phylip.c:1295:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getc(infile);
data/phylip-3.697+dfsg/src/phylip.c:2195:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(*treefile);
data/phylip-3.697+dfsg/src/phylip.c:2251:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc(*treefile);
data/phylip-3.697+dfsg/src/phylip.c:2641:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (p->nayme, str, len);
data/phylip-3.697+dfsg/src/phylip.c:2765:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ch=getc(file);
data/phylip-3.697+dfsg/src/phylip.c:2771:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ch = getc(file);
data/phylip-3.697+dfsg/src/phylip.c:2901:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/phylip-3.697+dfsg/src/phylip.c:2977: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).
    len = strlen(nayme[i]);
data/phylip-3.697+dfsg/src/phylip.c:2979:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(names[i], nayme[i], MAXNCH);
data/phylip-3.697+dfsg/src/phylip.c:3065: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).
      fw = strlen(row_head[row]);
data/phylip-3.697+dfsg/src/phylip.c:3079:23:  [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).
      colwidth[col] = strlen(col_head[col]);
data/phylip-3.697+dfsg/src/phylip.c:3133:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fw = strlen(col_head[col]);
data/phylip-3.697+dfsg/src/phylip.c:3159:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          for ( i = strlen(row_head[row]); i < headwidth; i++ )
data/phylip-3.697+dfsg/src/phylip.c:3165:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          for ( i = strlen(row_head[row]); i < headwidth; i++ )
data/phylip-3.697+dfsg/src/proml.c:628:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/proml.c:736:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/proml.c:798:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/proml.c:827:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/promlk.c:670:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/promlk.c:770:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/promlk.c:833:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/promlk.c:862:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/protdist.c:588:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/protdist.c:635:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/protdist.c:719:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/protdist.c:730:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/protdist.c:742:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/protdist.c:758:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              getchar();
data/phylip-3.697+dfsg/src/protdist.c:801:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/phylip-3.697+dfsg/src/protdist.c:815:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/protdist.c:826:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/protpars.c:386:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/protpars.c:431:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/protpars.c:474:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/restdist.c:130:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/restdist.c:163:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/restdist.c:208:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/restml.c:409:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/restml.c:444:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/retree.c:223:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy ((*p)->nayme, str, MAXNCH);
data/phylip-3.697+dfsg/src/retree.c:450:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/retree.c:888: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).
    nl = strlen(nodep[p->index - 1]->nayme);
data/phylip-3.697+dfsg/src/retree.c:1291:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/phylip-3.697+dfsg/src/retree.c:1582:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/retree.c:2098:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/retree.c:2797:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/retree.c:2972:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/retree.c:3040:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nodep[tipno-1]->nayme,tipname,MAXNCH);
data/phylip-3.697+dfsg/src/retree.c:3120:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/retree.c:3241:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/phylip-3.697+dfsg/src/seqboot.c:278:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/seqboot.c:351:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/phylip-3.697+dfsg/src/seqboot.c:401:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/seqboot.c:420:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          getchar();
data/phylip-3.697+dfsg/src/treedist.c:878:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/treedist.c:929:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/phylip-3.697+dfsg/src/treedist.c:1090:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();

ANALYSIS SUMMARY:

Hits = 876
Lines analyzed = 77516 in approximately 2.20 seconds (35236 lines/second)
Physical Source Lines of Code (SLOC) = 64956
Hits@level = [0] 4281 [1] 183 [2] 642 [3]   1 [4]  50 [5]   0
Hits@level+ = [0+] 5157 [1+] 876 [2+] 693 [3+]  51 [4+]  50 [5+]   0
Hits/KSLOC@level+ = [0+] 79.3922 [1+] 13.4861 [2+] 10.6688 [3+] 0.785147 [4+] 0.769752 [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.