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/perl-byacc-2.0/mktemp.c
Examining data/perl-byacc-2.0/main.c
Examining data/perl-byacc-2.0/closure.c
Examining data/perl-byacc-2.0/defs.h
Examining data/perl-byacc-2.0/error.c
Examining data/perl-byacc-2.0/lalr.c
Examining data/perl-byacc-2.0/lr0.c
Examining data/perl-byacc-2.0/mkpar.c
Examining data/perl-byacc-2.0/output.c
Examining data/perl-byacc-2.0/reader.c
Examining data/perl-byacc-2.0/skeleton.c
Examining data/perl-byacc-2.0/symtab.c
Examining data/perl-byacc-2.0/verbose.c
Examining data/perl-byacc-2.0/warshall.c
Examining data/perl-byacc-2.0/yyerror.c
Examining data/perl-byacc-2.0/yymain.c
Examining data/perl-byacc-2.0/test/error.tab.c
Examining data/perl-byacc-2.0/test/error.tab.h
Examining data/perl-byacc-2.0/test/ftp.tab.h
Examining data/perl-byacc-2.0/test/ftp.tab.c

FINAL RESULTS:

data/perl-byacc-2.0/test/ftp.tab.c:1385:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				else if (chmod((char *) ftpvsp[-1], ftpvsp[-3]) < 0)
data/perl-byacc-2.0/defs.h:371: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).
extern char *strcpy();
data/perl-byacc-2.0/main.c:79:14:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
extern char *mktemp(char *template);
data/perl-byacc-2.0/main.c:81:14:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
extern char *mktemp();
data/perl-byacc-2.0/main.c:174:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp_form, "%s.XXXXXXX", s);
data/perl-byacc-2.0/main.c:426: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(action_file_name, tmpdir);
data/perl-byacc-2.0/main.c:427: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(text_file_name, tmpdir);
data/perl-byacc-2.0/main.c:428: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(union_file_name, tmpdir);
data/perl-byacc-2.0/main.c:446: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(action_file_name + len, temp_form);
data/perl-byacc-2.0/main.c:447: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(text_file_name + len, temp_form);
data/perl-byacc-2.0/main.c:448: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(union_file_name + len, temp_form);
data/perl-byacc-2.0/main.c:457:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(action_file_name);
data/perl-byacc-2.0/main.c:458:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(text_file_name);
data/perl-byacc-2.0/main.c:459:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(union_file_name);
data/perl-byacc-2.0/main.c:466:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(output_file_name, perl_package);
data/perl-byacc-2.0/main.c:471:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(output_file_name, file_prefix);
data/perl-byacc-2.0/main.c:472:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(output_file_name + len, suffixes[OUTPUT_SUFFIX]);
data/perl-byacc-2.0/main.c:478: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(code_file_name, file_prefix);
data/perl-byacc-2.0/main.c:479: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(code_file_name + len, suffixes[CODE_SUFFIX]);
data/perl-byacc-2.0/main.c:487: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(defines_file_name, file_prefix);
data/perl-byacc-2.0/main.c:488: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(defines_file_name + len, suffixes[DEFINES_SUFFIX]);
data/perl-byacc-2.0/main.c:494: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(verbose_file_name, file_prefix);
data/perl-byacc-2.0/main.c:495: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(verbose_file_name + len, suffixes[VERBOSE_SUFFIX]);
data/perl-byacc-2.0/mktemp.c:7:7:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
char *mktemp(char *	template)
data/perl-byacc-2.0/output.c:1081: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(out, line_format, ++outline + 1, code_file_name);
data/perl-byacc-2.0/output.c:1345: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(out, line_format, lineno, input_file_name);
data/perl-byacc-2.0/output.c:1357: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(out, line_format, lineno, input_file_name);
data/perl-byacc-2.0/output.c:1379: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(out, line_format, ++outline + 1, code_file_name);
data/perl-byacc-2.0/output.c:1420: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(out, line_format, ++outline + 1, code_file_name);
data/perl-byacc-2.0/reader.c:397:17:  [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.
    if (!lflag) fprintf(f, line_format, lineno, input_file_name);
data/perl-byacc-2.0/reader.c:452:3:  [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(f, (cptr == line + 1) ? ";#" : "#");
data/perl-byacc-2.0/reader.c:473:3:  [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(f, (cptr == line + 1) ? ";#" : "#");
data/perl-byacc-2.0/reader.c:516: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(f, (cptr == line + 1) ? ";#" : "#");
data/perl-byacc-2.0/reader.c:543: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(text_file, (cptr == line + 1) ? ";#" : "#");
data/perl-byacc-2.0/reader.c:545: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(other_file, (cptr == line + 1) ? ";#" : "#");
data/perl-byacc-2.0/reader.c:566: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(text_file, line_format, lineno, input_file_name);
data/perl-byacc-2.0/reader.c:960: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(s, cache);
data/perl-byacc-2.0/reader.c:1388: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(f, line_format, lineno, input_file_name);
data/perl-byacc-2.0/reader.c:1616:3:  [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(f, (cptr == line + 1) ? ";#" : "#");
data/perl-byacc-2.0/symtab.c:56: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(bp->name, name);
data/perl-byacc-2.0/test/ftp.tab.c:788:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	extern char *malloc(), *strcpy();
data/perl-byacc-2.0/test/ftp.tab.c:793: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(p, s);
data/perl-byacc-2.0/main.c:85: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.
extern char *getenv();
data/perl-byacc-2.0/main.c:405: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.
    tmpdir = getenv("TMPDIR");
data/perl-byacc-2.0/test/error.tab.c:86: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/perl-byacc-2.0/test/error.tab.c:88: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/perl-byacc-2.0/test/ftp.tab.c:914: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/perl-byacc-2.0/test/ftp.tab.c:916:16:  [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 (ftps = getenv("FTPDEBUG"))
data/perl-byacc-2.0/main.c:467:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(output_file_name + len, ".pm");
data/perl-byacc-2.0/main.c:510: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).
	input_file = fopen(input_file_name, "r");
data/perl-byacc-2.0/main.c:515: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).
    action_file = fopen(action_file_name, "w");
data/perl-byacc-2.0/main.c:519:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    text_file = fopen(text_file_name, "w");
data/perl-byacc-2.0/main.c:525:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	verbose_file = fopen(verbose_file_name, "w");
data/perl-byacc-2.0/main.c:532:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	defines_file = fopen(defines_file_name, "w");
data/perl-byacc-2.0/main.c:535: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).
	union_file = fopen(union_file_name, "w");
data/perl-byacc-2.0/main.c:540: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).
    output_file = fopen(output_file_name, "w");
data/perl-byacc-2.0/main.c:546: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).
	code_file = fopen(code_file_name, "w");
data/perl-byacc-2.0/output.c:1044: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).
	union_file = fopen(union_file_name, "r");
data/perl-byacc-2.0/output.c:1064:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    text_file = fopen(text_file_name, "r");
data/perl-byacc-2.0/output.c:1393: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).
    action_file = fopen(action_file_name, "r");
data/perl-byacc-2.0/reader.c:808: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.
	c = ((unsigned char *)s)[i];
data/perl-byacc-2.0/reader.c:1304:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cache, "$$%d", ++gensym);
data/perl-byacc-2.0/reader.c:1792:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(name_pool, "$accept");
data/perl-byacc-2.0/reader.c:1793:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(name_pool + sizeof("$accept"), "$end");
data/perl-byacc-2.0/skeleton.c:580:6:  [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/perl-byacc-2.0/skeleton.c:590:6:  [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/perl-byacc-2.0/test/ftp.tab.c:49: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	cbuf[512];
data/perl-byacc-2.0/test/ftp.tab.c:682:15:  [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).
				ftplval = atoi(cp);
data/perl-byacc-2.0/test/ftp.tab.c:697:15:  [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).
				ftplval = atoi(cp);
data/perl-byacc-2.0/test/ftp.tab.c:878:9:  [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).
		fin = fopen(filename, "r");
data/perl-byacc-2.0/test/ftp.tab.c:1053:10:  [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.
			user((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1054:10:  [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.
			free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1060:10:  [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.
			pass((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1061:10:  [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.
			free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1162: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.
				retrieve((char *) 0, (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1162: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.
				retrieve((char *) 0, (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1164: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1171: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.
				store((char *) ftpvsp[-1], "w", 0);
data/perl-byacc-2.0/test/ftp.tab.c:1173: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1180: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.
				store((char *) ftpvsp[-1], "a", 0);
data/perl-byacc-2.0/test/ftp.tab.c:1182: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1196: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.
				send_file_list((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1198: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1212:34:  [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.
				retrieve("/bin/ls -lgA %s", (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1214: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1221: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.
				statfilecmd((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1223: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1236: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.
				delete((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1238: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1245:26:  [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.
				renamecmd(fromname, (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1251:10:  [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.
			free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1271:10:  [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.
				cwd((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1273: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1285: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.
			register char *cp = (char *)ftpvsp[-1];
data/perl-byacc-2.0/test/ftp.tab.c:1288: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.
				cp = (char *)ftpvsp[-1] + 4;
data/perl-byacc-2.0/test/ftp.tab.c:1296:19:  [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.
				help(cmdtab, (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1309: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.
				makedir((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1311: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1318:16:  [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.
				removedir((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1320: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1346:19:  [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.
			help(sitetab, (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1385: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.
				else if (chmod((char *) ftpvsp[-1], ftpvsp[-3]) < 0)
data/perl-byacc-2.0/test/ftp.tab.c:1386: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.
					perror_reply(550, (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1391: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1422: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.
				store((char *) ftpvsp[-1], "w", 1);
data/perl-byacc-2.0/test/ftp.tab.c:1424: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1446: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.
				sizecmd((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1448: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1456: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 (stat((char *) ftpvsp[-1], &stbuf) < 0)
data/perl-byacc-2.0/test/ftp.tab.c:1457:31:  [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.
					perror_reply(550, "%s", (char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1460: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.
						(char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1472: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.
				free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1494:28:  [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.
				fromname = renamefrom((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1496: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.
					free((char *) ftpvsp[-1]);
data/perl-byacc-2.0/test/ftp.tab.c:1636:42:  [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 (logged_in && ftpvsp[0] && strncmp((char *) ftpvsp[0], "~", 1) == 0) {
data/perl-byacc-2.0/test/ftp.tab.c:1637:33:  [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 **)&(ftpval) = *glob((char *) ftpvsp[0]);
data/perl-byacc-2.0/test/ftp.tab.c:1642:10:  [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.
			free((char *) ftpvsp[0]);
data/perl-byacc-2.0/main.c:173:24:  [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).
    temp_form = MALLOC(strlen(s) + sizeof(".XXXXXXX"));
data/perl-byacc-2.0/main.c:412: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(tmpdir);
data/perl-byacc-2.0/main.c:413: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).
    i = len + strlen(temp_form) + 1;
data/perl-byacc-2.0/main.c:461: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(file_prefix);
data/perl-byacc-2.0/main.c:464: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).
      int len = strlen(perl_package);
data/perl-byacc-2.0/main.c:470:39:  [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).
      output_file_name = MALLOC(len + strlen(suffixes[OUTPUT_SUFFIX]) + 1);
data/perl-byacc-2.0/main.c:477:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	code_file_name = MALLOC(len + strlen(suffixes[CODE_SUFFIX]) + 1);
data/perl-byacc-2.0/main.c:486: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).
	defines_file_name = MALLOC(len + strlen(suffixes[DEFINES_SUFFIX]) + 1);
data/perl-byacc-2.0/main.c:493: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).
	verbose_file_name = MALLOC(len + strlen(suffixes[VERBOSE_SUFFIX]) + 1);
data/perl-byacc-2.0/output.c:1046:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(union_file)) != EOF)
data/perl-byacc-2.0/output.c:1068:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((c = getc(in)) == EOF)
data/perl-byacc-2.0/output.c:1074:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(in)) != EOF)
data/perl-byacc-2.0/output.c:1218: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).
		k = strlen(s) + 3;
data/perl-byacc-2.0/output.c:1340:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((c = getc(in)) == EOF)
data/perl-byacc-2.0/output.c:1365:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(in)) != EOF)
data/perl-byacc-2.0/output.c:1397:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((c = getc(action_file)) == EOF)
data/perl-byacc-2.0/output.c:1405:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(action_file)) != EOF)
data/perl-byacc-2.0/reader.c:110:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (saw_eof || (c = getc(f)) == EOF)
data/perl-byacc-2.0/reader.c:136:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(f);
data/perl-byacc-2.0/reader.c:1789: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).
	name_pool_size += strlen(bp->name) + 1;
data/perl-byacc-2.0/reader.c:2028: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).
	    spacing = strlen(symbol_name[rlhs[i]]) + 1;
data/perl-byacc-2.0/symtab.c:48: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).
    bp->name = MALLOC(strlen(name) + 1);
data/perl-byacc-2.0/test/ftp.tab.c:500:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(iop)) != EOF) {
data/perl-byacc-2.0/test/ftp.tab.c:503:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    if ((c = getc(iop)) != EOF) {
data/perl-byacc-2.0/test/ftp.tab.c:508:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = getc(iop);
data/perl-byacc-2.0/test/ftp.tab.c:514:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = getc(iop);
data/perl-byacc-2.0/test/ftp.tab.c:657:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = strlen(cp);
data/perl-byacc-2.0/test/ftp.tab.c:790:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p = malloc((unsigned) strlen(s) + 1);
data/perl-byacc-2.0/test/ftp.tab.c:811: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).
		int len = strlen(c->name);
data/perl-byacc-2.0/test/ftp.tab.c:836: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).
				w = strlen(c->name) + 1;
data/perl-byacc-2.0/test/ftp.tab.c:891:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while((c=getc(fin)) != EOF) {
data/perl-byacc-2.0/test/ftp.tab.c:1355:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				oldmask = umask(0);
data/perl-byacc-2.0/test/ftp.tab.c:1356:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				(void) umask(oldmask);
data/perl-byacc-2.0/test/ftp.tab.c:1370:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					oldmask = umask(ftpvsp[-1]);

ANALYSIS SUMMARY:

Hits = 151
Lines analyzed = 10405 in approximately 0.24 seconds (42657 lines/second)
Physical Source Lines of Code (SLOC) = 9103
Hits@level = [0] 239 [1]  34 [2]  69 [3]   6 [4]  41 [5]   1
Hits@level+ = [0+] 390 [1+] 151 [2+] 117 [3+]  48 [4+]  42 [5+]   1
Hits/KSLOC@level+ = [0+] 42.843 [1+] 16.5879 [2+] 12.8529 [3+] 5.27299 [4+] 4.61386 [5+] 0.109854
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.