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/flex-old-2.5.4a/version.h
Examining data/flex-old-2.5.4a/ccl.c
Examining data/flex-old-2.5.4a/ecs.c
Examining data/flex-old-2.5.4a/misc.c
Examining data/flex-old-2.5.4a/sym.c
Examining data/flex-old-2.5.4a/tblcmp.c
Examining data/flex-old-2.5.4a/yylex.c
Examining data/flex-old-2.5.4a/libmain.c
Examining data/flex-old-2.5.4a/libyywrap.c
Examining data/flex-old-2.5.4a/MISC/Amiga/config.h
Examining data/flex-old-2.5.4a/MISC/alloca.c
Examining data/flex-old-2.5.4a/MISC/Borland/config.h
Examining data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c
Examining data/flex-old-2.5.4a/MISC/fastwc/mywc.c
Examining data/flex-old-2.5.4a/MISC/VMS/vms-code.c
Examining data/flex-old-2.5.4a/MISC/VMS/vms-conf.h
Examining data/flex-old-2.5.4a/MISC/OS2/config.h
Examining data/flex-old-2.5.4a/MISC/Macintosh/alloca.c
Examining data/flex-old-2.5.4a/MISC/Macintosh/alloca.h
Examining data/flex-old-2.5.4a/MISC/Macintosh/xmalloc.c
Examining data/flex-old-2.5.4a/MISC/NT/config.h
Examining data/flex-old-2.5.4a/MISC/parse.c
Examining data/flex-old-2.5.4a/MISC/parse.h
Examining data/flex-old-2.5.4a/skel.c
Examining data/flex-old-2.5.4a/gen.c
Examining data/flex-old-2.5.4a/nfa.c
Examining data/flex-old-2.5.4a/flexdef.h
Examining data/flex-old-2.5.4a/main.c
Examining data/flex-old-2.5.4a/initscan.c
Examining data/flex-old-2.5.4a/FlexLexer.h
Examining data/flex-old-2.5.4a/dfa.c

FINAL RESULTS:

data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:216:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        (void) strcpy( nmstr, (char *) yytext ); \
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:1468:32:  [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( nmstr, (char *) yytext );
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:1541:32:  [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 *) nmdef, (char *) yytext );
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:1759:32:  [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( nmstr, (char *) yytext );
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:1791:32:  [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( nmstr, (char *) yytext );
data/flex-old-2.5.4a/MISC/parse.c:423:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf( action_text, "case YY_STATE_EOF(%s):\n",
data/flex-old-2.5.4a/MISC/parse.c:448:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf( errmsg, msg, arg );
data/flex-old-2.5.4a/MISC/parse.c:470:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf( warn_msg, msg, arg );
data/flex-old-2.5.4a/MISC/parse.c:492:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf( errmsg, msg, arg );
data/flex-old-2.5.4a/MISC/parse.c:516:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( warning, "warning, %s", str );
data/flex-old-2.5.4a/gen.c:615: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( char_map, useecs ?
data/flex-old-2.5.4a/initscan.c:1300: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( nmstr, yytext ); \
data/flex-old-2.5.4a/initscan.c:1692:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			    strcpy( nmstr, yytext ); 
data/flex-old-2.5.4a/initscan.c:1801:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		           strcpy( (char *) nmdef, yytext );
data/flex-old-2.5.4a/initscan.c:2089:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			    strcpy( nmstr, yytext + 1 ); 
data/flex-old-2.5.4a/initscan.c:2308:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			    strcpy( nmstr, yytext ); 
data/flex-old-2.5.4a/initscan.c:2354:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			    strcpy( nmstr, yytext + 1 ); 
data/flex-old-2.5.4a/main.c:291:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf( outfile_path, outfile_template,
data/flex-old-2.5.4a/main.c:1151:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( outfile_path, outfile_template,
data/flex-old-2.5.4a/misc.c:47:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "#define %s %d\n", defname, value );
data/flex-old-2.5.4a/misc.c:73: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( &action_array[action_index], new_text );
data/flex-old-2.5.4a/misc.c:365:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf( errmsg, msg, arg );
data/flex-old-2.5.4a/misc.c:377:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf( errmsg, msg, arg );
data/flex-old-2.5.4a/misc.c:415:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( directive, line_fmt, linenum, filename );
data/flex-old-2.5.4a/misc.c:422:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( directive, line_fmt, out_linenum, filename );
data/flex-old-2.5.4a/misc.c:633:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( fmt, n );
data/flex-old-2.5.4a/misc.c:641:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( fmt, n1, n2 );
data/flex-old-2.5.4a/misc.c:649:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( fmt, x );
data/flex-old-2.5.4a/misc.c:666:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( fmt, str );
data/flex-old-2.5.4a/misc.c:674:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( fmt, s1, s2, s3 );
data/flex-old-2.5.4a/misc.c:685:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( fmt, str, n );
data/flex-old-2.5.4a/nfa.c:248:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf( action_text, "%s = %s + %d;\n",
data/flex-old-2.5.4a/nfa.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf( action_text, "%s -= %d;\n",
data/flex-old-2.5.4a/MISC/parse.c:551: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.
    extern char *getenv();
data/flex-old-2.5.4a/MISC/parse.c:553: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.
    if (yys = getenv("YYDEBUG"))
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:2661: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).
        yyin = fopen( infilnam, "r" );
data/flex-old-2.5.4a/MISC/Macintosh/alloca.c:121:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char	align[ALIGN_SIZE];	/* to force sizeof(header) */
data/flex-old-2.5.4a/MISC/VMS/vms-code.c:22: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.
    const char *mode[3], *rfm[3], *name[3];
data/flex-old-2.5.4a/MISC/alloca.c:144:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char align[ALIGN_SIZE];	/* To force sizeof(header).  */
data/flex-old-2.5.4a/MISC/parse.c:411:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char action_text[MAXLINE];
data/flex-old-2.5.4a/MISC/parse.c:446:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[MAXLINE];
data/flex-old-2.5.4a/MISC/parse.c:468:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char warn_msg[MAXLINE];
data/flex-old-2.5.4a/MISC/parse.c:490:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[MAXLINE];
data/flex-old-2.5.4a/MISC/parse.c:512:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char warning[MAXLINE];
data/flex-old-2.5.4a/ecs.c:121: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.
	static unsigned char cclflags[CSIZE];	/* initialized to all '\0' */
data/flex-old-2.5.4a/flexdef.h:653: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 nmstr[MAXLINE];
data/flex-old-2.5.4a/gen.c:601:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char char_map[256];
data/flex-old-2.5.4a/gen.c:606:11:  [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( char_map,
data/flex-old-2.5.4a/gen.c:610:11:  [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( char_map,
data/flex-old-2.5.4a/gen.c:711:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char NUL_ec_str[20];
data/flex-old-2.5.4a/gen.c:713: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( NUL_ec_str, "%d", NUL_ec );
data/flex-old-2.5.4a/initscan.c:3729: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).
		yyin = fopen( infilename, "r" );
data/flex-old-2.5.4a/main.c:97: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 nmstr[MAXLINE];
data/flex-old-2.5.4a/main.c:127: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 outfile_path[MAXLINE];
data/flex-old-2.5.4a/main.c:305:31:  [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 ( skelname && (skelfile = fopen( skelname, "r" )) == NULL )
data/flex-old-2.5.4a/main.c:885: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).
		backing_up_file = fopen( backing_name, "w" );
data/flex-old-2.5.4a/misc.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MAXLINE];
data/flex-old-2.5.4a/misc.c:364:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[MAXLINE];
data/flex-old-2.5.4a/misc.c:375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[MAXLINE];
data/flex-old-2.5.4a/misc.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char directive[MAXLINE], filename[MAXLINE];
data/flex-old-2.5.4a/misc.c:716:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char rform[10];
data/flex-old-2.5.4a/misc.c:734:12:  [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( rform, "\\%.3o",
data/flex-old-2.5.4a/misc.c:779:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf_storage[MAXLINE];
data/flex-old-2.5.4a/misc.c:788: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.
		((buf = (char *) skel[skel_ind++]) != 0) )
data/flex-old-2.5.4a/nfa.c:201:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char action_text[MAXLINE];
data/flex-old-2.5.4a/nfa.c:216:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf( action_text, "case %d:\n", num_rules );
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:67:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int read();
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:91:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:220:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
data/flex-old-2.5.4a/MISC/MVS/initscan-mvs.c:1543: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).
                        for ( i = strlen( (char *) nmdef ) - 1;
data/flex-old-2.5.4a/MISC/fastwc/mywc.c:11:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(f)) != EOF) {
data/flex-old-2.5.4a/MISC/fastwc/mywc.c:16:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = getc(f);
data/flex-old-2.5.4a/initscan.c:1298:5:  [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(yytext) < MAXLINE) \
data/flex-old-2.5.4a/initscan.c:1310: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).
	for ( i = strlen( str ) - 1; i >= start; --i ) \
data/flex-old-2.5.4a/initscan.c:1435:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/flex-old-2.5.4a/initscan.c:1690:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(yytext) < MAXLINE) 
data/flex-old-2.5.4a/initscan.c:1758: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).
			infilename[strlen( infilename ) - 1] = '\0';
data/flex-old-2.5.4a/initscan.c:1799: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).
		        if(strlen(yytext) < MAXLINE)
data/flex-old-2.5.4a/initscan.c:1812:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for ( i = strlen( (char *) nmdef ) - 1;
data/flex-old-2.5.4a/initscan.c:2087:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(yytext + 1 ) < MAXLINE) 
data/flex-old-2.5.4a/initscan.c:2096: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).
			nmstr[strlen( nmstr ) - 1] = '\0';
data/flex-old-2.5.4a/initscan.c:2306:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(yytext ) < MAXLINE) 
data/flex-old-2.5.4a/initscan.c:2352:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(yytext + 1 ) < MAXLINE) 
data/flex-old-2.5.4a/initscan.c:2370: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).
				int len = strlen( (char *) nmdefptr );
data/flex-old-2.5.4a/main.c:618:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     program_name[strlen( program_name ) - 1] == '+' )
data/flex-old-2.5.4a/misc.c:40:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( (int) strlen( defname ) > MAXLINE / 2 )
data/flex-old-2.5.4a/misc.c:55: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).
	int len = strlen( new_text );

ANALYSIS SUMMARY:

Hits = 87
Lines analyzed = 19083 in approximately 1.29 seconds (14803 lines/second)
Physical Source Lines of Code (SLOC) = 13401
Hits@level = [0] 137 [1]  21 [2]  31 [3]   2 [4]  33 [5]   0
Hits@level+ = [0+] 224 [1+]  87 [2+]  66 [3+]  35 [4+]  33 [5+]   0
Hits/KSLOC@level+ = [0+] 16.7152 [1+] 6.49205 [2+] 4.92501 [3+] 2.61175 [4+] 2.4625 [5+]   0
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.