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/biosquid-1.9g+cvs20050121/Testsuite/iospeed_main.c
Examining data/biosquid-1.9g+cvs20050121/Testsuite/rndspeed_main.c
Examining data/biosquid-1.9g+cvs20050121/Testsuite/sqdconfig_main.c
Examining data/biosquid-1.9g+cvs20050121/a2m.c
Examining data/biosquid-1.9g+cvs20050121/afetch_main.c
Examining data/biosquid-1.9g+cvs20050121/aligneval.c
Examining data/biosquid-1.9g+cvs20050121/alignio.c
Examining data/biosquid-1.9g+cvs20050121/alistat_main.c
Examining data/biosquid-1.9g+cvs20050121/clustal.c
Examining data/biosquid-1.9g+cvs20050121/cluster.c
Examining data/biosquid-1.9g+cvs20050121/compalign_main.c
Examining data/biosquid-1.9g+cvs20050121/compstruct_main.c
Examining data/biosquid-1.9g+cvs20050121/dayhoff.c
Examining data/biosquid-1.9g+cvs20050121/dirichlet.c
Examining data/biosquid-1.9g+cvs20050121/eps.c
Examining data/biosquid-1.9g+cvs20050121/file.c
Examining data/biosquid-1.9g+cvs20050121/gki.c
Examining data/biosquid-1.9g+cvs20050121/hsregex.c
Examining data/biosquid-1.9g+cvs20050121/iupac.c
Examining data/biosquid-1.9g+cvs20050121/msa.c
Examining data/biosquid-1.9g+cvs20050121/msf.c
Examining data/biosquid-1.9g+cvs20050121/phylip.c
Examining data/biosquid-1.9g+cvs20050121/revcomp.c
Examining data/biosquid-1.9g+cvs20050121/revcomp_main.c
Examining data/biosquid-1.9g+cvs20050121/rk.c
Examining data/biosquid-1.9g+cvs20050121/selex.c
Examining data/biosquid-1.9g+cvs20050121/seqencode.c
Examining data/biosquid-1.9g+cvs20050121/seqsplit_main.c
Examining data/biosquid-1.9g+cvs20050121/seqstat_main.c
Examining data/biosquid-1.9g+cvs20050121/sfetch_main.c
Examining data/biosquid-1.9g+cvs20050121/shuffle.c
Examining data/biosquid-1.9g+cvs20050121/shuffle_main.c
Examining data/biosquid-1.9g+cvs20050121/sindex_main.c
Examining data/biosquid-1.9g+cvs20050121/sqerror.c
Examining data/biosquid-1.9g+cvs20050121/sqio.c
Examining data/biosquid-1.9g+cvs20050121/squidcore.c
Examining data/biosquid-1.9g+cvs20050121/sre_ctype.c
Examining data/biosquid-1.9g+cvs20050121/sre_math.c
Examining data/biosquid-1.9g+cvs20050121/sre_random.c
Examining data/biosquid-1.9g+cvs20050121/sre_stack.c
Examining data/biosquid-1.9g+cvs20050121/sre_string.c
Examining data/biosquid-1.9g+cvs20050121/sreformat_main.c
Examining data/biosquid-1.9g+cvs20050121/ssi.c
Examining data/biosquid-1.9g+cvs20050121/stockholm.c
Examining data/biosquid-1.9g+cvs20050121/stopwatch.c
Examining data/biosquid-1.9g+cvs20050121/test_main.c
Examining data/biosquid-1.9g+cvs20050121/translate.c
Examining data/biosquid-1.9g+cvs20050121/translate_main.c
Examining data/biosquid-1.9g+cvs20050121/types.c
Examining data/biosquid-1.9g+cvs20050121/vectorops.c
Examining data/biosquid-1.9g+cvs20050121/weight.c
Examining data/biosquid-1.9g+cvs20050121/weight_main.c
Examining data/biosquid-1.9g+cvs20050121/wuss.c
Examining data/biosquid-1.9g+cvs20050121/dirichlet.h
Examining data/biosquid-1.9g+cvs20050121/gki.h
Examining data/biosquid-1.9g+cvs20050121/msa.h
Examining data/biosquid-1.9g+cvs20050121/rk.h
Examining data/biosquid-1.9g+cvs20050121/sqfuncs.h
Examining data/biosquid-1.9g+cvs20050121/sre_random.h
Examining data/biosquid-1.9g+cvs20050121/sre_stack.h
Examining data/biosquid-1.9g+cvs20050121/ssi.h
Examining data/biosquid-1.9g+cvs20050121/stockholm.h
Examining data/biosquid-1.9g+cvs20050121/stopwatch.h
Examining data/biosquid-1.9g+cvs20050121/vectorops.h
Examining data/biosquid-1.9g+cvs20050121/getopt.c

FINAL RESULTS:

data/biosquid-1.9g+cvs20050121/dirichlet.c:375: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(d->alphabet, alphabet);
data/biosquid-1.9g+cvs20050121/file.c:100:26:  [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).
  if (lastslash == NULL) strcpy(tail, file);
data/biosquid-1.9g+cvs20050121/file.c:101:26:  [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).
  else                   strcpy(tail, lastslash+1);
data/biosquid-1.9g+cvs20050121/file.c:165:26:  [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).
  if (*file == DIRSLASH) strcpy(full, file); /* file = "/foo", ignore directory. */
data/biosquid-1.9g+cvs20050121/file.c:166:26:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  else                   sprintf(full, "%s%c%s", dir, DIRSLASH, file);
data/biosquid-1.9g+cvs20050121/file.c:185:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(new, "%s.%s", filename, sfx);
data/biosquid-1.9g+cvs20050121/file.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(full, "%s%c%s", s, DIRSLASH, fname);
data/biosquid-1.9g+cvs20050121/gki.c:185: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(hash->table[val]->key, key);
data/biosquid-1.9g+cvs20050121/hsregex.c:1265:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		(void) strcat(buf, p);
data/biosquid-1.9g+cvs20050121/msa.c:778:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cmd, "gzip -dc %s", filename);
data/biosquid-1.9g+cvs20050121/msa.c:779:21:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if ((afp->f = popen(cmd, "r")) == NULL)
data/biosquid-1.9g+cvs20050121/msa.c:801:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(ssifile, "%s.ssi", filename);
data/biosquid-1.9g+cvs20050121/msa.c:808:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(ssifile, "%s.ssi", full);
data/biosquid-1.9g+cvs20050121/msa.c:1034: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(msa->aseq[i], aseq[i]);
data/biosquid-1.9g+cvs20050121/selex.c:129: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(bufcpy, buffer);
data/biosquid-1.9g+cvs20050121/selex.c:193:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(bufcpy, buffer);
data/biosquid-1.9g+cvs20050121/selex.c:218:4:  [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(bufcpy, buffer);
data/biosquid-1.9g+cvs20050121/selex.c:280: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(bufcpy, buffer);
data/biosquid-1.9g+cvs20050121/selex.c:429:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(bufcpy, buffer);
data/biosquid-1.9g+cvs20050121/selex.c:442:4:  [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(bufcpy, buffer);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:191:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(seqfrag, seq+pos);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:247:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(new, "[%s:%d..%d] %s", source, start, end, 
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:274:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(new, "%s/frag%d/%d-%d", origname, fragnum, start, end);
data/biosquid-1.9g+cvs20050121/sfetch_main.c:237:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ssifile, "%s/%s", dbdir, dbenv[dbidx].ssiname);
data/biosquid-1.9g+cvs20050121/sfetch_main.c:250:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(seqfile, "%s/%s", dbdir, dbfile);
data/biosquid-1.9g+cvs20050121/sfetch_main.c:260:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ssifile, "%s.ssi", seqfile);
data/biosquid-1.9g+cvs20050121/shuffle.c:63:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if (s1 != s2) strcpy(s1, s2);
data/biosquid-1.9g+cvs20050121/shuffle.c:441:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if (s1 != s2) strcpy(s1, s2);
data/biosquid-1.9g+cvs20050121/shuffle.c:481:34:  [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).
      for (i = 0; i < nseq; i++) strcpy(ali1[i], ali2[i]);
data/biosquid-1.9g+cvs20050121/shuffle.c:574:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if (xs != x) strcpy(xs, x);
data/biosquid-1.9g+cvs20050121/shuffle.c:575:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if (ys != y) strcpy(ys, y);
data/biosquid-1.9g+cvs20050121/shuffle_main.c:280:4:  [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(seq, shuff);
data/biosquid-1.9g+cvs20050121/sqerror.c:36:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, argp);
data/biosquid-1.9g+cvs20050121/sqerror.c:61:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, argp);
data/biosquid-1.9g+cvs20050121/sqio.c:137:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cmd, "gzip -dc %s", filename);
data/biosquid-1.9g+cvs20050121/sqio.c:138:22:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if ((dbfp->f = popen(cmd, "r")) == NULL)
data/biosquid-1.9g+cvs20050121/sqio.c:419:34:  [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).
  if (sq2->flags & SQINFO_NAME)  strcpy(sq1->name, sq2->name);
data/biosquid-1.9g+cvs20050121/sqio.c:420:34:  [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).
  if (sq2->flags & SQINFO_ID)    strcpy(sq1->id,   sq2->id);
data/biosquid-1.9g+cvs20050121/sqio.c:421:34:  [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).
  if (sq2->flags & SQINFO_ACC)   strcpy(sq1->acc,  sq2->acc);
data/biosquid-1.9g+cvs20050121/sqio.c:422:34:  [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).
  if (sq2->flags & SQINFO_DESC)  strcpy(sq1->desc, sq2->desc);
data/biosquid-1.9g+cvs20050121/sre_string.c:35: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(new, s);
data/biosquid-1.9g+cvs20050121/sre_string.c:437: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(new, s);
data/biosquid-1.9g+cvs20050121/ssi.c:928:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "env LC_ALL=POSIX sort -o %s %s\n", g->ptmpfile, g->ptmpfile);
data/biosquid-1.9g+cvs20050121/ssi.c:929:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) != 0) return SSI_ERR_EXTERNAL_SORT;
data/biosquid-1.9g+cvs20050121/ssi.c:934:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "env LC_ALL=POSIX sort -o %s %s\n", g->stmpfile, g->stmpfile);
data/biosquid-1.9g+cvs20050121/ssi.c:935:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) != 0) return SSI_ERR_EXTERNAL_SORT;
data/biosquid-1.9g+cvs20050121/ssi.c:973: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(s, g->filenames[i]);
data/biosquid-1.9g+cvs20050121/ssi.c:993:2:  [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(s, pkey.key);
data/biosquid-1.9g+cvs20050121/ssi.c:1004:2:  [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(s, g->pkeys[i].key);
data/biosquid-1.9g+cvs20050121/ssi.c:1027:4:  [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(s2, skey.key);
data/biosquid-1.9g+cvs20050121/ssi.c:1028:4:  [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(s,  skey.pkey);
data/biosquid-1.9g+cvs20050121/ssi.c:1036:4:  [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(s2, g->skeys[i].key);
data/biosquid-1.9g+cvs20050121/ssi.c:1037:4:  [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(s,  g->skeys[i].pkey);
data/biosquid-1.9g+cvs20050121/translate.c:74: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(aaptr, code[codon]);
data/biosquid-1.9g+cvs20050121/Testsuite/iospeed_main.c:28:14:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
  testfile = tmpnam(NULL);
data/biosquid-1.9g+cvs20050121/file.c:232:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((path = Strdup(getenv(env))) == NULL) return NULL;
data/biosquid-1.9g+cvs20050121/sfetch_main.c:231:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if ((dbdir = getenv(dbenv[dbidx].envname)) == NULL)
data/biosquid-1.9g+cvs20050121/Testsuite/iospeed_main.c:29:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen(testfile, "w")) == NULL) Die("failed to open %s", testfile);
data/biosquid-1.9g+cvs20050121/Testsuite/iospeed_main.c:42:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(testfile, "r")) == NULL) 
data/biosquid-1.9g+cvs20050121/Testsuite/iospeed_main.c:57:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(testfile,"r")) == NULL)
data/biosquid-1.9g+cvs20050121/a2m.c:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];			/* buffer for individual lines */
data/biosquid-1.9g+cvs20050121/alignio.c:332: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 sname1[11];              /* shortened name               */
data/biosquid-1.9g+cvs20050121/alignio.c:333: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 sname2[11];             
data/biosquid-1.9g+cvs20050121/alignio.c:335:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf1[61];		/* buffer for writing seq1; CPL+1*/
data/biosquid-1.9g+cvs20050121/alignio.c:336: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 bufmid[61];              /* buffer for writing consensus  */
data/biosquid-1.9g+cvs20050121/alignio.c:337: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 buf2[61];
data/biosquid-1.9g+cvs20050121/alistat_main.c:139:37:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (consfile != NULL && (consfp = fopen(consfile, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/alistat_main.c:142:47:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (identmx_report != NULL && (identmx_fp = fopen(identmx_report, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/clustal.c:144:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char   buf[64];	        /* buffer for writing seq        */
data/biosquid-1.9g+cvs20050121/dayhoff.c:61: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     buffer[512];		/* input buffer from fp                  */
data/biosquid-1.9g+cvs20050121/dayhoff.c:148:38:  [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).
	    pam [order[row]] [order[col]] = atoi(sptr);
data/biosquid-1.9g+cvs20050121/dirichlet.c:408: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[LINEBUFLEN];	/* one line at a time is read into buf  */
data/biosquid-1.9g+cvs20050121/dirichlet.c:414:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen(file, "r")) == NULL) {
data/biosquid-1.9g+cvs20050121/dirichlet.c:421:65:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if ((s = strtok(buf,  " \t\n")) == NULL)  goto FAILURE;   N = atoi(s);
data/biosquid-1.9g+cvs20050121/file.c:229:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  full[1024];             /* constructed file name */
data/biosquid-1.9g+cvs20050121/file.c:241:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((fp = fopen(full, "r")) != NULL) break;
data/biosquid-1.9g+cvs20050121/file.c:264:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen(filename, "r"))) { fclose(fp); return TRUE; }
data/biosquid-1.9g+cvs20050121/hsregex.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 *sqd_parse[10];
data/biosquid-1.9g+cvs20050121/hsregex.c:293:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char regdummy[3];	/* NOTHING, 0 next ptr */
data/biosquid-1.9g+cvs20050121/hsregex.c:1195: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.
	static char buf[50];
data/biosquid-1.9g+cvs20050121/hsregex.c:1239: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(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/biosquid-1.9g+cvs20050121/hsregex.c:1251: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(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/biosquid-1.9g+cvs20050121/hsregex.c:1342:10:  [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).
  ntok = atoi(argv[2]);
data/biosquid-1.9g+cvs20050121/iupac.c:78: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 *stdcode1[65] = {
data/biosquid-1.9g+cvs20050121/iupac.c:149:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *stdcode3[65] = {
data/biosquid-1.9g+cvs20050121/msa.c:767:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cmd[256];
data/biosquid-1.9g+cvs20050121/msa.c:798:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((afp->f = fopen(filename, "r")) != NULL)
data/biosquid-1.9g+cvs20050121/msf.c:116:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  alleged_alen     = atoi(sqd_parse[0]);
data/biosquid-1.9g+cvs20050121/msf.c:123:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  alleged_checksum = atoi(sqd_parse[3]);
data/biosquid-1.9g+cvs20050121/msf.c:242: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   date[64];		/* today's date in GCG's format "October 3, 1996 15:57" */
data/biosquid-1.9g+cvs20050121/msf.c:250: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   buffer[51];		/* buffer for writing seq        */
data/biosquid-1.9g+cvs20050121/phylip.c:78:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[11];		/* seq name max len = 10 char */
data/biosquid-1.9g+cvs20050121/phylip.c:97:14:  [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).
      nseq = atoi(s1);
data/biosquid-1.9g+cvs20050121/phylip.c:98:14:  [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).
      alen = atoi(s2);
data/biosquid-1.9g+cvs20050121/phylip.c:158:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char   buf[51];		/* buffer for writing seq        */
data/biosquid-1.9g+cvs20050121/rk.c:31: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    coded[RK_HASHSIZE + 1];
data/biosquid-1.9g+cvs20050121/selex.c:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char     buffer[LINEBUFLEN];	/* input buffer for lines       */
data/biosquid-1.9g+cvs20050121/selex.c:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char     bufcpy[LINEBUFLEN];	/* strtok'able copy of buffer   */
data/biosquid-1.9g+cvs20050121/selex.c:772: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  buffer[LINEBUFLEN];
data/biosquid-1.9g+cvs20050121/selex.c:777:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen(filename, "r")) == NULL)
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:105:66:  [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).
      else if (strcmp(optname, "--length")   == 0)  fraglength = atoi(optarg);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:106:66:  [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).
      else if (strcmp(optname, "--overlap")  == 0)  overlap    = atoi(optarg);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:142:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((ofp = fopen(outfile, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:147:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fragfp = fopen(fragfile, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:267:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(new, "frag%d", fragnum);
data/biosquid-1.9g+cvs20050121/sfetch_main.c:160:9:  [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).
	from = atoi(optarg); getall = FALSE;
data/biosquid-1.9g+cvs20050121/sfetch_main.c:163:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	to = atoi(optarg); getall = FALSE;
data/biosquid-1.9g+cvs20050121/sfetch_main.c:310:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  else if ((outfp = fopen(outfile, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/shuffle.c:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char   Z[26]; /* connectivity in last edge graph Z */ 
data/biosquid-1.9g+cvs20050121/shuffle.c:629: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 s1[100];
data/biosquid-1.9g+cvs20050121/shuffle.c:630: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 s2[100];
data/biosquid-1.9g+cvs20050121/shuffle.c:633: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(s2, "GGGGGGGGGGCCCCCCCCCC");
data/biosquid-1.9g+cvs20050121/shuffle.c:643: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(s1, "ACGTACGT--------ACGTACGT----ACGTACGT");
data/biosquid-1.9g+cvs20050121/shuffle.c:644: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(s2, "ACGTACGTACGTACGT------------ACGTACGT");
data/biosquid-1.9g+cvs20050121/shuffle_main.c:85: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   sqname[32];		/* name of an iid sequence */
data/biosquid-1.9g+cvs20050121/shuffle_main.c:131:60:  [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).
      else if (strcmp(optname, "-n")   == 0)  num        = atoi(optarg); 
data/biosquid-1.9g+cvs20050121/shuffle_main.c:133:76:  [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).
      else if (strcmp(optname, "-w")   == 0)  {strategy = DO_REGIONAL; w = atoi(optarg); }
data/biosquid-1.9g+cvs20050121/shuffle_main.c:137:60:  [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).
      else if (strcmp(optname, "-t")   == 0)  truncation = atoi(optarg); 
data/biosquid-1.9g+cvs20050121/shuffle_main.c:144:67:  [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).
      else if (strcmp(optname, "--seed")     == 0) seed         = atoi(optarg); 
data/biosquid-1.9g+cvs20050121/shuffle_main.c:159:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((ofp = fopen(outfile,"w")) == NULL)
data/biosquid-1.9g+cvs20050121/shuffle_main.c:193:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(sqname, "randseq%d", i);
data/biosquid-1.9g+cvs20050121/sqio.c:125:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cmd[256];
data/biosquid-1.9g+cvs20050121/sqio.c:148:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((dbfp->f = fopen(filename, "r")) == NULL &&
data/biosquid-1.9g+cvs20050121/sqio.c:393:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sqinfo->start = atoi(sptr);
data/biosquid-1.9g+cvs20050121/sqio.c:399:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sqinfo->stop = atoi(sptr);
data/biosquid-1.9g+cvs20050121/sqio.c:405:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sqinfo->olen = atoi(sptr);
data/biosquid-1.9g+cvs20050121/sqio.c:853:14:  [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).
      blen = atoi(sqd_parse[2]);
data/biosquid-1.9g+cvs20050121/sqio.c:1527: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[61];
data/biosquid-1.9g+cvs20050121/sqio.c:1547: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  endstr[10];
data/biosquid-1.9g+cvs20050121/sqio.c:1548: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  s[100];			/* buffer for sequence  */
data/biosquid-1.9g+cvs20050121/sqio.c:1549: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  ss[100];		/* buffer for structure */
data/biosquid-1.9g+cvs20050121/sqio.c:1584: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(endstr, "\n//");
data/biosquid-1.9g+cvs20050121/sqio.c:1606: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(endstr, "\n///");
data/biosquid-1.9g+cvs20050121/sqio.c:1628: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(endstr, "\n++");
data/biosquid-1.9g+cvs20050121/sqio.c:1639:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(endstr, "\n//"); /* 11Oct90: bug fix*/
data/biosquid-1.9g+cvs20050121/sqio.c:1661: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(endstr, "\n//");
data/biosquid-1.9g+cvs20050121/sqio.c:1938:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "r")) == NULL)
data/biosquid-1.9g+cvs20050121/sqio.c:1945:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "r")) == NULL)
data/biosquid-1.9g+cvs20050121/sre_string.c:341: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)+len1, src, len2+1);
data/biosquid-1.9g+cvs20050121/ssi.c:57:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((sfp->fp = fopen(filename, "rb")) == NULL) {
data/biosquid-1.9g+cvs20050121/ssi.c:876:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen(file,"wb")) == NULL) return SSI_ERR_NOFILE;
data/biosquid-1.9g+cvs20050121/ssi.c:924:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[1024];
data/biosquid-1.9g+cvs20050121/ssi.c:930:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((g->ptmp = fopen(g->ptmpfile, "r")) == NULL) return SSI_ERR_EXTERNAL_SORT;
data/biosquid-1.9g+cvs20050121/ssi.c:936:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((g->stmp = fopen(g->stmpfile, "r")) == NULL) return SSI_ERR_EXTERNAL_SORT;
data/biosquid-1.9g+cvs20050121/ssi.c:1205:29:  [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).
  pkey->fnum = (sqd_uint16) atoi(tok);
data/biosquid-1.9g+cvs20050121/ssi.c:1379:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((g->ptmp = fopen(g->ptmpfile, "w")) == NULL) return 1;
data/biosquid-1.9g+cvs20050121/ssi.c:1380:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((g->stmp = fopen(g->stmpfile, "w")) == NULL) return 1;
data/biosquid-1.9g+cvs20050121/ssi.c:1442:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char      name[32], accession[32];
data/biosquid-1.9g+cvs20050121/ssi.c:1457:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((ofp = fopen("tmp.0", "w")) == NULL) 
data/biosquid-1.9g+cvs20050121/ssi.c:1464: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(name, "seq%d", i);
data/biosquid-1.9g+cvs20050121/ssi.c:1465: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(accession, "ac%d", i);
data/biosquid-1.9g+cvs20050121/ssi.c:1483:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((ofp = fopen("tmp.1", "w")) == NULL) 
data/biosquid-1.9g+cvs20050121/ssi.c:1490: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(name, "seq%d", i);
data/biosquid-1.9g+cvs20050121/ssi.c:1491: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(accession, "ac%d", i);
data/biosquid-1.9g+cvs20050121/stopwatch.c:83: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(buf, "%02d:%02d:%02d.%02d", h,m,s,hs);
data/biosquid-1.9g+cvs20050121/stopwatch.c:85: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(buf, "%02d:%02d:%02d", h,m,s);
data/biosquid-1.9g+cvs20050121/stopwatch.c:248: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[128];	/* (safely holds up to 10^14 years) */
data/biosquid-1.9g+cvs20050121/translate_main.c:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char        *aaseq[6];        /* full translations in all 6 frames    */
data/biosquid-1.9g+cvs20050121/translate_main.c:108:57:  [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).
    else if (strcmp(optname, "-l") == 0) minimum_len  = atoi(optarg);
data/biosquid-1.9g+cvs20050121/translate_main.c:143:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((ofp = fopen(outfile, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/weight.c:246: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(psym[acol], "ACDEFGHIKLMNPQRSTVWY ");
data/biosquid-1.9g+cvs20050121/weight_main.c:102:58:  [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).
      else if (strcmp(optname, "-s")  == 0) samplesize = atoi(optarg);
data/biosquid-1.9g+cvs20050121/weight_main.c:127:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  else if ((ofp = fopen(outfile, "w")) == NULL)
data/biosquid-1.9g+cvs20050121/a2m.c:105:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(buf, &(msa->aseq[idx][pos]), cpl);
data/biosquid-1.9g+cvs20050121/aligneval.c:173:48:  [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).
  s1_list = (int *) MallocOrDie (sizeof(int) * strlen(s1));
data/biosquid-1.9g+cvs20050121/aligneval.c:230:48:  [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).
  s1_list = (int *) MallocOrDie (sizeof(int) * strlen(s1));
data/biosquid-1.9g+cvs20050121/aligneval.c:231:48:  [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).
  canons1 = (int *) MallocOrDie (sizeof(int) * strlen(s1));
data/biosquid-1.9g+cvs20050121/alignio.c:247:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (rpos != strlen(ss))
data/biosquid-1.9g+cvs20050121/alignio.c:282:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (alen != strlen(ss))
data/biosquid-1.9g+cvs20050121/alignio.c:344:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(sname1, name1, 10);
data/biosquid-1.9g+cvs20050121/alignio.c:348:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(sname2, name2, 10);
data/biosquid-1.9g+cvs20050121/alignio.c:363:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf1, s1, 60); buf1[60] = '\0';
data/biosquid-1.9g+cvs20050121/alignio.c:364:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf2, s2, 60); buf2[60] = '\0';
data/biosquid-1.9g+cvs20050121/alignio.c:365:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      count1 = strlen(buf1);
data/biosquid-1.9g+cvs20050121/alignio.c:366:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      count2 = strlen(buf2);
data/biosquid-1.9g+cvs20050121/alignio.c:529: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).
      rlen[idx] = strlen(rseqs[idx]);
data/biosquid-1.9g+cvs20050121/clustal.c:150:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(msa->sqname[idx])) > namelen) 
data/biosquid-1.9g+cvs20050121/clustal.c:164:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(buf, msa->aseq[idx] + pos, cpl);
data/biosquid-1.9g+cvs20050121/dirichlet.c:373:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  d->K        = strlen(alphabet);
data/biosquid-1.9g+cvs20050121/eps.c:64:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = (int) strlen(msa->sqname[i])) > namewidth)
data/biosquid-1.9g+cvs20050121/file.c:68:31:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  if (len > 0)                strncpy(dirname, file, len);
data/biosquid-1.9g+cvs20050121/file.c:99:48:  [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).
  tail = (char *) MallocOrDie (sizeof(char) * (strlen(file)+1));
data/biosquid-1.9g+cvs20050121/file.c:164:48:  [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).
  full = (char *) MallocOrDie (sizeof(char) * (strlen(dir)+strlen(file)+2));
data/biosquid-1.9g+cvs20050121/file.c:164:60:  [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).
  full = (char *) MallocOrDie (sizeof(char) * (strlen(dir)+strlen(file)+2));
data/biosquid-1.9g+cvs20050121/file.c:184: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).
  new = MallocOrDie(strlen(filename) + strlen(sfx) + 2);
data/biosquid-1.9g+cvs20050121/file.c:184:40:  [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).
  new = MallocOrDie(strlen(filename) + strlen(sfx) + 2);
data/biosquid-1.9g+cvs20050121/file.c:238:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (((int) strlen(fname) + (int) strlen(s) + 2) > 1024) 
data/biosquid-1.9g+cvs20050121/file.c:238:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (((int) strlen(fname) + (int) strlen(s) + 2) > 1024) 
data/biosquid-1.9g+cvs20050121/getopt.c:102:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      arglen = strlen(argv[optind]);
data/biosquid-1.9g+cvs20050121/getopt.c:110:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (arglen == strlen(opt[i].name)) break; /* exact match, stop now */
data/biosquid-1.9g+cvs20050121/getopt.c:200:52:  [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).
      else if (opt[opti].argtype == sqdARG_CHAR && strlen(*ret_optarg) != 1)
data/biosquid-1.9g+cvs20050121/gki.c:184:55:  [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).
  hash->table[val]->key = MallocOrDie(sizeof(char) * (strlen(key)+1));
data/biosquid-1.9g+cvs20050121/hsregex.c:119:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(sqd_parse[i], pat->startp[i], len);
data/biosquid-1.9g+cvs20050121/hsregex.c:395:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (OP(scan) == EXACTLY && strlen(OPERAND(scan)) >= len) {
data/biosquid-1.9g+cvs20050121/hsregex.c:397: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).
					len = strlen(OPERAND(scan));
data/biosquid-1.9g+cvs20050121/hsregex.c:970: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).
			len = strlen(opnd);
data/biosquid-1.9g+cvs20050121/hsregex.c:1100: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).
		return(strlen(ep->reginput));
data/biosquid-1.9g+cvs20050121/hsregex.c:1197: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.
	(void) strcpy(buf, ":");
data/biosquid-1.9g+cvs20050121/hsregex.c:1239:15:  [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).
		sprintf(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/biosquid-1.9g+cvs20050121/hsregex.c:1251:15:  [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).
		sprintf(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/biosquid-1.9g+cvs20050121/hsregex.c:1311:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(dst, prog->startp[no], len);
data/biosquid-1.9g+cvs20050121/msa.c:698:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (msa->ss_cons != NULL && strlen(msa->ss_cons) != msa->alen) 
data/biosquid-1.9g+cvs20050121/msa.c:700:2:  [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).
	strlen(msa->ss_cons), msa->alen,
data/biosquid-1.9g+cvs20050121/msa.c:704:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (msa->sa_cons != NULL && strlen(msa->sa_cons) != msa->alen) 
data/biosquid-1.9g+cvs20050121/msa.c:706:2:  [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).
	strlen(msa->sa_cons), msa->alen,
data/biosquid-1.9g+cvs20050121/msa.c:710:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (msa->rf != NULL && strlen(msa->rf) != msa->alen) 
data/biosquid-1.9g+cvs20050121/msa.c:712:2:  [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).
	strlen(msa->rf), msa->alen,
data/biosquid-1.9g+cvs20050121/msa.c:776:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(filename) + strlen("gzip -dc ") >= 256)
data/biosquid-1.9g+cvs20050121/msa.c:776:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(filename) + strlen("gzip -dc ") >= 256)
data/biosquid-1.9g+cvs20050121/msa.c:800:42:  [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).
	  ssifile = MallocOrDie(sizeof(char) * (strlen(filename) + 5));
data/biosquid-1.9g+cvs20050121/msa.c:807:42:  [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).
	  ssifile = MallocOrDie(sizeof(char) * (strlen(full) + strlen(filename)  + 5));
data/biosquid-1.9g+cvs20050121/msa.c:807:57:  [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).
	  ssifile = MallocOrDie(sizeof(char) * (strlen(full) + strlen(filename)  + 5));
data/biosquid-1.9g+cvs20050121/msf.c:292:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(msa->sqname[idx])) > namelen) 
data/biosquid-1.9g+cvs20050121/msf.c:367:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(buffer, gcg_aseq[idx] + pos, 50);
data/biosquid-1.9g+cvs20050121/phylip.c:111:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name, s, 10);	/* First ten chars are the name */
data/biosquid-1.9g+cvs20050121/phylip.c:178:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(buf, msa->aseq[idx] + pos, cpl);
data/biosquid-1.9g+cvs20050121/rk.c:35:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((len =  strlen(probe)) > RK_HASHSIZE) return 0;
data/biosquid-1.9g+cvs20050121/selex.c:180:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    for (sptr = buffer + strlen(buffer) - 1;  
data/biosquid-1.9g+cvs20050121/selex.c:386:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (! copy_alignment_line(ainfo->cs, currlen, strlen(nptr)-1, 
data/biosquid-1.9g+cvs20050121/selex.c:394:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (! copy_alignment_line(ainfo->rf, currlen, strlen(nptr)-1, 
data/biosquid-1.9g+cvs20050121/selex.c:401:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (! copy_alignment_line(ainfo->sqinfo[seqidx-1].ss, currlen, strlen(nptr)-1,
data/biosquid-1.9g+cvs20050121/selex.c:410:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (! copy_alignment_line(ainfo->sqinfo[seqidx-1].sa, currlen, strlen(nptr)-1,
data/biosquid-1.9g+cvs20050121/selex.c:418:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (! copy_alignment_line(aseqs[seqidx], currlen, strlen(nptr)-1, 
data/biosquid-1.9g+cvs20050121/selex.c:579:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(msa->sqname[i])) > namewidth) 
data/biosquid-1.9g+cvs20050121/selex.c:630:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, msa->ss_cons + currpos, cpl);
data/biosquid-1.9g+cvs20050121/selex.c:635:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, msa->rf + currpos, cpl);
data/biosquid-1.9g+cvs20050121/selex.c:641:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(buf, msa->aseq[i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/selex.c:646:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(buf, msa->ss[i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/selex.c:651:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(buf, msa->sa[i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/selex.c:736:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      seqlen = strlen(aseqs[idx]);
data/biosquid-1.9g+cvs20050121/seqencode.c:99: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).
  bases = strlen(seq);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:193:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(seqfrag, seq+pos, fraglength+overlap);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:194: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).
	  len = strlen(seqfrag);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:239: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).
    len += strlen(source);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:243:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (origdesc != NULL) len += strlen(origdesc);
data/biosquid-1.9g+cvs20050121/seqsplit_main.c:269: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(origname) + 8;
data/biosquid-1.9g+cvs20050121/sfetch_main.c:236:4:  [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).
	((strlen(dbdir) + strlen(dbenv[dbidx].ssiname) + 2) * sizeof(char));
data/biosquid-1.9g+cvs20050121/sfetch_main.c:236: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).
	((strlen(dbdir) + strlen(dbenv[dbidx].ssiname) + 2) * sizeof(char));
data/biosquid-1.9g+cvs20050121/sfetch_main.c:249:4:  [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).
	((strlen(dbdir) + strlen(dbfile) + 2) * sizeof(char));
data/biosquid-1.9g+cvs20050121/sfetch_main.c:249: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).
	((strlen(dbdir) + strlen(dbfile) + 2) * sizeof(char));
data/biosquid-1.9g+cvs20050121/sfetch_main.c:259:40:  [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).
      ssifile = (char *) MallocOrDie ((strlen(seqfile) + 5) * sizeof(char));
data/biosquid-1.9g+cvs20050121/sfetch_main.c:331:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      endlen = strlen(dbenv[dbidx].entryend);
data/biosquid-1.9g+cvs20050121/sfetch_main.c:397:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      if (strncpy(frag, seq+from-1, to-from+1) == NULL)
data/biosquid-1.9g+cvs20050121/sfetch_main.c:404:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  if (strncpy(ss, sqinfo.ss+from-1, to-from+1) == NULL)
data/biosquid-1.9g+cvs20050121/shuffle.c:64: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 (len = strlen(s1); len > 1; len--)
data/biosquid-1.9g+cvs20050121/shuffle.c:114:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s2);
data/biosquid-1.9g+cvs20050121/shuffle.c:298:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s2);
data/biosquid-1.9g+cvs20050121/shuffle.c:349:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s2);
data/biosquid-1.9g+cvs20050121/shuffle.c:408:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s2);
data/biosquid-1.9g+cvs20050121/shuffle.c:442:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s1);
data/biosquid-1.9g+cvs20050121/shuffle.c:581:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  L = strlen(x);
data/biosquid-1.9g+cvs20050121/shuffle_main.c:248:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen(seq) != strlen(seq2))
data/biosquid-1.9g+cvs20050121/shuffle_main.c:248: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).
	  if (strlen(seq) != strlen(seq2))
data/biosquid-1.9g+cvs20050121/shuffle_main.c:264:20:  [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.
      if (no_desc) strcpy(sqinfo.desc, "");
data/biosquid-1.9g+cvs20050121/shuffle_main.c:278:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(shuff, seq+start, truncation);
data/biosquid-1.9g+cvs20050121/sqio.c:135:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(filename) + strlen("gzip -dc ") >= 256)
data/biosquid-1.9g+cvs20050121/sqio.c:135:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(filename) + strlen("gzip -dc ") >= 256)
data/biosquid-1.9g+cvs20050121/sqio.c:340: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 (pos = strlen(sptr)-1; pos >= 0; pos--)
data/biosquid-1.9g+cvs20050121/sqio.c:348:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sqinfo->name, sptr, SQINFO_NAMELEN-1);
data/biosquid-1.9g+cvs20050121/sqio.c:357:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sqinfo->id, sptr, SQINFO_NAMELEN-1);
data/biosquid-1.9g+cvs20050121/sqio.c:366:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sqinfo->acc, sptr, SQINFO_NAMELEN-1);
data/biosquid-1.9g+cvs20050121/sqio.c:377: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).
	    len = strlen(sqinfo->desc);
data/biosquid-1.9g+cvs20050121/sqio.c:380:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
		strncat(sqinfo->desc, " ", SQINFO_DESCLEN-1-len); len++;
data/biosquid-1.9g+cvs20050121/sqio.c:381:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(sqinfo->desc, sptr, SQINFO_DESCLEN-1-len);
data/biosquid-1.9g+cvs20050121/sqio.c:385:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(sqinfo->desc, sptr, SQINFO_DESCLEN-1);
data/biosquid-1.9g+cvs20050121/sqio.c:1091: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).
      V->seqlen = strlen(V->seq);
data/biosquid-1.9g+cvs20050121/sqio.c:1409:41:  [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).
    chk = (chk + GCGchecksum(seqs[idx], strlen(seqs[idx]))) % 10000;
data/biosquid-1.9g+cvs20050121/sqio.c:1531:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(seq);
data/biosquid-1.9g+cvs20050121/sqio.c:1536:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, seq+pos, 60);
data/biosquid-1.9g+cvs20050121/sqio.c:1557:61:  [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).
  seqlen     = (sqinfo->flags & SQINFO_LEN) ? sqinfo->len : strlen(seq);
data/biosquid-1.9g+cvs20050121/sqio.c:1563:3:  [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( endstr,"");
data/biosquid-1.9g+cvs20050121/sqio.c:1569:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(endstr,"\n"); /* end w/ extra blank line */
data/biosquid-1.9g+cvs20050121/sqio.c:1654:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(endstr, "\n");  /* this is insurance to help prevent misreads at eof */
data/biosquid-1.9g+cvs20050121/sqio.c:1675:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(endstr,"1"); /* == linear dna */
data/biosquid-1.9g+cvs20050121/sre_stack.c:427:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((n2 = strlen(s)) != n1) {
data/biosquid-1.9g+cvs20050121/sre_string.c:34:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((new = (char *) malloc (strlen(s) +1)) == NULL) return NULL;
data/biosquid-1.9g+cvs20050121/sre_string.c:49:7:  [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).
  i = strlen(s) - 1;		         /* set i at last char in string     */
data/biosquid-1.9g+cvs20050121/sre_string.c:266:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(*buf);
data/biosquid-1.9g+cvs20050121/sre_string.c:280: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(s);
data/biosquid-1.9g+cvs20050121/sre_string.c:330:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (ldest < 0) len1 = ((*dest == NULL) ? 0 : strlen(*dest));
data/biosquid-1.9g+cvs20050121/sre_string.c:333:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (lsrc < 0)  len2 = ((  src == NULL) ? 0 : strlen(src)); 
data/biosquid-1.9g+cvs20050121/sre_string.c:435:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (n < 0) n = strlen(s);
data/biosquid-1.9g+cvs20050121/sre_string.c:458:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(s1,s2,n);
data/biosquid-1.9g+cvs20050121/ssi.c:623:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(filename);
data/biosquid-1.9g+cvs20050121/ssi.c:731:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(key);
data/biosquid-1.9g+cvs20050121/ssi.c:805:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(key);
data/biosquid-1.9g+cvs20050121/stockholm.c:227:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(msa->sqname[i])) > namewidth) 
data/biosquid-1.9g+cvs20050121/stockholm.c:237:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(msa->gr_tag[i])) > typewidth) typewidth = len;
data/biosquid-1.9g+cvs20050121/stockholm.c:243:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(msa->gc_tag[i])) > typewidth) typewidth = len;
data/biosquid-1.9g+cvs20050121/stockholm.c:334:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(buf, msa->aseq[i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:340:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(buf, msa->ss[i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:345:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(buf, msa->sa[i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:351:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy(buf, msa->gr[j][i] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:358:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, msa->ss_cons + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:364:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, msa->sa_cons + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:370:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, msa->rf + currpos, cpl);
data/biosquid-1.9g+cvs20050121/stockholm.c:375:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, msa->gc[j] + currpos, cpl);
data/biosquid-1.9g+cvs20050121/translate.c:51:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((aaseq = (char *) calloc (strlen(seq) + 1, sizeof(char))) == NULL)
data/biosquid-1.9g+cvs20050121/translate.c:75:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      aaptr += strlen(code[codon]);
data/biosquid-1.9g+cvs20050121/translate_main.c:219:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    len = strlen(orf);	      
data/biosquid-1.9g+cvs20050121/types.c:36:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strncmp(s, "0x", 2) == 0 && (int) strlen(s) > 2) ||
data/biosquid-1.9g+cvs20050121/types.c:37:42:  [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).
      (strncmp(s, "0X", 2) == 0 && (int) strlen(s) > 2))
data/biosquid-1.9g+cvs20050121/types.c:42:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (*s == '0' && (int) strlen(s) > 1)

ANALYSIS SUMMARY:

Hits = 303
Lines analyzed = 21327 in approximately 0.69 seconds (31030 lines/second)
Physical Source Lines of Code (SLOC) = 12567
Hits@level = [0] 314 [1] 140 [2] 106 [3]   3 [4]  54 [5]   0
Hits@level+ = [0+] 617 [1+] 303 [2+] 163 [3+]  57 [4+]  54 [5+]   0
Hits/KSLOC@level+ = [0+] 49.0968 [1+] 24.1108 [2+] 12.9705 [3+] 4.53569 [4+] 4.29697 [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.