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/lucy-1.20/abi.c
Examining data/lucy-1.20/poly.c
Examining data/lucy-1.20/qual_trim.c
Examining data/lucy-1.20/splice.c
Examining data/lucy-1.20/vector.c
Examining data/lucy-1.20/lucy-s/abi.c
Examining data/lucy-1.20/lucy-s/poly.c
Examining data/lucy-1.20/lucy-s/qual_trim.c
Examining data/lucy-1.20/lucy-s/splice.c
Examining data/lucy-1.20/lucy-s/vector.c
Examining data/lucy-1.20/lucy-s/lucy.c
Examining data/lucy-1.20/lucy.c

FINAL RESULTS:

data/lucy-1.20/lucy-s/lucy.c:19:30:  [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).
#define newstring(len, str) (strcpy(malloc(sizeof(char)*(len)), (str)))
data/lucy-1.20/lucy-s/lucy.c:311:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "unknown option %s", argv[i]);
data/lucy-1.20/lucy-s/lucy.c:405:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "duplicate names >%s in input sequence file",
data/lucy-1.20/lucy-s/lucy.c:416:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(buf, "invalid character %c for >%s in sequence file",
data/lucy-1.20/lucy-s/lucy.c:461:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "invalid/mismatch quality input for sequence >%s",
data/lucy-1.20/lucy-s/lucy.c:468:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "invalid/mismatch quality input for sequence >%s",
data/lucy-1.20/lucy-s/lucy.c:479:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(buf2, "==> dropping %s", ptr->name);
data/lucy-1.20/lucy-s/lucy.c:542:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf, "invalid character %c for >%s in 2nd sequence file",
data/lucy-1.20/lucy-s/lucy.c:560:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(buf2, "<== saving %s", ptr->name);
data/lucy-1.20/lucy-s/lucy.c:873:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, ">%s", seqs[i].name);
data/lucy-1.20/lucy-s/lucy.c:876:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, ">%s %d %d %d %d %d\n",
data/lucy-1.20/lucy-s/lucy.c:880:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, ">%s\n", seqs[i].name);
data/lucy-1.20/lucy-s/qual_trim.c:883: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(seq_name, sptr);
data/lucy-1.20/lucy.c:20:30:  [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).
#define newstring(len, str) (strcpy(malloc(sizeof(char)*(len)), (str)))
data/lucy-1.20/lucy.c:455:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "unknown option %s", argv[i]);
data/lucy-1.20/lucy.c:570:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "duplicate names >%s in input sequence file",
data/lucy-1.20/lucy.c:581:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(buf, "invalid character %c for >%s in sequence file",
data/lucy-1.20/lucy.c:626:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "invalid/mismatch quality input for sequence >%s",
data/lucy-1.20/lucy.c:633:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "invalid/mismatch quality input for sequence >%s",
data/lucy-1.20/lucy.c:644:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(buf2, "==> dropping %s", ptr->name);
data/lucy-1.20/lucy.c:707:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf, "invalid character %c for >%s in 2nd sequence file",
data/lucy-1.20/lucy.c:725:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(buf2, "<== saving %s", ptr->name);
data/lucy-1.20/lucy.c:976:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, ">%s", seqs[i].name);
data/lucy-1.20/lucy.c:979:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, ">%s %d %d %d %d %d\n",
data/lucy-1.20/lucy.c:983:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, ">%s\n", seqs[i].name);
data/lucy-1.20/qual_trim.c:883: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(seq_name, sptr);
data/lucy-1.20/abi.c:70:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 5: tmp=random()%2 ? 2 : 0; break;
data/lucy-1.20/abi.c:71:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 6: tmp=random()%2 ? 3 : 1; break;
data/lucy-1.20/abi.c:72:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 7: tmp=random()%2        ; break;
data/lucy-1.20/abi.c:73:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 8: tmp=random()%2 ? 3 : 0; break;
data/lucy-1.20/abi.c:74:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 9: tmp=random()%2 ? 2 : 1; break;
data/lucy-1.20/abi.c:75:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 10: tmp=random()%2 ? 3 : 2; break;
data/lucy-1.20/abi.c:76:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 11: tmp=Dlist[random()%3]; break;
data/lucy-1.20/abi.c:77:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 12: tmp=Hlist[random()%3]; break;
data/lucy-1.20/abi.c:78:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 13: tmp=random()%3; break;
data/lucy-1.20/abi.c:79:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 14: tmp=random()%3+1; break;
data/lucy-1.20/abi.c:80:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 15: tmp=random()%4; break;
data/lucy-1.20/lucy-s/abi.c:70:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 5: tmp=random()%2 ? 2 : 0; break;
data/lucy-1.20/lucy-s/abi.c:71:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 6: tmp=random()%2 ? 3 : 1; break;
data/lucy-1.20/lucy-s/abi.c:72:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 7: tmp=random()%2        ; break;
data/lucy-1.20/lucy-s/abi.c:73:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 8: tmp=random()%2 ? 3 : 0; break;
data/lucy-1.20/lucy-s/abi.c:74:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 9: tmp=random()%2 ? 2 : 1; break;
data/lucy-1.20/lucy-s/abi.c:75:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 10: tmp=random()%2 ? 3 : 2; break;
data/lucy-1.20/lucy-s/abi.c:76:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 11: tmp=Dlist[random()%3]; break;
data/lucy-1.20/lucy-s/abi.c:77:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 12: tmp=Hlist[random()%3]; break;
data/lucy-1.20/lucy-s/abi.c:78:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 13: tmp=random()%3; break;
data/lucy-1.20/lucy-s/abi.c:79:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 14: tmp=random()%3+1; break;
data/lucy-1.20/lucy-s/abi.c:80:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 15: tmp=random()%4; break;
data/lucy-1.20/lucy-s/lucy.c:352:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    vec_name=getenv("VECTOR_FILE");
data/lucy-1.20/lucy-s/lucy.c:361:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    spl_name=getenv("SPLICE_FILE");
data/lucy-1.20/lucy-s/vector.c:30:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 5: tmp=random()%2 ? 2 : 0; break;
data/lucy-1.20/lucy-s/vector.c:31:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 6: tmp=random()%2 ? 3 : 1; break;
data/lucy-1.20/lucy-s/vector.c:32:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 7: tmp=random()%2        ; break;
data/lucy-1.20/lucy-s/vector.c:33:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 8: tmp=random()%2 ? 3 : 0; break;
data/lucy-1.20/lucy-s/vector.c:34:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 9: tmp=random()%2 ? 2 : 1; break;
data/lucy-1.20/lucy-s/vector.c:35:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 10: tmp=random()%2 ? 3 : 2; break;
data/lucy-1.20/lucy-s/vector.c:36:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 11: tmp=Dlist[random()%3]; break;
data/lucy-1.20/lucy-s/vector.c:37:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 12: tmp=Hlist[random()%3]; break;
data/lucy-1.20/lucy-s/vector.c:38:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 13: tmp=random()%3; break;
data/lucy-1.20/lucy-s/vector.c:39:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 14: tmp=random()%3+1; break;
data/lucy-1.20/lucy-s/vector.c:40:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 15: tmp=random()%4; break;
data/lucy-1.20/lucy.c:496:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    vec_name=getenv("VECTOR_FILE");
data/lucy-1.20/lucy.c:505:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    spl_name=getenv("SPLICE_FILE");
data/lucy-1.20/vector.c:30:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 5: tmp=random()%2 ? 2 : 0; break;
data/lucy-1.20/vector.c:31:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 6: tmp=random()%2 ? 3 : 1; break;
data/lucy-1.20/vector.c:32:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 7: tmp=random()%2        ; break;
data/lucy-1.20/vector.c:33:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 8: tmp=random()%2 ? 3 : 0; break;
data/lucy-1.20/vector.c:34:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 9: tmp=random()%2 ? 2 : 1; break;
data/lucy-1.20/vector.c:35:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 10: tmp=random()%2 ? 3 : 2; break;
data/lucy-1.20/vector.c:36:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 11: tmp=Dlist[random()%3]; break;
data/lucy-1.20/vector.c:37:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 12: tmp=Hlist[random()%3]; break;
data/lucy-1.20/vector.c:38:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 13: tmp=random()%3; break;
data/lucy-1.20/vector.c:39:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 14: tmp=random()%3+1; break;
data/lucy-1.20/vector.c:40:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  case 15: tmp=random()%4; break;
data/lucy-1.20/lucy-s/lucy.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[BUFFER_LENGTH], buf2[BUFFER_LENGTH],
data/lucy-1.20/lucy-s/lucy.c:192:32:  [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).
          windows[num_windows]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:219:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          bracket_size=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:229: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).
	  c_min=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:230: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).
	  c_max=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:231: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).
	  c_med=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:237:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  range[0]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:238:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  range[1]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:239:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  range[2]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:245:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  match[0]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:246:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  match[1]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:247:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  match[2]=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:260:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  tag_size=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:268: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).
	  threshold=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:274:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  minimum=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:293:11:  [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).
	    cdna=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:294:11:  [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).
	    cerr=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:295:11:  [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).
	    crng=atoi(argv[++i]);
data/lucy-1.20/lucy-s/lucy.c:340: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).
  else if ((seq_file=fopen(seq_name, "r"))==NULL)
data/lucy-1.20/lucy-s/lucy.c:345: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).
  else if ((qul_file=fopen(qul_name, "r"))==NULL)
data/lucy-1.20/lucy-s/lucy.c:348:29:  [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 (abi_name && (abi_file=fopen(abi_name, "r"))==NULL)
data/lucy-1.20/lucy-s/lucy.c:354: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 ((vec_file=fopen(vec_name, "r"))==NULL)
data/lucy-1.20/lucy-s/lucy.c:363: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 ((spl_file=fopen(spl_name, "r"))==NULL)
data/lucy-1.20/lucy-s/lucy.c:630:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buf, "invalid character %c in splice file", buf[j]); 
data/lucy-1.20/lucy-s/lucy.c:818:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(buf, "invalid character %c in vector file", buf[j]); 
data/lucy-1.20/lucy-s/lucy.c:864:11:  [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).
  seq_out=fopen(seq_out_name, "w");
data/lucy-1.20/lucy-s/lucy.c:865:11:  [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).
  qul_out=fopen(qul_out_name, "w");
data/lucy-1.20/lucy-s/lucy.c:899: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).
    debug_file=fopen(debug_file_name, "w");
data/lucy-1.20/lucy-s/qual_trim.c:864: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 line_buff[4096], seq_name[80], *sptr;
data/lucy-1.20/lucy-s/qual_trim.c:892:19:  [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).
			quality[i++] = atoi(sptr);
data/lucy-1.20/lucy.c:197: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 *target_seq[MAXIMUM_THREADS+1], *splice_seq[MAX_SPLICE_SEQS];
data/lucy-1.20/lucy.c:294: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[BUFFER_LENGTH], buf2[BUFFER_LENGTH], *abi_seq, *vec_seq,
data/lucy-1.20/lucy.c:328:32:  [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).
          windows[num_windows]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:355:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          bracket_size=atoi(argv[++i]);
data/lucy-1.20/lucy.c:365: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).
	  c_min=atoi(argv[++i]);
data/lucy-1.20/lucy.c:366: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).
	  c_max=atoi(argv[++i]);
data/lucy-1.20/lucy.c:367: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).
	  c_med=atoi(argv[++i]);
data/lucy-1.20/lucy.c:373:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  range[0]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:374:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  range[1]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:375:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  range[2]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:381:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  match[0]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:382:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  match[1]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:383:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  match[2]=atoi(argv[++i]);
data/lucy-1.20/lucy.c:396:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  tag_size=atoi(argv[++i]);
data/lucy-1.20/lucy.c:404: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).
	  threshold=atoi(argv[++i]);
data/lucy-1.20/lucy.c:410:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  minimum=atoi(argv[++i]);
data/lucy-1.20/lucy.c:429:11:  [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).
	    cdna=atoi(argv[++i]);
data/lucy-1.20/lucy.c:430:11:  [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).
	    cerr=atoi(argv[++i]);
data/lucy-1.20/lucy.c:431:11:  [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).
	    crng=atoi(argv[++i]);
data/lucy-1.20/lucy.c:448:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  thread_count=atoi(argv[++i]);
data/lucy-1.20/lucy.c:484: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).
  else if ((seq_file=fopen(seq_name, "r"))==NULL)
data/lucy-1.20/lucy.c:489: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).
  else if ((qul_file=fopen(qul_name, "r"))==NULL)
data/lucy-1.20/lucy.c:492:29:  [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 (abi_name && (abi_file=fopen(abi_name, "r"))==NULL)
data/lucy-1.20/lucy.c:498: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 ((vec_file=fopen(vec_name, "r"))==NULL)
data/lucy-1.20/lucy.c:507: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 ((spl_file=fopen(spl_name, "r"))==NULL)
data/lucy-1.20/lucy.c:795:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buf, "invalid character %c in splice file", buf[j]); 
data/lucy-1.20/lucy.c:921:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(buf, "invalid character %c in vector file", buf[j]); 
data/lucy-1.20/lucy.c:967:11:  [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).
  seq_out=fopen(seq_out_name, "w");
data/lucy-1.20/lucy.c:968:11:  [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).
  qul_out=fopen(qul_out_name, "w");
data/lucy-1.20/lucy.c:1002: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).
    debug_file=fopen(debug_file_name, "w");
data/lucy-1.20/qual_trim.c:864: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 line_buff[4096], seq_name[80], *sptr;
data/lucy-1.20/qual_trim.c:892:19:  [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).
			quality[i++] = atoi(sptr);
data/lucy-1.20/splice.c:20: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 *splice_direc_pool[MAXIMUM_THREADS+1];

ANALYSIS SUMMARY:

Hits = 137
Lines analyzed = 5506 in approximately 0.20 seconds (27142 lines/second)
Physical Source Lines of Code (SLOC) = 4190
Hits@level = [0] 100 [1]   0 [2]  63 [3]  48 [4]  26 [5]   0
Hits@level+ = [0+] 237 [1+] 137 [2+] 137 [3+]  74 [4+]  26 [5+]   0
Hits/KSLOC@level+ = [0+] 56.5632 [1+] 32.6969 [2+] 32.6969 [3+] 17.6611 [4+] 6.20525 [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.