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/ispell-3.4.00/proto.h
Examining data/ispell-3.4.00/exp_table.h
Examining data/ispell-3.4.00/deformatters/defmt-c.c
Examining data/ispell-3.4.00/deformatters/defmt-sh.c
Examining data/ispell-3.4.00/languages/english/msgs.h
Examining data/ispell-3.4.00/languages/fix8bit.c
Examining data/ispell-3.4.00/pc/djterm.c
Examining data/ispell-3.4.00/fields.h
Examining data/ispell-3.4.00/ispell.h
Examining data/ispell-3.4.00/defmt.c
Examining data/ispell-3.4.00/dump.c
Examining data/ispell-3.4.00/exp_table.c
Examining data/ispell-3.4.00/fields.c
Examining data/ispell-3.4.00/good.c
Examining data/ispell-3.4.00/hash.c
Examining data/ispell-3.4.00/icombine.c
Examining data/ispell-3.4.00/ijoin.c
Examining data/ispell-3.4.00/makedent.c
Examining data/ispell-3.4.00/sq.c
Examining data/ispell-3.4.00/term.c
Examining data/ispell-3.4.00/tgood.c
Examining data/ispell-3.4.00/unsq.c
Examining data/ispell-3.4.00/version.h
Examining data/ispell-3.4.00/xgets.c
Examining data/ispell-3.4.00/tree.c
Examining data/ispell-3.4.00/ispell.c
Examining data/ispell-3.4.00/buildhash.c
Examining data/ispell-3.4.00/correct.c
Examining data/ispell-3.4.00/lookup.c

FINAL RESULTS:

data/ispell-3.4.00/ispell.c:1138:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    (void) chmod (tempfile, statbuf.st_mode);
data/ispell-3.4.00/ispell.c:1370:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    (void) chmod (filename, statbuf->st_mode);
data/ispell-3.4.00/proto.h:238:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
extern int	chmod P ((const char * file, unsigned int mode));
data/ispell-3.4.00/proto.h:240:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
extern int	chmod P ((const char * file, unsigned long mode));
data/ispell-3.4.00/sq.c:96:12:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    while (gets (word) != NULL)
data/ispell-3.4.00/unsq.c:129:9:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    if (gets (wordp) == NULL)
data/ispell-3.4.00/buildhash.c:175:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_USAGE);
data/ispell-3.4.00/buildhash.c:185:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (Sfile, Dfile);
data/ispell-3.4.00/buildhash.c:189:5:  [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 (Sfile, STATSUFFIX);
data/ispell-3.4.00/buildhash.c:210:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_ZERO_COUNT);
data/ispell-3.4.00/buildhash.c:217:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_CREATE, Sfile, MAYBE_CR (stderr));
data/ispell-3.4.00/buildhash.c:268:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_CREATE, Hfile, MAYBE_CR (stderr));
data/ispell-3.4.00/buildhash.c:355:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr,
data/ispell-3.4.00/buildhash.c:357:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_BAFF_2);
data/ispell-3.4.00/buildhash.c:456:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_OVERFLOW, overflows);
data/ispell-3.4.00/buildhash.c:546:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_CANT_OPEN_DICT);
data/ispell-3.4.00/buildhash.c:554:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_NO_SPACE);
data/ispell-3.4.00/buildhash.c:597:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy ((char *) ucbuf, (char *) d.word);
data/ispell-3.4.00/buildhash.c:625:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    (void) fprintf (stderr, BHASH_C_COLLISION_SPACE);
data/ispell-3.4.00/buildhash.c:662:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_COUNTING);
data/ispell-3.4.00/buildhash.c:666:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_CANT_OPEN_DICT);
data/ispell-3.4.00/buildhash.c:683:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, WORD_TOO_LONG (buf));
data/ispell-3.4.00/buildhash.c:712:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, BHASH_C_WORD_COUNT, count);
data/ispell-3.4.00/correct.c:276:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_1, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:277:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_2, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:278:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_3, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:279:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_4, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:280:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_5, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:281:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_6, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:282:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_7, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:283:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_8, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:284:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_9, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:286:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_COMMANDS, MAYBE_CR (helpout),
data/ispell-3.4.00/correct.c:289:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_R_CMD, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:290:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_BLANK, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:291:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_A_CMD, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:292:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_I_CMD, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:293:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_U_CMD, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:294:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_0_CMD, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:295:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_L_CMD, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:296:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_X_CMD, MAYBE_CR (helpout),
data/ispell-3.4.00/correct.c:298:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_Q_CMD, MAYBE_CR (helpout),
data/ispell-3.4.00/correct.c:300:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_BANG, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:301:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_REDRAW, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:302:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_SUSPEND, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:303:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (helpout, CORR_C_HELP_HELP, MAYBE_CR (helpout));
data/ispell-3.4.00/correct.c:309:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (helpout, CORR_C_HELP_TYPE_SPACE);
data/ispell-3.4.00/correct.c:338:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy ((char *) contextbufs[bufno],
data/ispell-3.4.00/correct.c:394:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy ((char *) contextbufs[0], (char *) filteredbuf);
data/ispell-3.4.00/correct.c:399:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, CORR_C_SHORT_SOURCE,
data/ispell-3.4.00/correct.c:443:9:  [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) printf (CORR_C_FILE_LABEL, currentfile);
data/ispell-3.4.00/correct.c:513:9:  [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) printf (CORR_C_MINI_MENU);
data/ispell-3.4.00/correct.c:532:14:  [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) printf (CORR_C_CONFIRM_QUIT);
data/ispell-3.4.00/correct.c:602:10:  [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) printf (CORR_C_REPLACE_WITH);
data/ispell-3.4.00/correct.c:619:11:  [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) printf (WORD_TOO_LONG ((char *) ctok));
data/ispell-3.4.00/correct.c:643:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    (void) strcpy ((char *) ctok, possibilities[i]);
data/ispell-3.4.00/correct.c:670:10:  [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) printf (CORR_C_LOOKUP_PROMPT);
data/ispell-3.4.00/correct.c:839:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy ((char *) copy, (char *) buf);
data/ispell-3.4.00/correct.c:1056:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (possibilities[pcount++], (char *) realword);
data/ispell-3.4.00/correct.c:1673:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, CANT_CREATE, askfilename,
data/ispell-3.4.00/correct.c:1706:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy ((char *) contextbufs[0], (char *) filteredbuf);
data/ispell-3.4.00/correct.c:1911:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf (cmd, "%s %s %s", LOOK, grepstr, WORDS);
data/ispell-3.4.00/correct.c:1921:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (cmd, "%s ^%s$ %s", EGREPCMD, grepstr, WORDS);
data/ispell-3.4.00/correct.c:1938:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf (cmd, "^%s$", grepstr);
data/ispell-3.4.00/correct.c:1946:13:  [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) printf (CORR_C_MORE_PROMPT);
data/ispell-3.4.00/correct.c:1956:13:  [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) printf (CORR_C_BLANK_MORE);
data/ispell-3.4.00/correct.c:1963:9:  [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) printf (CORR_C_END_LOOK);
data/ispell-3.4.00/defmt.c:476:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    (void) fprintf (stderr, DEFMT_C_TEX_MATH_ERROR,
data/ispell-3.4.00/defmt.c:745:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, WORD_TOO_LONG ((char *) ctoken));
data/ispell-3.4.00/defmt.c:1072:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, DEFMT_C_LR_MATH_ERROR,
data/ispell-3.4.00/defmt.c:1350:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, DEFMT_C_NO_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/defmt.c:1358: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 (wlist, rawtags);
data/ispell-3.4.00/defmt.c:1366: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 (wlist, envtags);
data/ispell-3.4.00/defmt.c:1372: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 (wlist, deftags);
data/ispell-3.4.00/defmt.c:1389:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf (stderr, DEFMT_C_NO_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/defmt.c:1432:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf (stderr, DEFMT_C_NO_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/exp_table.c:110:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, TGOOD_C_NO_SPACE);
data/ispell-3.4.00/exp_table.c:119:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, TGOOD_C_NO_SPACE);
data/ispell-3.4.00/icombine.c:169:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, ICOMBINE_C_BAD_TYPE, preftype);
data/ispell-3.4.00/icombine.c:184:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ICOMBINE_C_USAGE);
data/ispell-3.4.00/icombine.c:225:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, WORD_TOO_LONG (lbuf));
data/ispell-3.4.00/icombine.c:232:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, WORD_TOO_LONG (lbuf));
data/ispell-3.4.00/ispell.c:255:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE1, Cmd);
data/ispell-3.4.00/ispell.c:256:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE2, Cmd);
data/ispell-3.4.00/ispell.c:257:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE3, Cmd);
data/ispell-3.4.00/ispell.c:258:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE4, Cmd);
data/ispell-3.4.00/ispell.c:259:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE5, Cmd);
data/ispell-3.4.00/ispell.c:260:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE6, Cmd);
data/ispell-3.4.00/ispell.c:261:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf (stderr, ISPELL_C_USAGE7, Cmd);
data/ispell-3.4.00/ispell.c:290:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (libdir, LIBDIR);
data/ispell-3.4.00/ispell.c:301:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy (hashname, p);
data/ispell-3.4.00/ispell.c:303:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf (hashname, "%s/%s", libdir, p);
data/ispell-3.4.00/ispell.c:304:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (libdictname, p);
data/ispell-3.4.00/ispell.c:307:13:  [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 (hashname, HASHSUFFIX);
data/ispell-3.4.00/ispell.c:318:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (hashname, "%s/%s", libdir, DEFHASH);
data/ispell-3.4.00/ispell.c:338:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, ISPELL_C_NO_OPTIONS_SPACE);
data/ispell-3.4.00/ispell.c:347:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, ISPELL_C_NO_OPTIONS_SPACE);
data/ispell-3.4.00/ispell.c:392:14:  [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) printf (ISPELL_C_OPTIONS_ARE);
data/ispell-3.4.00/ispell.c:841:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    (void) strcpy (hashname, p);
data/ispell-3.4.00/ispell.c:843:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    (void) sprintf (hashname, "%s/%s", libdir, p);
data/ispell-3.4.00/ispell.c:850:14:  [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 (hashname, HASHSUFFIX);
data/ispell-3.4.00/ispell.c:916:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (argv[argno], R_OK) >= 0)
data/ispell-3.4.00/ispell.c:921:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr,
data/ispell-3.4.00/ispell.c:941:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, ISPELL_C_BAD_TYPE, preftype);
data/ispell-3.4.00/ispell.c:974:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (libdictname, DEFHASH);
data/ispell-3.4.00/ispell.c:1015:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf (logfilename, "%s/%s/%s",
data/ispell-3.4.00/ispell.c:1069:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_OPEN, filename, MAYBE_CR (stderr));
data/ispell-3.4.00/ispell.c:1074:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    readonly = access (filename, W_OK) < 0;
data/ispell-3.4.00/ispell.c:1077:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, ISPELL_C_CANT_WRITE, filename,
data/ispell-3.4.00/ispell.c:1090:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (tempfile, TEMPNAME);
data/ispell-3.4.00/ispell.c:1107:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (tempfile, "%s%s%s", tmp,
data/ispell-3.4.00/ispell.c:1112:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    if (mktemp (tempfile) == NULL  ||  tempfile[0] == '\0'
data/ispell-3.4.00/ispell.c:1124:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_CREATE,
data/ispell-3.4.00/ispell.c:1214:9:  [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.
	return popen (defmtpgm, "r");
data/ispell-3.4.00/ispell.c:1244:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, ISPELL_C_UNEXPECTED_FD, filename,
data/ispell-3.4.00/ispell.c:1248:17:  [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.
	filteredfile = popen (defmtpgm, "r");
data/ispell-3.4.00/ispell.c:1251:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, ISPELL_C_UNEXPECTED_FD, filename,
data/ispell-3.4.00/ispell.c:1270:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, ISPELL_C_TEMP_DISAPPEARED, tempfile,
data/ispell-3.4.00/ispell.c:1280:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf (bakfile, "%.*s%s", (int) (sizeof bakfile - sizeof BAKEXT),
data/ispell-3.4.00/ispell.c:1293:9:  [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 (pathtail, BAKEXT);
data/ispell-3.4.00/ispell.c:1321: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 (pathtail + MAXBASENAMELEN + 1, BAKEXT);
data/ispell-3.4.00/ispell.c:1338: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 (MAXEXTLEN <= sizeof (BAKEXT) - 1
data/ispell-3.4.00/ispell.c:1358:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_CREATE, filename, MAYBE_CR (stderr));
data/ispell-3.4.00/ispell.c:1407:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (origbuf, buf);
data/ispell-3.4.00/ispell.c:1435:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    (void) fprintf (stderr, BAD_FLAG, MAYBE_CR (stderr),
data/ispell-3.4.00/ispell.c:1443:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, WORD_TOO_LONG (buf));
data/ispell-3.4.00/ispell.h:230:24:  [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 icharcpy(a, b)	strcpy ((char *) (a), (char *) (b))
data/ispell-3.4.00/lookup.c:121:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_OPEN, hashname, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:129:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, LOOKUP_C_CANT_READ, hashname,
data/ispell-3.4.00/lookup.c:132:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, LOOKUP_C_NULL_HASH, hashname,
data/ispell-3.4.00/lookup.c:135:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr,
data/ispell-3.4.00/lookup.c:142:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr,
data/ispell-3.4.00/lookup.c:149:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr,
data/ispell-3.4.00/lookup.c:158:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr,
data/ispell-3.4.00/lookup.c:178:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, LOOKUP_C_NO_HASH_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:203:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, LOOKUP_C_NO_HASH_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:218:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, LOOKUP_C_BAD_FORMAT, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:234:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, LOOKUP_C_BAD_FORMAT, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:242:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, LOOKUP_C_BAD_FORMAT, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:332:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, LOOKUP_C_NO_LANG_SPACE,
data/ispell-3.4.00/lookup.c:395:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, LOOKUP_C_NO_LANG_SPACE,
data/ispell-3.4.00/lookup.c:416:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, LOOKUP_C_NO_LANG_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/lookup.c:504:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG (schar));
data/ispell-3.4.00/makedent.c:198:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG ((char *) lbuf));
data/ispell-3.4.00/makedent.c:212:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, MAKEDENT_C_BAD_WORD_CHAR,
data/ispell-3.4.00/makedent.c:227:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG ((char *) lbuf));
data/ispell-3.4.00/makedent.c:234:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, MAKEDENT_C_NO_WORD_SPACE,
data/ispell-3.4.00/makedent.c:239:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy ((char *) d->word, (char *) lbuf);
data/ispell-3.4.00/makedent.c:252:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, BAD_FLAG,
data/ispell-3.4.00/makedent.c:329:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, MAKEDENT_C_NO_WORD_SPACE,
data/ispell-3.4.00/makedent.c:343:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, MAKEDENT_C_NO_WORD_SPACE,
data/ispell-3.4.00/makedent.c:348:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy ((char *) tdent->word, (char *) dp->word);
data/ispell-3.4.00/makedent.c:463:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, MAKEDENT_C_NO_WORD_SPACE,
data/ispell-3.4.00/makedent.c:545:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy ((char *) oldp->word, (char *) newp->word);
data/ispell-3.4.00/makedent.c:713:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG ((char *) cent->word));
data/ispell-3.4.00/makedent.c:952:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG ((char *) in));
data/ispell-3.4.00/makedent.c:967:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG (out));
data/ispell-3.4.00/makedent.c:986:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (out,
data/ispell-3.4.00/proto.h:230:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
extern int	access P ((const char * file, int mode));
data/ispell-3.4.00/proto.h:245:12:  [4] (shell) execvp:
  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.
extern int	execvp P ((const char * name, const char * argv[]));
data/ispell-3.4.00/proto.h:277:15:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
extern char *	mktemp P ((char * prototype));
data/ispell-3.4.00/proto.h:287:15:  [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).
extern char *	strcat P ((char * dest, const char * src));
data/ispell-3.4.00/proto.h:292:15:  [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).
extern char *	strcpy P ((char * dest, const char * src));
data/ispell-3.4.00/proto.h:301:12:  [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.
extern int	system P ((const char * command));
data/ispell-3.4.00/sq.c:117:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (prev, word);
data/ispell-3.4.00/term.c:278:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, TERM_C_SMALL_SCREEN, MINCONTEXT + 8);
data/ispell-3.4.00/term.c:289:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, TERM_C_NO_BATCH);
data/ispell-3.4.00/term.c:309:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, TERM_C_NO_BATCH);
data/ispell-3.4.00/term.c:336:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, TERM_C_NO_BATCH);
data/ispell-3.4.00/term.c:541:9:  [4] (shell) execvp:
  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.
	(void) execvp (argv[0], (char **) argv);
data/ispell-3.4.00/term.c:552:9:  [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) printf (TERM_C_CANT_FORK, MAYBE_CR (stderr));
data/ispell-3.4.00/term.c:582:9:  [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) printf (TERM_C_TYPE_SPACE);
data/ispell-3.4.00/term.c:637:12:  [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.
    (void) system (buf);
data/ispell-3.4.00/term.c:668:12:  [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) printf (TERM_C_TYPE_SPACE);
data/ispell-3.4.00/tree.c:218:10:  [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).
		(void) strcpy (personaldict, seconddict);
data/ispell-3.4.00/tree.c:220:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf (personaldict, "%s/%s%s", h == NULL ? "" : h,
data/ispell-3.4.00/tree.c:253:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy (personaldict, p);
data/ispell-3.4.00/tree.c:270:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy (personaldict, p);
data/ispell-3.4.00/tree.c:279:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf (personaldict, "%s/%s", h, p);
data/ispell-3.4.00/tree.c:292:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf (stderr, CANT_OPEN, p, MAYBE_CR (stderr));
data/ispell-3.4.00/tree.c:300:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      &&  access (personaldict, W_OK) < 0  &&  errno != ENOENT)
data/ispell-3.4.00/tree.c:302:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, TREE_C_CANT_UPDATE, personaldict,
data/ispell-3.4.00/tree.c:322:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (filename, "%s%s", prefix, suffix);
data/ispell-3.4.00/tree.c:324:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (filename, "%s/%s%s", home, prefix, suffix);
data/ispell-3.4.00/tree.c:376:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, TREE_C_NO_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/tree.c:386:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, TREE_C_TRY_ANYWAY, MAYBE_CR (stderr));
data/ispell-3.4.00/tree.c:474:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, WORD_TOO_LONG ((char *) proto->word));
data/ispell-3.4.00/tree.c:488:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf (stderr, TREE_C_NO_SPACE, MAYBE_CR (stderr));
data/ispell-3.4.00/tree.c:557:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, CANT_CREATE, personaldict, MAYBE_CR (stderr));
data/ispell-3.4.00/unsq.c:122:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, UNSQ_C_BAD_COUNT, (unsigned int) count_char);
data/ispell-3.4.00/unsq.c:131:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf (stderr, UNSQ_C_SURPRISE_EOF);
data/ispell-3.4.00/unsq.c:134:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (prev, word);
data/ispell-3.4.00/defmt.c:1327:41:  [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.
    envtags = (envvar == NULL) ? NULL : getenv (envvar);
data/ispell-3.4.00/ispell.c:288:9:  [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.
    p = getenv (LIBRARYVAR);
data/ispell-3.4.00/ispell.c:297:9:  [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.
    p = getenv (DICTIONARYVAR);
data/ispell-3.4.00/ispell.c:327:9:  [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.
    p = getenv (OPTIONVAR);
data/ispell-3.4.00/ispell.c:929: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.
	preftype = getenv (CHARSETVAR);
data/ispell-3.4.00/ispell.c:1016:7:  [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.
      getenv ("HOME") == NULL ? "" : getenv ("HOME"),
data/ispell-3.4.00/ispell.c:1016:38:  [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.
      getenv ("HOME") == NULL ? "" : getenv ("HOME"),
data/ispell-3.4.00/ispell.c:1093: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.
	char *tmp = getenv ("TMPDIR");
data/ispell-3.4.00/ispell.c:1097: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.
	    tmp = getenv ("TEMP");
data/ispell-3.4.00/ispell.c:1099: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.
	    tmp = getenv ("TMP");
data/ispell-3.4.00/pc/djterm.c:295:18:  [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.
	ispell_colors = getenv ("ISPELL_COLORS");
data/ispell-3.4.00/proto.h:267:15:  [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.
extern char *	getenv P ((const char * varname));
data/ispell-3.4.00/term.c:213:23:  [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.
    tgetent (termcap, getenv ("TERM"));
data/ispell-3.4.00/term.c:243:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("COLUMNS") != NULL)
data/ispell-3.4.00/term.c:244: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.
	co = atoi (getenv ("COLUMNS"));
data/ispell-3.4.00/term.c:245:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("LINES") != NULL)
data/ispell-3.4.00/term.c:246: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.
	li = atoi (getenv ("LINES"));
data/ispell-3.4.00/term.c:484:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("SHELL"))
data/ispell-3.4.00/term.c:485: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.
	(void) shellescape (getenv ("SHELL"));
data/ispell-3.4.00/tree.c:157:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	p = getenv (PDICTVAR);
data/ispell-3.4.00/tree.c:164: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.
    if ((h = getenv (HOME)) == NULL)
data/ispell-3.4.00/xgets.c:113: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 ((env_variable = getenv (INCSTRVAR)) != NULL)
data/ispell-3.4.00/buildhash.c:137: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		Sfile[MAXPATHLEN]; /* Name of statistics file */
data/ispell-3.4.00/buildhash.c:215: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 ((statf = fopen (Sfile, "w")) == NULL)
data/ispell-3.4.00/buildhash.c:266: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 ((houtfile = fopen (Hfile, "wb")) == NULL)
data/ispell-3.4.00/buildhash.c:336:15:  [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.
	n = strlen ((char *) chartypes[i].name) + 1;
data/ispell-3.4.00/buildhash.c:337:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	fwrite ((char *) chartypes[i].name, n, 1, houtfile);
data/ispell-3.4.00/buildhash.c:538: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	lbuf[INPUTWORDLEN + MAXAFFIXLEN + 2 * MASKBITS];
data/ispell-3.4.00/buildhash.c:539: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	ucbuf[INPUTWORDLEN + MAXAFFIXLEN + 2 * MASKBITS];
data/ispell-3.4.00/buildhash.c:544: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 ((dictf = fopen (Dfile, "r")) == NULL)
data/ispell-3.4.00/buildhash.c:651: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	buf[INPUTWORDLEN + MAXAFFIXLEN + 2 * MASKBITS];
data/ispell-3.4.00/buildhash.c:664: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 ((d = fopen (Dfile, "r")) == NULL)
data/ispell-3.4.00/correct.c:338:22:  [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.
	    (void) strcpy ((char *) contextbufs[bufno],
data/ispell-3.4.00/correct.c:339:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      (char *) contextbufs[bufno - 1]);
data/ispell-3.4.00/correct.c:344:21:  [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.
	    while (fgets ((char *) contextbufs[0], sizeof contextbufs[0],
data/ispell-3.4.00/correct.c:347: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.
		(void) fputs ((char *) contextbufs[0], outfile);
data/ispell-3.4.00/correct.c:359: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.
		while (fgets ((char *) contextbufs[0], sizeof contextbufs[0],
data/ispell-3.4.00/correct.c:362:22:  [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.
		    (void) fputs ((char *) contextbufs[0], outfile);
data/ispell-3.4.00/correct.c:394:22:  [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.
	    (void) strcpy ((char *) contextbufs[0], (char *) filteredbuf);
data/ispell-3.4.00/correct.c:574: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.
		unsigned char	buf[200];
data/ispell-3.4.00/correct.c:643:23:  [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.
		    (void) strcpy ((char *) ctok, possibilities[i]);
data/ispell-3.4.00/correct.c:668: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.
		unsigned char	buf[100];
data/ispell-3.4.00/correct.c:822: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	copy[BUFSIZ];
data/ispell-3.4.00/correct.c:958: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.
	    qsort ((char *) possibilities,
data/ispell-3.4.00/correct.c:1036:15:  [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.
	if (strcmp ((char *) ctok, possibilities[i]) == 0)
data/ispell-3.4.00/correct.c:1706: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.
	(void) strcpy ((char *) contextbufs[0], (char *) filteredbuf);
data/ispell-3.4.00/correct.c:1874: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[150];
data/ispell-3.4.00/correct.c:1875: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		grepstr[100];
data/ispell-3.4.00/correct.c:1920:13:  [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.
	    (void) strcat (grepstr, ".*");	/* work like look */
data/ispell-3.4.00/defmt.c:251: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 dctrl_field_name[128] = "";
data/ispell-3.4.00/defmt.c:801:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			      (char *) hits[0].dictent->word);
data/ispell-3.4.00/icombine.c:214: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	lbuf[INPUTWORDLEN + MAXAFFIXLEN + 2 * MASKBITS];
data/ispell-3.4.00/ijoin.c:202: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).
		    join1field = atoi (argv[1]) - 1;
data/ispell-3.4.00/ijoin.c:204: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).
		    join2field = atoi (argv[1]) - 1;
data/ispell-3.4.00/ijoin.c:206:33:  [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).
		    join1field = join2field = atoi (argv[1]) - 1;
data/ispell-3.4.00/ijoin.c:232:36:  [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).
		    outlist[outlistsize].field = atoi (&argv[0][2]) - 1;
data/ispell-3.4.00/ijoin.c:262: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).
	file1 = fopen (argv[1], "r");
data/ispell-3.4.00/ijoin.c:266: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).
    file2 = fopen (argv[2], "r");
data/ispell-3.4.00/ispell.c:271: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	libdir[MAXPATHLEN];
data/ispell-3.4.00/ispell.c:277: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	libdictname[sizeof DEFHASH];
data/ispell-3.4.00/ispell.c:278: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	logfilename[MAXPATHLEN];
data/ispell-3.4.00/ispell.c:279: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	outbuf[BUFSIZ];
data/ispell-3.4.00/ispell.c:767: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).
		contextsize = atoi (p);
data/ispell-3.4.00/ispell.c:881: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).
		    minword = atoi (*argv);
data/ispell-3.4.00/ispell.c:884: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).
		    minword = atoi (*argv + 2);
data/ispell-3.4.00/ispell.c:1018: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).
    logfile = fopen (logfilename, "a");
data/ispell-3.4.00/ispell.c:1114:20:  [2] (misc) open:
  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).
      ||  (outfd = open (tempfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) < 0
data/ispell-3.4.00/ispell.c:1117: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).
      ||  (outfile = fopen (tempfile, "w")) == NULL)
data/ispell-3.4.00/ispell.c:1120:18:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    if ((outfd = mkstemp (tempfile)) < 0
data/ispell-3.4.00/ispell.c:1200: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).
	    filteredfile = fopen (filename, "r");
data/ispell-3.4.00/ispell.c:1233: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).
	sourcefile = fopen (filename, "r");
data/ispell-3.4.00/ispell.c:1239:12:  [2] (misc) open:
  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).
	inputfd = open (filename, 0);
data/ispell-3.4.00/ispell.c:1264: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		bakfile[MAXPATHLEN];
data/ispell-3.4.00/ispell.c:1268: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 ((infile = fopen (tempfile, "r")) == NULL)
data/ispell-3.4.00/ispell.c:1356: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 ((outfile = fopen (filename, "w")) == NULL)
data/ispell-3.4.00/ispell.c:1392: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		buf[BUFSIZ];
data/ispell-3.4.00/ispell.c:1397: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		origbuf[BUFSIZ]; /* Original contents of buf */
data/ispell-3.4.00/ispell.c:1398: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		ratiobuf[20];	/* Expansion/root length ratio */
data/ispell-3.4.00/ispell.c:1451:10:  [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.
		(void) sprintf (ratiobuf, " %f",
data/ispell-3.4.00/ispell.h:341: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		conds[SET_SIZE + MAXSTRINGCHARS]; /* Adj. char conds */
data/ispell-3.4.00/ispell.h:392: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 nrchars[5];				/* Nroff special characters */
data/ispell-3.4.00/ispell.h:393: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 texchars[13];				/* TeX special characters */
data/ispell-3.4.00/ispell.h:400: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 wordchars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for chars found in wrds */
data/ispell-3.4.00/ispell.h:401: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 upperchars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for uppercase chars */
data/ispell-3.4.00/ispell.h:402: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 lowerchars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for lowercase chars */
data/ispell-3.4.00/ispell.h:403: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 boundarychars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for boundary chars */
data/ispell-3.4.00/ispell.h:404: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 stringstarts[SET_SIZE];		/* NZ if char can start str */
data/ispell-3.4.00/ispell.h:405: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 stringchars[MAXSTRINGCHARS][MAXSTRINGCHARLEN + 1];
data/ispell-3.4.00/ispell.h:593:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN unsigned char
data/ispell-3.4.00/ispell.h:598:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN unsigned char
data/ispell-3.4.00/ispell.h:600:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN unsigned char
data/ispell-3.4.00/ispell.h:604:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char	termcap[2048];	/* termcap entry */
data/ispell-3.4.00/ispell.h:605:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char	termstr[2048];	/* for string values */
data/ispell-3.4.00/ispell.h:621:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char	hashname[MAXPATHLEN]; /* Name of hash table file */
data/ispell-3.4.00/ispell.h:662:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char	possibilities[MAXPOSSIBLE][INPUTWORDLEN + MAXAFFIXLEN];
data/ispell-3.4.00/ispell.h:733: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.
INIT (char tempfile[MAXPATHLEN], "");	/* Name of file we're spelling into */
data/ispell-3.4.00/lookup.c:119:19:  [2] (misc) open:
  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 ((hashfd = open (hashname, O_RDONLY | MSDOS_BINARY_OPEN)) < 0)
data/ispell-3.4.00/lookup.c:424:27:  [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.
	    nextchar += strlen ((char *) chartypes[i].name) + 1;
data/ispell-3.4.00/lookup.c:445: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			stripbuf[INPUTWORDLEN + 4 * MAXAFFIXLEN + 4];
data/ispell-3.4.00/lookup.c:500: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		schar[INPUTWORDLEN + MAXAFFIXLEN];
data/ispell-3.4.00/makedent.c:791:21:  [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 unsigned char *
data/ispell-3.4.00/makedent.c:963:21:  [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 unsigned char
data/ispell-3.4.00/makedent.c:978: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		out[MAXSTRINGCHARLEN + 1];
data/ispell-3.4.00/makedent.c:1074:25:  [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.
	    if (strcmp (name, (char *) chartypes[i].name) == 0)
data/ispell-3.4.00/makedent.c:1118: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		num[4];
data/ispell-3.4.00/makedent.c:1165: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).
		    c = atoi (num);
data/ispell-3.4.00/proto.h:231: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).
extern int	atoi P ((const char * string));
data/ispell-3.4.00/proto.h:233:15:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern VOID *	bcopy P ((const VOID * src, VOID * dest, unsigned int size));
data/ispell-3.4.00/proto.h:274:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern VOID *	memcpy P ((VOID * dest, const VOID * src));
data/ispell-3.4.00/proto.h:278:12:  [2] (misc) open:
  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).
extern int	open P ((const char * file, int mode));
data/ispell-3.4.00/sq.c:93: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[257];
data/ispell-3.4.00/sq.c:94: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	prev[257] = "";
data/ispell-3.4.00/term.c:244: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).
	co = atoi (getenv ("COLUMNS"));
data/ispell-3.4.00/term.c:246: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).
	li = atoi (getenv ("LINES"));
data/ispell-3.4.00/term.c:502: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 *	argv[100];
data/ispell-3.4.00/term.c:605: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	curdir[MAXPATHLEN];
data/ispell-3.4.00/tgood.c:773: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			flags_str_buf[MASKSIZE + 1];
data/ispell-3.4.00/tree.c:136:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char		personaldict[MAXPATHLEN];
data/ispell-3.4.00/tree.c: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		seconddict[MAXPATHLEN]; /* Name of secondary dict */
data/ispell-3.4.00/tree.c:254: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 ((dictf = fopen (personaldict, "r")) != NULL)
data/ispell-3.4.00/tree.c:271: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 ((dictf = fopen (personaldict, "r")) != NULL)
data/ispell-3.4.00/tree.c:280: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 ((dictf = fopen (personaldict, "r")) != NULL)
data/ispell-3.4.00/tree.c:325: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).
    dictf = fopen (filename, "r");
data/ispell-3.4.00/tree.c:334: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		buf[BUFSIZ];	/* Buffer for reading pers dict */
data/ispell-3.4.00/tree.c:504: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		chword[INPUTWORDLEN + MAXAFFIXLEN];
data/ispell-3.4.00/tree.c:555: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 ((dictf = fopen (personaldict, "w")) == NULL)
data/ispell-3.4.00/tree.c:664:13:  [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.
    qsort ((char *) sortlist, (unsigned) pdictsize,
data/ispell-3.4.00/tree.c:708: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		    dummy[INPUTWORDLEN + MAXAFFIXLEN];
data/ispell-3.4.00/unsq.c:96: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[257];
data/ispell-3.4.00/unsq.c:97: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		prev[257] = "";
data/ispell-3.4.00/xgets.c:164:12:  [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 ((f = fopen (file_name, "r")) != NULL)
data/ispell-3.4.00/buildhash.c:336: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).
	n = strlen ((char *) chartypes[i].name) + 1;
data/ispell-3.4.00/buildhash.c:339: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).
	n = strlen (chartypes[i].deformatter) + 1;
data/ispell-3.4.00/buildhash.c:344: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).
	  n += strlen (&chartypes[i].suffixes[n]) + 1)
data/ispell-3.4.00/buildhash.c:366: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).
	    n = strlen ((char *) dp->word) + 1;
data/ispell-3.4.00/correct.c:373: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).
	bufsize = strlen ((char *) filteredbuf);
data/ispell-3.4.00/correct.c:381:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getc (infile);
data/ispell-3.4.00/correct.c:427:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    begintoken = curcontextchar - strlen ((char *) ctok);
data/ispell-3.4.00/correct.c:508:44:  [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).
    show_line (start_l2, begintoken, (int) strlen ((char *) ctok));
data/ispell-3.4.00/correct.c:1057: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).
    i = strlen ((char *) realword);
data/ispell-3.4.00/correct.c:1714: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).
	bufsize = strlen ((char *) filteredbuf);
data/ispell-3.4.00/correct.c:1723:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getc (stdin);
data/ispell-3.4.00/defmt.c:670: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 ((char *) filteredbuf) - 1;
data/ispell-3.4.00/defmt.c:863: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).
				- strlen ((char *) ctoken)) + contextoffset);
data/ispell-3.4.00/defmt.c:884: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).
				- strlen ((char *) ctoken)) + contextoffset);
data/ispell-3.4.00/defmt.c:1342: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).
	wsize += strlen (rawtags) + 1;
data/ispell-3.4.00/defmt.c:1344: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).
	wsize += strlen (envtags) + 1;
data/ispell-3.4.00/defmt.c:1346: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).
	wsize += strlen (deftags) + 1;
data/ispell-3.4.00/defmt.c:1365: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 (wlist, ",");
data/ispell-3.4.00/defmt.c:1371: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 (wlist, ",");
data/ispell-3.4.00/defmt.c:1463:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((char *) keywordbuf, (char *) str, i);
data/ispell-3.4.00/deformatters/defmt-c.c:152:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getchar ();
data/ispell-3.4.00/deformatters/defmt-sh.c:143:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getchar ();
data/ispell-3.4.00/exp_table.c:115: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).
    copy_size = strlen (s) + 1;
data/ispell-3.4.00/exp_table.c:123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (copy, s, copy_size);
data/ispell-3.4.00/fields.c:101: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).
	linesize += strlen (&linebuf[linesize]);
data/ispell-3.4.00/fields.c:137: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).
    linesize = strlen (line);
data/ispell-3.4.00/ispell.c:293:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy (libdir, p, sizeof libdir);
data/ispell-3.4.00/ispell.c:377: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).
	arglen = strlen (*argv);
data/ispell-3.4.00/ispell.c:1106: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).
	lastchar = tmp[strlen (tmp) - 1];
data/ispell-3.4.00/ispell.c:1277:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy (bakfile, filename, sizeof bakfile - 1);
data/ispell-3.4.00/ispell.c:1289:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strcmp(BAKEXT, filename + strlen(filename) - sizeof BAKEXT + 1) != 0)
data/ispell-3.4.00/ispell.c:1291: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).
	if (strlen (pathtail) > MAXNAMLEN - sizeof BAKEXT + 1)
data/ispell-3.4.00/ispell.c:1314:28:  [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 (last_dot == NULL  &&  strlen (pathtail) > MAXBASENAMELEN)
data/ispell-3.4.00/ispell.c:1326: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).
	    size_t ext_len = strlen (last_dot);
data/ispell-3.4.00/ispell.c:1373:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc (infile)) != EOF)
data/ispell-3.4.00/ispell.c:1404: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).
	rootlength = strlen (buf);
data/ispell-3.4.00/ispell.c:1422: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 ((int) strlen (buf) > INPUTWORDLEN - 1)
data/ispell-3.4.00/ispell.h:229: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).
#define icharlen(s)	strlen ((char *) (s))
data/ispell-3.4.00/languages/fix8bit.c:181:18:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getchar ()) != EOF)
data/ispell-3.4.00/languages/fix8bit.c:356:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return getchar();
data/ispell-3.4.00/lookup.c:125:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hashsize = read (hashfd, (char *) &hashheader, sizeof hashheader);
data/ispell-3.4.00/lookup.c:215:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read (hashfd, hashstrings, (unsigned) hashheader.lstringsize)
data/ispell-3.4.00/lookup.c:228:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read (hashfd, hashstrings, (unsigned) hashheader.stringsize)
data/ispell-3.4.00/lookup.c:230:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  ||  read (hashfd, (char *) hashtbl,
data/ispell-3.4.00/lookup.c:238:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((unsigned) read (hashfd, (char *) sflaglist,
data/ispell-3.4.00/lookup.c:424: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).
	    nextchar += strlen ((char *) chartypes[i].name) + 1;
data/ispell-3.4.00/lookup.c:426: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).
	    nextchar += strlen (chartypes[i].deformatter) + 1;
data/ispell-3.4.00/lookup.c:429: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).
		nextchar += strlen ((char *) &hashstrings[nextchar]) + 1;
data/ispell-3.4.00/makedent.c:176: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).
    len = (int) strlen ((char *) lbuf) - 1;
data/ispell-3.4.00/makedent.c:218: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).
    len = (int) strlen ((char *) lbuf);
data/ispell-3.4.00/makedent.c:340:29:  [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).
	  mymalloc ((unsigned int) strlen ((char *) tdent->word) + 1);
data/ispell-3.4.00/makedent.c:637: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).
    (void) ichartostr (s, is, strlen ((char *) s) + 1, 1);
data/ispell-3.4.00/makedent.c:1069: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 (name);
data/ispell-3.4.00/makedent.c:1095: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).
	    cplen = strlen (cp);
data/ispell-3.4.00/makedent.c:1164: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).
		    wchars += strlen (num);
data/ispell-3.4.00/makedent.c:1169: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).
		    wchars += strlen (num);
data/ispell-3.4.00/proto.h:283:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
extern int	read P ((int fd, VOID * buf, unsigned int n));
data/ispell-3.4.00/proto.h:294:3:  [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 P ((const char * str));
data/ispell-3.4.00/proto.h:297:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
extern char *	strncpy P ((char * dest, const char * src, unsigned int len));
data/ispell-3.4.00/tgood.c:818: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).
	    if (strlen (fs) != 0)
data/ispell-3.4.00/tgood.c:827: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).
	explength += strlen (expansion);
data/ispell-3.4.00/unsq.c:113:18:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count_char = getchar ();
data/ispell-3.4.00/xgets.c:115: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).
	Include_Len = strlen (Include_File);
data/ispell-3.4.00/xgets.c:125:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          &&  (c = getc (*current_F)) != EOF)
data/ispell-3.4.00/xgets.c:153: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).
		char*	p = file_name + strlen (file_name) - 1;

ANALYSIS SUMMARY:

Hits = 388
Lines analyzed = 15209 in approximately 0.53 seconds (28663 lines/second)
Physical Source Lines of Code (SLOC) = 10065
Hits@level = [0] 213 [1]  65 [2] 109 [3]  22 [4] 186 [5]   6
Hits@level+ = [0+] 601 [1+] 388 [2+] 323 [3+] 214 [4+] 192 [5+]   6
Hits/KSLOC@level+ = [0+] 59.7119 [1+] 38.5494 [2+] 32.0914 [3+] 21.2618 [4+] 19.076 [5+] 0.596125
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.