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/bible-kjv-4.30/bible.c
Examining data/bible-kjv-4.30/bible.h
Examining data/bible-kjv-4.30/brl-index.c
Examining data/bible-kjv-4.30/brl.c
Examining data/bible-kjv-4.30/brl.h
Examining data/bible-kjv-4.30/buildcmp.c
Examining data/bible-kjv-4.30/cmp.h
Examining data/bible-kjv-4.30/compresslib.c
Examining data/bible-kjv-4.30/debian/randverse.c
Examining data/bible-kjv-4.30/makeconcfile.c
Examining data/bible-kjv-4.30/makeindex.c
Examining data/bible-kjv-4.30/squish.c
Examining data/bible-kjv-4.30/squish.h
Examining data/bible-kjv-4.30/tsl.c
Examining data/bible-kjv-4.30/tsl.h
Examining data/bible-kjv-4.30/util.c
Examining data/bible-kjv-4.30/util.h
Examining data/bible-kjv-4.30/version.h

FINAL RESULTS:

data/bible-kjv-4.30/tsl.c:661:5:  [5] (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 high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    strncat( cfname, ".conc", STRSZ );
data/bible-kjv-4.30/bible.c:234:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( range_str, " in %s-%s",
data/bible-kjv-4.30/bible.c:538:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat( lbuf, vref );
data/bible-kjv-4.30/bible.c:688:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    n=sscanf(cmd, "?%s", w);
data/bible-kjv-4.30/bible.c:703:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    n=sscanf(p, "%s", w);
data/bible-kjv-4.30/bible.c:712:4:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	n=sscanf(p, "%s", w);
data/bible-kjv-4.30/bible.c:720:4:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	n=sscanf(p, "%s", w);
data/bible-kjv-4.30/bible.c:730:4:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	n=sscanf(p, "%s", w);
data/bible-kjv-4.30/bible.c:742:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    n=sscanf(p, "%s", w);
data/bible-kjv-4.30/bible.c:826:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(promptbuf, "%s(%s) [%s]%s ", myname,
data/bible-kjv-4.30/brl.c:1032:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf( dstp, "\n%s %d\n\n",
data/bible-kjv-4.30/brl.c:1077: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(dstp, srcp);
data/bible-kjv-4.30/brl.c:1082: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(dstp, srcp);
data/bible-kjv-4.30/brl.c:1124:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(vbuf, "%s%d:%d", bookabbrvstr[bk], chp, v);
data/bible-kjv-4.30/debian/randverse.c:229:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(opt, argv[i]);
data/bible-kjv-4.30/debian/randverse.c:279:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cmd, "%s%d:%d", books[bkno].t, chno, vno);
data/bible-kjv-4.30/debian/randverse.c:282:9:  [4] (shell) execlp:
  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.
  vno = execlp("bible", opt, cmd, NULL);
data/bible-kjv-4.30/makeconcfile.c:202:12:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    while (scanf( "%s", word) > 0) {
data/bible-kjv-4.30/squish.c:561: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(tempname, *fileptr);
data/bible-kjv-4.30/squish.c:589: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(ofname, *fileptr);
data/bible-kjv-4.30/squish.c:627: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(ofname, *fileptr);
data/bible-kjv-4.30/tsl.c:205:5:  [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, ap);
data/bible-kjv-4.30/tsl.h:158:82:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void tsl_error(const int fatal, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
data/bible-kjv-4.30/bible.c:575:13:  [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 ((s=getenv("COLUMNS")) == NULL)
data/bible-kjv-4.30/bible.c:931:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		  if ((s=getenv("COLUMNS")) == NULL)
data/bible-kjv-4.30/debian/randverse.c:234:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(ii);
data/bible-kjv-4.30/bible.c:225: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 range_str[VSPECSZ];
data/bible-kjv-4.30/bible.c:226: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 vref1[REFSZ], vref2[REFSZ];
data/bible-kjv-4.30/bible.c:450: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 vref1[REFSZ], vref2[REFSZ];
data/bible-kjv-4.30/bible.c:510: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 vref[REFSZ];		/* verse ref buffer */
data/bible-kjv-4.30/bible.c:512: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 lbuf[LINESZ];		/* line buffer */
data/bible-kjv-4.30/bible.c:520: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( lbuf, "  References [%d]: ", select_count );
data/bible-kjv-4.30/bible.c:578:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		line_width = atoi(s) -1;
data/bible-kjv-4.30/bible.c:610: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 vref[REFSZ];
data/bible-kjv-4.30/bible.c:656: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 ((outf = fopen( fname, "a" )) == NULL) {
data/bible-kjv-4.30/bible.c:681: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 w[VSPECSZ];
data/bible-kjv-4.30/bible.c:781: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 vs[REFSZ];
data/bible-kjv-4.30/bible.c:823: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 vbuf[REFSZ];
data/bible-kjv-4.30/bible.c:824:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 promptbuf[LINESZ];
data/bible-kjv-4.30/bible.c:919:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  line_width = atoi(++(*argv));
data/bible-kjv-4.30/bible.c:925:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  line_width = atoi(*++argv);
data/bible-kjv-4.30/bible.c:934:22:  [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).
		      line_width = atoi(s) -1;
data/bible-kjv-4.30/bible.c:944: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).
	      mem_limit = atoi(*argv);
data/bible-kjv-4.30/brl.c:1004: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 vb1[VBSIZE], vb2[VBSIZE];
data/bible-kjv-4.30/buildcmp.c:130: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(NULL==(sf = fopen( "squish.stats",  "r" ))){
data/bible-kjv-4.30/buildcmp.c:134: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(NULL==(df = fopen( "squish.data",   "r" ))){
data/bible-kjv-4.30/buildcmp.c:138: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(NULL==(of = fopen( "squish.output", "w" ))){
data/bible-kjv-4.30/compresslib.c:559:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, *inbp, size);
data/bible-kjv-4.30/debian/randverse.c:22: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 cmd[32], opt[32] = "";
data/bible-kjv-4.30/makeconcfile.c:130:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char obuf[SELECTSZ*sizeof(ref_t)];
data/bible-kjv-4.30/makeconcfile.c:143: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 word[WRDSZ];
data/bible-kjv-4.30/makeconcfile.c:153: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).
    outfp = fopen( *argv, "w" );
data/bible-kjv-4.30/makeconcfile.c:158: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).
    indexfp = fopen( INDEXTMPF, "w+" );
data/bible-kjv-4.30/makeconcfile.c:159: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).
    datafp = fopen( DATATMPF, "w+" );
data/bible-kjv-4.30/makeindex.c:100: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	textbuff[TBSIZE];
data/bible-kjv-4.30/makeindex.c:108:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen( argv[1], "r" );
data/bible-kjv-4.30/squish.c:359: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 ofname [100];
data/bible-kjv-4.30/squish.c:424: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 tempname[100];
data/bible-kjv-4.30/squish.c:519: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).
			maxbits = atoi(*argv);
data/bible-kjv-4.30/squish.c:533:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			piecesize = atoi(*argv);
data/bible-kjv-4.30/squish.c:562:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		    strcat(tempname, ".Z");
data/bible-kjv-4.30/squish.c:636:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(ofname, ".Z");
data/bible-kjv-4.30/squish.c:641: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 response[2];
data/bible-kjv-4.30/squish.c:874:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	statf = fopen( "squish.stats", "w" );
data/bible-kjv-4.30/squish.c:930:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[BITS];
data/bible-kjv-4.30/tsl.c:246:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char tbuf[SELECTSZ*sizeof(ref_t)];
data/bible-kjv-4.30/tsl.c:556:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( vb, cp, size );
data/bible-kjv-4.30/tsl.c:598: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 cfname[STRSZ+1]; /*allow space for trailing NULL*/
data/bible-kjv-4.30/tsl.h:112: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	magic[2];
data/bible-kjv-4.30/tsl.h:113: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	version[2];
data/bible-kjv-4.30/tsl.h:114: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	description[TSL_DESCRSZ];
data/bible-kjv-4.30/tsl.h:146: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	magic[2];	/* Magic number */
data/bible-kjv-4.30/tsl.h:147: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	version[2];	/* For versioning */
data/bible-kjv-4.30/tsl.h:148: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  name[TSL_DESCRSZ];	/* String describing file contents */
data/bible-kjv-4.30/util.c:67: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 dfpath[PATHSZ];
data/bible-kjv-4.30/util.c:90:5:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp=fopen( dfpath, "r");
data/bible-kjv-4.30/util.h:60:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char Univ_Int[4];/* Universal, byte-order-independent integer*/
data/bible-kjv-4.30/util.h:61:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char Short_Univ_Int[2]; /* shorter Univ_Int */
data/bible-kjv-4.30/bible.c:522: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).
    lcnt = strlen(lbuf);
data/bible-kjv-4.30/bible.c:526:6:  [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(vref);
data/bible-kjv-4.30/bible.c:535:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat( lbuf, " " );
data/bible-kjv-4.30/bible.c:711: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).
	p = cmd + strlen(w) +1;
data/bible-kjv-4.30/bible.c:719: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).
	p = cmd + strlen(w) +1;
data/bible-kjv-4.30/bible.c:729: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).
	p = cmd + strlen(w) +1;
data/bible-kjv-4.30/brl.c:1052: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).
		    while ((int)strlen(srcp) > (lwidth-indent)) {
data/bible-kjv-4.30/brl.c:1071:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dstp, srcp, len);
data/bible-kjv-4.30/buildcmp.c:94:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy( fh.description, "Compressed Data File", TSL_DESCRSZ );
data/bible-kjv-4.30/buildcmp.c:124:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( (c = getc(df)) != EOF ) putc(c, of);
data/bible-kjv-4.30/makeconcfile.c:170:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy( fh.name, "KJV Concordance", TSL_DESCRSZ );
data/bible-kjv-4.30/makeindex.c:128: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).
	offset += strlen(textbuff);
data/bible-kjv-4.30/squish.c:559:25:  [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 (strcmp(*fileptr + strlen(*fileptr) - 2, ".Z") != 0) {
data/bible-kjv-4.30/squish.c:571:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    if ((getchar() != (magic_header[0] & 0xFF))
data/bible-kjv-4.30/squish.c:572:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		     || (getchar() != (magic_header[1] & 0xFF))) {
data/bible-kjv-4.30/squish.c:577:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    maxbits = getchar();	/* set -b from file */
data/bible-kjv-4.30/squish.c:590: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).
		ofname[strlen(*fileptr) - 2] = '\0';  /* Strip off .Z */
data/bible-kjv-4.30/squish.c:592:25:  [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 (strcmp(*fileptr + strlen(*fileptr) - 2, ".Z") == 0) {
data/bible-kjv-4.30/squish.c:631: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).
		if (strlen(cp) > 12) {
data/bible-kjv-4.30/squish.c:648:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(2, response, 2);
data/bible-kjv-4.30/squish.c:650:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			    if (read(2, response+1, 1) < 0) {	/* Ack! */
data/bible-kjv-4.30/squish.c:694:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((getchar()!=(magic_header[0] & 0xFF))
data/bible-kjv-4.30/squish.c:695:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		 || (getchar()!=(magic_header[1] & 0xFF))) {
data/bible-kjv-4.30/squish.c:699:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		maxbits = getchar();	/* set -b from file */
data/bible-kjv-4.30/squish.c:784:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ent = getchar ();
data/bible-kjv-4.30/squish.c:795:18:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( (c = getchar()) != (unsigned) EOF ) {
data/bible-kjv-4.30/squish.c:797:18:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( (c = getchar()) != EOF ) {
data/bible-kjv-4.30/tsl.c:660:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( cfname, dfname, STRSZ );

ANALYSIS SUMMARY:

Hits = 106
Lines analyzed = 7002 in approximately 0.26 seconds (27288 lines/second)
Physical Source Lines of Code (SLOC) = 3537
Hits@level = [0] 139 [1]  28 [2]  52 [3]   3 [4]  22 [5]   1
Hits@level+ = [0+] 245 [1+] 106 [2+]  78 [3+]  26 [4+]  23 [5+]   1
Hits/KSLOC@level+ = [0+] 69.2677 [1+] 29.9689 [2+] 22.0526 [3+] 7.35086 [4+] 6.50269 [5+] 0.282725
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.