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/ftjam-2.5.2/variable.c
Examining data/ftjam-2.5.2/execvms.c
Examining data/ftjam-2.5.2/filent.c
Examining data/ftjam-2.5.2/hash.c
Examining data/ftjam-2.5.2/execnt.c
Examining data/ftjam-2.5.2/hash.h
Examining data/ftjam-2.5.2/make1.c
Examining data/ftjam-2.5.2/fileos2.c
Examining data/ftjam-2.5.2/jam.c
Examining data/ftjam-2.5.2/option.c
Examining data/ftjam-2.5.2/jam.h
Examining data/ftjam-2.5.2/pathmac.c
Examining data/ftjam-2.5.2/option.h
Examining data/ftjam-2.5.2/execcmd.h
Examining data/ftjam-2.5.2/fileunix.c
Examining data/ftjam-2.5.2/scan.c
Examining data/ftjam-2.5.2/patchlevel.h
Examining data/ftjam-2.5.2/scan.h
Examining data/ftjam-2.5.2/regexp.c
Examining data/ftjam-2.5.2/rules.c
Examining data/ftjam-2.5.2/variable.h
Examining data/ftjam-2.5.2/hdrmacro.c
Examining data/ftjam-2.5.2/regexp.h
Examining data/ftjam-2.5.2/rules.h
Examining data/ftjam-2.5.2/filemac.c
Examining data/ftjam-2.5.2/pathunix.c
Examining data/ftjam-2.5.2/timestamp.c
Examining data/ftjam-2.5.2/hdrmacro.h
Examining data/ftjam-2.5.2/timestamp.h
Examining data/ftjam-2.5.2/headers.c
Examining data/ftjam-2.5.2/headers.h
Examining data/ftjam-2.5.2/newstr.c
Examining data/ftjam-2.5.2/pathvms.c
Examining data/ftjam-2.5.2/newstr.h
Examining data/ftjam-2.5.2/compile.c
Examining data/ftjam-2.5.2/builtins.c
Examining data/ftjam-2.5.2/mkjambase.c
Examining data/ftjam-2.5.2/compile.h
Examining data/ftjam-2.5.2/builtins.h
Examining data/ftjam-2.5.2/lists.c
Examining data/ftjam-2.5.2/pathsys.h
Examining data/ftjam-2.5.2/lists.h
Examining data/ftjam-2.5.2/execmac.c
Examining data/ftjam-2.5.2/search.c
Examining data/ftjam-2.5.2/filevms.c
Examining data/ftjam-2.5.2/jambase.h
Examining data/ftjam-2.5.2/parse.c
Examining data/ftjam-2.5.2/search.h
Examining data/ftjam-2.5.2/make.c
Examining data/ftjam-2.5.2/command.c
Examining data/ftjam-2.5.2/parse.h
Examining data/ftjam-2.5.2/make.h
Examining data/ftjam-2.5.2/expand.c
Examining data/ftjam-2.5.2/command.h
Examining data/ftjam-2.5.2/filesys.h
Examining data/ftjam-2.5.2/glob.c
Examining data/ftjam-2.5.2/expand.h
Examining data/ftjam-2.5.2/execunix.c
Examining data/ftjam-2.5.2/jamgramtab.h
Examining data/ftjam-2.5.2/jamgram.c
Examining data/ftjam-2.5.2/jamgram.h
Examining data/ftjam-2.5.2/jambase.c

FINAL RESULTS:

data/ftjam-2.5.2/execnt.c:259:26:  [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.
                result = system( line );
data/ftjam-2.5.2/execnt.c:339:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf( cmdtab[ slot ].tempfile, "%s\\jamtmp%02d.bat", 
data/ftjam-2.5.2/execnt.c:444:26:  [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.
                result = system( string );
data/ftjam-2.5.2/execunix.c:136:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( cmdtab[ slot ].tempfile, "%s\\jam%dt%d.bat", 
data/ftjam-2.5.2/execunix.c:228:6:  [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.
	    execvp( argv[0], argv );
data/ftjam-2.5.2/execunix.c:234:3:  [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.
		execvp( argv[0], argv );
data/ftjam-2.5.2/execvms.c:141:15:  [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.
	    status = system( tempnambuf ) & 0x07;
data/ftjam-2.5.2/execvms.c:150:15:  [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.
	    status = system( s ) & 0x07;
data/ftjam-2.5.2/expand.c:211: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( varname, vars->string );
data/ftjam-2.5.2/expand.c:289:4:  [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( out, value->string );
data/ftjam-2.5.2/expand.c:306:4:  [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( out, edits.join.ptr );
data/ftjam-2.5.2/expand.c:328:4:  [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( out1, rem->string );
data/ftjam-2.5.2/filent.c:90:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( filespec, "%s/*", dir );
data/ftjam-2.5.2/filent.c:311:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( buf, "%s(%.*s)", archive, endname-name, name );
data/ftjam-2.5.2/fileos2.c:67: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( filespec, dir );
data/ftjam-2.5.2/fileunix.c:300:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "%s(%s)", archive, lar_name );
data/ftjam-2.5.2/fileunix.c:386:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "%s(%s)", archive, ar_hdr.hdr._ar_name.ar_name );
data/ftjam-2.5.2/filevms.c:278:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( buf, "%s(%s.obj)", VMS_archive, filename );
data/ftjam-2.5.2/jam.c:278: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( buf, ctime( &clock ) );
data/ftjam-2.5.2/jamgram.c:802:21:  [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.
#  define YYFPRINTF fprintf
data/ftjam-2.5.2/regexp.c:1284:10:  [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(buf, p);
data/ftjam-2.5.2/scan.c:382:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "unknown symbol %s", s->string );
data/ftjam-2.5.2/scan.c:385:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "argument %s", s->string );
data/ftjam-2.5.2/scan.c:388:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "string \"%s\"", s->string );
data/ftjam-2.5.2/scan.c:391:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "keyword %s", s->string );
data/ftjam-2.5.2/variable.c:201: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( out, l->string );
data/ftjam-2.5.2/execnt.c:333:25:  [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( !( tempdir = getenv( "TEMP" ) ) &&
data/ftjam-2.5.2/execnt.c:334: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.
		  !( tempdir = getenv( "TMP" ) ) )
data/ftjam-2.5.2/execunix.c:128: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.
	    if( !( tempdir = getenv( "TEMP" ) ) &&
data/ftjam-2.5.2/execunix.c:129: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.
		!( tempdir = getenv( "TMP" ) ) )
data/ftjam-2.5.2/execvms.c:84:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
		(void)tmpnam( tempnambuf + 1 );
data/ftjam-2.5.2/builtins.c:240: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[ MAXJPATH ];
data/ftjam-2.5.2/builtins.c:314:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char buf[ MAXSYM ];
data/ftjam-2.5.2/builtins.c:316:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy( buf, re->startp[i], l );
data/ftjam-2.5.2/command.h:47: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 ];	/* actual commands */
data/ftjam-2.5.2/compile.c:919: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 indent[36] = ">>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|";
data/ftjam-2.5.2/execnt.c:121:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( line+1, string, total );
data/ftjam-2.5.2/execnt.c:305: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 *argv[ MAXARGC + 1 ];	/* +1 for NULL */
data/ftjam-2.5.2/execnt.c:368: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).
	    f = fopen( cmdtab[ slot ].tempfile, "w" );
data/ftjam-2.5.2/execnt.c:382: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 jobno[4];
data/ftjam-2.5.2/execnt.c:385:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf( jobno, "%d", slot + 1 );
data/ftjam-2.5.2/execunix.c:105: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.
	const char *argv[ MAXARGC + 1 ];	/* +1 for NULL */
data/ftjam-2.5.2/execunix.c:161: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).
	    f = fopen( cmdtab[ slot ].tempfile, "w" );
data/ftjam-2.5.2/execunix.c:176: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 jobno[4];
data/ftjam-2.5.2/execunix.c:179:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf( jobno, "%d", slot + 1 );
data/ftjam-2.5.2/execunix.c:232:13:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	if ((pid = vfork()) == 0) 
data/ftjam-2.5.2/execvms.c:48: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 tempnambuf[ L_tmpnam + 1 + 4 ] = {0};
data/ftjam-2.5.2/execvms.c:85:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat( tempnambuf, ".com" );
data/ftjam-2.5.2/execvms.c:90: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).
	    if( !( f = fopen( tempnambuf + 1, "w" ) ) )
data/ftjam-2.5.2/expand.c:79: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 out_buf[ MAXSYM ];
data/ftjam-2.5.2/expand.c:204: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 varname[ MAXSYM ];
data/ftjam-2.5.2/expand.c:230:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    sub1 = atoi( bracket + 1 ) - 1;
data/ftjam-2.5.2/expand.c:237: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).
			sub2 = atoi( dash + 1 ) - sub1;
data/ftjam-2.5.2/filemac.c:64: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 filename[ MAXJPATH ];
data/ftjam-2.5.2/filemac.c:65: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.
	unsigned char fullPath[ 512 ];
data/ftjam-2.5.2/filent.c:66: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 filespec[ MAXJPATH ];
data/ftjam-2.5.2/filent.c:67: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 filename[ MAXJPATH ];
data/ftjam-2.5.2/filent.c:169: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	ar_name[16];
data/ftjam-2.5.2/filent.c:170: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	ar_date[12];
data/ftjam-2.5.2/filent.c:171: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	ar_uid[6];
data/ftjam-2.5.2/filent.c:172: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	ar_gid[6];
data/ftjam-2.5.2/filent.c:173: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	ar_mode[8];
data/ftjam-2.5.2/filent.c:174: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	ar_size[10];
data/ftjam-2.5.2/filent.c:175: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	ar_fmag[2];
data/ftjam-2.5.2/filent.c:190: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[ MAXJPATH ];
data/ftjam-2.5.2/filent.c:194:13:  [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( ( fd = open( archive, O_RDONLY | O_BINARY, 0 ) ) < 0 )
data/ftjam-2.5.2/filent.c:246: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).
		  long  off = atoi( ar_hdr.ar_name+1 );
data/ftjam-2.5.2/fileos2.c:50: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 filespec[ MAXJPATH ];
data/ftjam-2.5.2/fileos2.c:51: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 filename[ MAXJPATH ];
data/ftjam-2.5.2/fileunix.c:80: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	ar_name[16];	/* file member name - `/' terminated */
data/ftjam-2.5.2/fileunix.c:81: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	ar_date[12];	/* file member date - decimal */
data/ftjam-2.5.2/fileunix.c:82: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	ar_uid[6];	/* file member user id - decimal */
data/ftjam-2.5.2/fileunix.c:83: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	ar_gid[6];	/* file member group id - decimal */
data/ftjam-2.5.2/fileunix.c:84: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	ar_mode[8];	/* file member mode - octal */
data/ftjam-2.5.2/fileunix.c:85: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	ar_size[10];	/* file member size - decimal */
data/ftjam-2.5.2/fileunix.c:86: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	ar_fmag[2];	/* ARFMAG - string to end header */
data/ftjam-2.5.2/fileunix.c:120: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 filename[ MAXJPATH ];
data/ftjam-2.5.2/fileunix.c:197: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[ MAXJPATH ];
data/ftjam-2.5.2/fileunix.c:202:13:  [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( ( fd = open( archive, O_RDONLY, 0 ) ) < 0 )
data/ftjam-2.5.2/fileunix.c:222: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    lar_name[256];
data/ftjam-2.5.2/fileunix.c:271:30:  [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).
		char *src = string_table + atoi( ar_hdr.ar_name + 1 );
data/ftjam-2.5.2/fileunix.c:287:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int len = atoi( ar_hdr.ar_name + 3 );
data/ftjam-2.5.2/fileunix.c:332: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 pad[ 256 ];
data/ftjam-2.5.2/fileunix.c:335: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[ MAXJPATH ];
data/ftjam-2.5.2/fileunix.c:339:13:  [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( ( fd = open( archive, O_RDONLY, 0 ) ) < 0 )
data/ftjam-2.5.2/filevms.c:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char esa[256];
data/ftjam-2.5.2/filevms.c:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[256];
data/ftjam-2.5.2/filevms.c:115: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 filename2[256];
data/ftjam-2.5.2/filevms.c:116: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 dirname[256];
data/ftjam-2.5.2/filevms.c:194:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf( dirname, "[.%.*s]", xnam.nam$b_name, xnam.nam$l_name );
data/ftjam-2.5.2/filevms.c:252: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 filename[128];
data/ftjam-2.5.2/filevms.c:253: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[ MAXJPATH ];
data/ftjam-2.5.2/glob.c:45: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 bitlist[ BITLISTSIZE ];
data/ftjam-2.5.2/hash.c:128:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( (char *)&i->data, (char *)*data, hp->items.datalen );
data/ftjam-2.5.2/hdrmacro.c:66: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[ 1024 ];
data/ftjam-2.5.2/hdrmacro.c:79: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( t->boundname, "r" ) ) == 0 )
data/ftjam-2.5.2/hdrmacro.c:88: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  buf1[ MAXSYM ], buf2[ MAXSYM ];
data/ftjam-2.5.2/hdrmacro.c:94:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( buf1, re->startp[1], l1 );
data/ftjam-2.5.2/hdrmacro.c:95:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( buf2, re->startp[2], l2 );
data/ftjam-2.5.2/headers.c:97: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[ 1024 ];
data/ftjam-2.5.2/headers.c:99: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).
	if( !( f = fopen( file, "r" ) ) )
data/ftjam-2.5.2/headers.c:120: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 buf2[ MAXSYM ];
data/ftjam-2.5.2/headers.c:122:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( buf2, re[i]->startp[1], l );
data/ftjam-2.5.2/headers.c:134: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         buf2[ MAXSYM ];
data/ftjam-2.5.2/headers.c:137:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( buf2, re_macros->startp[1], l );
data/ftjam-2.5.2/jam.c:228:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    globs.jobs = atoi( s );
data/ftjam-2.5.2/jam.c:237:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int i = atoi( s );
data/ftjam-2.5.2/jam.c:275: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[ 128 ];
data/ftjam-2.5.2/jam.c:320: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.
	    const char *symv[2];
data/ftjam-2.5.2/jam.c:349:28:  [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( !( globs.cmdout = fopen( s, "w" ) ) )
data/ftjam-2.5.2/jam.h: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	debug[DEBUG_MAX];
data/ftjam-2.5.2/jamgram.c:1715:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    { (yyval).number = atoi( (yyvsp[0]).string ) * RULE_MAXLINE; }
data/ftjam-2.5.2/jamgram.c:1779:4:  [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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/ftjam-2.5.2/jamgram.c:1796:4:  [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 yyformat[sizeof yyunexpected
data/ftjam-2.5.2/mkjambase.c:29: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[ 1024 ];
data/ftjam-2.5.2/mkjambase.c:41: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( !( fout = fopen( argv[1], "w" ) ) )
data/ftjam-2.5.2/mkjambase.c:64: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( !( fin = fopen( *argv, "r" ) ) )
data/ftjam-2.5.2/newstr.c:61:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( m, string, l + 1 );
data/ftjam-2.5.2/pathmac.c:135: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 grid[5][5] = {
data/ftjam-2.5.2/pathmac.c:186:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_grist.ptr, f->f_grist.len );
data/ftjam-2.5.2/pathmac.c:205:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_dir.ptr, f->f_dir.len );
data/ftjam-2.5.2/pathmac.c:211:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_root.ptr, f->f_root.len );
data/ftjam-2.5.2/pathmac.c:217:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_root.ptr, f->f_root.len );
data/ftjam-2.5.2/pathmac.c:220:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_dir.ptr, f->f_dir.len );
data/ftjam-2.5.2/pathmac.c:226:3:  [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( file, ":::" );
data/ftjam-2.5.2/pathmac.c:242:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_base.ptr, f->f_base.len );
data/ftjam-2.5.2/pathmac.c:248:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_suffix.ptr, f->f_suffix.len );
data/ftjam-2.5.2/pathmac.c:255:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_member.ptr, f->f_member.len );
data/ftjam-2.5.2/pathunix.c:145:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_grist.ptr, f->f_grist.len );
data/ftjam-2.5.2/pathunix.c:169:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_root.ptr, f->f_root.len );
data/ftjam-2.5.2/pathunix.c:176:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_dir.ptr, f->f_dir.len );
data/ftjam-2.5.2/pathunix.c:197:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_base.ptr, f->f_base.len );
data/ftjam-2.5.2/pathunix.c:203:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_suffix.ptr, f->f_suffix.len );
data/ftjam-2.5.2/pathunix.c:210:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_member.ptr, f->f_member.len );
data/ftjam-2.5.2/pathvms.c:248:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_grist.ptr, f->f_grist.len );
data/ftjam-2.5.2/pathvms.c:264:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_dir.ptr, f->f_dir.len );
data/ftjam-2.5.2/pathvms.c:270:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_root.ptr, f->f_root.len );
data/ftjam-2.5.2/pathvms.c:276:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, root.dev.ptr, root.dev.len );
data/ftjam-2.5.2/pathvms.c:278:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, dir.dir.ptr, dir.dir.len );
data/ftjam-2.5.2/pathvms.c:285:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, f->f_root.ptr, f->f_root.len );
data/ftjam-2.5.2/pathvms.c:299:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, dir.dir.ptr + 1, dir.dir.len - 1 );
data/ftjam-2.5.2/pathvms.c:305:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, root.dev.ptr, root.dev.len );
data/ftjam-2.5.2/pathvms.c:309:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( file, dir.dir.ptr + 2, dir.dir.len - 2 );
data/ftjam-2.5.2/pathvms.c:357:4:  [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( file, "[000000]" );
data/ftjam-2.5.2/pathvms.c:369:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_base.ptr, f->f_base.len );
data/ftjam-2.5.2/pathvms.c:379:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_suffix.ptr, f->f_suffix.len );
data/ftjam-2.5.2/pathvms.c:390:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( file, f->f_member.ptr, f->f_member.len );
data/ftjam-2.5.2/regexp.c:1208: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 buf[50];
data/ftjam-2.5.2/regexp.c:1252:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/ftjam-2.5.2/regexp.c:1264:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/ftjam-2.5.2/regexp.h:12: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.
	const char *startp[NSUBEXP];
data/ftjam-2.5.2/regexp.h:13: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.
	const char *endp[NSUBEXP];
data/ftjam-2.5.2/regexp.h:18: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 program[1];	/* Unwarranted chumminess with compiler. */
data/ftjam-2.5.2/scan.c:45: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[ 512 ];	/* for yyfparse() -- line buffer */
data/ftjam-2.5.2/scan.c:147:44:  [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( strcmp( i->fname, "-" ) && !( f = fopen( i->fname, "r" ) ) )
data/ftjam-2.5.2/scan.c:197: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[BIGGEST_TOKEN];
data/ftjam-2.5.2/scan.c:374: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 buf[ BIGGEST_TOKEN + 20 ];
data/ftjam-2.5.2/scan.c:379:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( buf, "EOF" );
data/ftjam-2.5.2/search.c:28: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[ MAXJPATH ];
data/ftjam-2.5.2/timestamp.c:69: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[ MAXJPATH ];
data/ftjam-2.5.2/timestamp.c:72: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 path[ MAXJPATH ];
data/ftjam-2.5.2/timestamp.c:175: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 path[ MAXJPATH ];
data/ftjam-2.5.2/variable.c:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[ MAXSYM ];
data/ftjam-2.5.2/compile.c:376: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).
	return var_expand( L0, s, s + strlen( s ), args, 1 );
data/ftjam-2.5.2/execnt.c:95: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).
  int    total    = strlen( string );
data/ftjam-2.5.2/execnt.c:254:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
              strncpy( line, "del ", 4 );
data/ftjam-2.5.2/execnt.c:255:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy( line+4, q, len );
data/ftjam-2.5.2/execnt.c:337:42:  [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).
	      cmdtab[ slot ].tempfile = malloc( strlen( tempdir ) + 14 );
data/ftjam-2.5.2/execnt.c:362: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).
	if( p && *p || strlen( string ) > max_line || shell )
data/ftjam-2.5.2/execnt.c:435: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).
            len = strlen( keyword[0] );
data/ftjam-2.5.2/execunix.c:134:40:  [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).
	    cmdtab[ slot ].tempfile = malloc( strlen( tempdir ) + 32 );
data/ftjam-2.5.2/execunix.c:155: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).
	if( p && *p || strlen( string ) > MAXLINE || shell )
data/ftjam-2.5.2/execvms.c:102:34:  [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 = s ? s + 1 - string : strlen( string );
data/ftjam-2.5.2/expand.c:305: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).
			out += strlen( out );
data/ftjam-2.5.2/expand.c:307: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).
			out += strlen( out );
data/ftjam-2.5.2/expand.c:324: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).
		    out1 = out + strlen( out );
data/ftjam-2.5.2/expand.c:467: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).
		fp->len = strlen( mods );
data/ftjam-2.5.2/filemac.c:78: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).
	f.f_dir.len = strlen(dir);
data/ftjam-2.5.2/filent.c:77: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).
	f.f_dir.len = strlen(dir);
data/ftjam-2.5.2/filent.c:105: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).
	    f.f_base.len = strlen( finfo->ff_name );
data/ftjam-2.5.2/filent.c:122: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).
	    f.f_base.len = strlen( finfo->name );
data/ftjam-2.5.2/filent.c:197:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( read( fd, buf, SARMAG ) != SARMAG ||
data/ftjam-2.5.2/filent.c:209:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while( read( fd, &ar_hdr, SARHDR ) == SARHDR &&
data/ftjam-2.5.2/filent.c:230:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		  if (read(fd, string_table, lar_size) != lar_size)
data/ftjam-2.5.2/fileos2.c:61: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).
	f.f_dir.len = strlen(dir);
data/ftjam-2.5.2/fileos2.c:74: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( filespec, "/" );
data/ftjam-2.5.2/fileos2.c:76:2:  [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( filespec, "*" );
data/ftjam-2.5.2/fileos2.c:92: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).
		f.f_base.len = strlen( finfo->name );
data/ftjam-2.5.2/fileunix.c:127: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).
	f.f_dir.len = strlen(dir);
data/ftjam-2.5.2/fileunix.c:152: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).
	    f.f_base.len = strlen( f.f_base.ptr );
data/ftjam-2.5.2/fileunix.c:205:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( read( fd, buf, SARMAG ) != SARMAG ||
data/ftjam-2.5.2/fileunix.c:217:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while( read( fd, &ar_hdr, SARHDR ) == SARHDR &&
data/ftjam-2.5.2/fileunix.c:261:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if( read(fd, string_table, lar_size) != lar_size )
data/ftjam-2.5.2/fileunix.c:288:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if( read( fd, lar_name, len ) != len )
data/ftjam-2.5.2/fileunix.c:344:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( read( fd, (char *)&fl_hdr, FL_HSZ ) != FL_HSZ ||
data/ftjam-2.5.2/fileunix.c:356:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( read( fd, (char *)&fl_hdr, FL_HSZ ) != FL_HSZ ||
data/ftjam-2.5.2/fileunix.c:372:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       read( fd, &ar_hdr, sizeof( ar_hdr ) ) >= sizeof( ar_hdr.hdr ) )
data/ftjam-2.5.2/filevms.c:123: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).
    f.f_root.len = strlen( dir );
data/ftjam-2.5.2/filevms.c:142:22:  [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).
    xfab.fab$b_fns = strlen( dir );		/* length of file name	    */
data/ftjam-2.5.2/filevms.c:196: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).
	    f.f_dir.len = strlen( dirname );
data/ftjam-2.5.2/filevms.c:309: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).
    library.dsc$w_length = strlen( archive );
data/ftjam-2.5.2/jam.c:282: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( buf ) == 25 )
data/ftjam-2.5.2/jamgram.c:912: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 yystrlen strlen
data/ftjam-2.5.2/lists.c:184:27:  [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).
	    const char *ep = p + strlen( p );
data/ftjam-2.5.2/newstr.c:54: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).
	    int l = strlen( string );
data/ftjam-2.5.2/pathmac.c:85: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).
	end = file + strlen( file );
data/ftjam-2.5.2/pathunix.c:96: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).
	end = file + strlen( file );
data/ftjam-2.5.2/pathvms.c:67: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).
	end = file + strlen( file );
data/ftjam-2.5.2/regexp.c:282: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).
				if (OP(scan) == EXACTLY && strlen(OPERAND(scan)) >= len) {
data/ftjam-2.5.2/regexp.c:284: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).
					len = strlen(OPERAND(scan));
data/ftjam-2.5.2/regexp.c:946: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(opnd);
data/ftjam-2.5.2/regexp.c:1103: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).
		count = strlen(scan);
data/ftjam-2.5.2/regexp.c:1210:9:  [1] (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 character.
	(void) strcpy(buf, ":");
data/ftjam-2.5.2/regexp.c:1252: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).
		sprintf(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/ftjam-2.5.2/regexp.c:1264: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).
		sprintf(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/ftjam-2.5.2/search.c:40:22:  [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).
	    f->f_root.len = strlen( varlist->string );
data/ftjam-2.5.2/search.c:56: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).
		f->f_root.len = strlen( varlist->string );
data/ftjam-2.5.2/variable.c:89:54:  [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( ( val = strchr( *e, '=' ) ) || ( val = *e + strlen( *e ) ) )
data/ftjam-2.5.2/variable.c:122:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy( buf, pp, len );
data/ftjam-2.5.2/variable.c:131:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( buf, *e, val - *e );
data/ftjam-2.5.2/variable.c:196: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).
		    int so = strlen( l->string );

ANALYSIS SUMMARY:

Hits = 221
Lines analyzed = 17476 in approximately 0.46 seconds (38402 lines/second)
Physical Source Lines of Code (SLOC) = 11475
Hits@level = [0] 163 [1]  58 [2] 132 [3]   5 [4]  26 [5]   0
Hits@level+ = [0+] 384 [1+] 221 [2+] 163 [3+]  31 [4+]  26 [5+]   0
Hits/KSLOC@level+ = [0+] 33.4641 [1+] 19.2593 [2+] 14.2048 [3+] 2.70153 [4+] 2.2658 [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.