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/irsim-9.7.104/usersubckt/dll.c
Examining data/irsim-9.7.104/usersubckt/subckt.c
Examining data/irsim-9.7.104/usersubckt/user.c
Examining data/irsim-9.7.104/usersubckt/subckt.h
Examining data/irsim-9.7.104/usersubckt/flop_mux.c
Examining data/irsim-9.7.104/tcltk/tkAnalyzer.c
Examining data/irsim-9.7.104/tcltk/irsimexec.c
Examining data/irsim-9.7.104/tcltk/tkTag.c
Examining data/irsim-9.7.104/tcltk/lookup.c
Examining data/irsim-9.7.104/tcltk/tclirsim.c
Examining data/irsim-9.7.104/tcltk/tclanalyzer.c
Examining data/irsim-9.7.104/random/random.c
Examining data/irsim-9.7.104/tclsubckt/diglib.c
Examining data/irsim-9.7.104/faultsim/faultsim.c
Examining data/irsim-9.7.104/faultsim/incsim.c
Examining data/irsim-9.7.104/analyzer/icon.c
Examining data/irsim-9.7.104/analyzer/ana_glob.h
Examining data/irsim-9.7.104/analyzer/ana.h
Examining data/irsim-9.7.104/analyzer/ana_tk.h
Examining data/irsim-9.7.104/analyzer/textwind.c
Examining data/irsim-9.7.104/analyzer/coords.c
Examining data/irsim-9.7.104/analyzer/helper.h
Examining data/irsim-9.7.104/analyzer/graphics.c
Examining data/irsim-9.7.104/analyzer/movetot.c
Examining data/irsim-9.7.104/analyzer/analyzer.c
Examining data/irsim-9.7.104/analyzer/defaults.c
Examining data/irsim-9.7.104/analyzer/window.c
Examining data/irsim-9.7.104/analyzer/namelen.c
Examining data/irsim-9.7.104/analyzer/event.c
Examining data/irsim-9.7.104/analyzer/graphics.h
Examining data/irsim-9.7.104/analyzer/menu.c
Examining data/irsim-9.7.104/analyzer/deltaT.c
Examining data/irsim-9.7.104/analyzer/zoom.c
Examining data/irsim-9.7.104/analyzer/tkana.c
Examining data/irsim-9.7.104/analyzer/movetrace.c
Examining data/irsim-9.7.104/analyzer/setsteps.c
Examining data/irsim-9.7.104/analyzer/postscript.c
Examining data/irsim-9.7.104/analyzer/anXhelper.c
Examining data/irsim-9.7.104/analyzer/update.c
Examining data/irsim-9.7.104/analyzer/thread.c
Examining data/irsim-9.7.104/analyzer/scrollbar.c
Examining data/irsim-9.7.104/analyzer/base.c
Examining data/irsim-9.7.104/analyzer/wm.c
Examining data/irsim-9.7.104/analyzer/convert.c
Examining data/irsim-9.7.104/analyzer/noana.c
Examining data/irsim-9.7.104/lib/test/z.test/foo.c
Examining data/irsim-9.7.104/lib/calibrate_spice3/findr.c
Examining data/irsim-9.7.104/irsim/gentbl.c
Examining data/irsim-9.7.104/irsim/genspktbl.c
Examining data/irsim-9.7.104/irsim/irsim.c
Examining data/irsim-9.7.104/other/inet2sim/Hist.c
Examining data/irsim-9.7.104/other/inet2sim/Binsim.c
Examining data/irsim-9.7.104/other/inet2sim/inet2sim.c
Examining data/irsim-9.7.104/other/inet2sim/Sim.c
Examining data/irsim-9.7.104/other/h2a/Nsubrs.c
Examining data/irsim-9.7.104/other/h2a/Hist.c
Examining data/irsim-9.7.104/other/h2a/history.h
Examining data/irsim-9.7.104/other/h2a/sort.c
Examining data/irsim-9.7.104/other/h2a/h2a.c
Examining data/irsim-9.7.104/base/net.h
Examining data/irsim-9.7.104/base/binsim.c
Examining data/irsim-9.7.104/base/stables.c
Examining data/irsim-9.7.104/base/nsubrs.c
Examining data/irsim-9.7.104/base/incstub.c
Examining data/irsim-9.7.104/base/hist.c
Examining data/irsim-9.7.104/base/config.c
Examining data/irsim-9.7.104/base/mem.c
Examining data/irsim-9.7.104/base/fio.c
Examining data/irsim-9.7.104/base/spiketbl.c
Examining data/irsim-9.7.104/base/ASSERT.h
Examining data/irsim-9.7.104/base/rsim.h
Examining data/irsim-9.7.104/base/bin_io.h
Examining data/irsim-9.7.104/base/conn_list.c
Examining data/irsim-9.7.104/base/newrstep.c
Examining data/irsim-9.7.104/base/access.c
Examining data/irsim-9.7.104/base/loctypes.h
Examining data/irsim-9.7.104/base/stack.c
Examining data/irsim-9.7.104/base/defs.h
Examining data/irsim-9.7.104/base/net_macros.h
Examining data/irsim-9.7.104/base/rsim.c
Examining data/irsim-9.7.104/base/intr.c
Examining data/irsim-9.7.104/base/cad_dir.c
Examining data/irsim-9.7.104/base/tpos.c
Examining data/irsim-9.7.104/base/hist_io.c
Examining data/irsim-9.7.104/base/netupdate.c
Examining data/irsim-9.7.104/base/parallel.c
Examining data/irsim-9.7.104/base/sstep.c
Examining data/irsim-9.7.104/base/sched.c
Examining data/irsim-9.7.104/base/prints.c
Examining data/irsim-9.7.104/base/eval.c
Examining data/irsim-9.7.104/base/sim.c
Examining data/irsim-9.7.104/base/globals.h
Examining data/irsim-9.7.104/base/usage.c
Examining data/irsim-9.7.104/base/units.h
Examining data/irsim-9.7.104/base/network.c

FINAL RESULTS:

data/irsim-9.7.104/analyzer/convert.c:55:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
         sprintf(result, PRINTF_LLONG "u", digit);
data/irsim-9.7.104/analyzer/convert.c:82:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(result, PRINTF_LLONG "d", digit);
data/irsim-9.7.104/analyzer/event.c:322:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf( helper_proc, "%s/%s", cad_bin, helper_name );
data/irsim-9.7.104/analyzer/event.c:341:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	(void) execl( helper_proc, helper_name, NULL );
data/irsim-9.7.104/analyzer/postscript.c:103: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(fname, s);
data/irsim-9.7.104/analyzer/postscript.c:145: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( fname, psfname );
data/irsim-9.7.104/analyzer/postscript.c:329:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf( info, "(%s)  %s", fname, date );
data/irsim-9.7.104/analyzer/textwind.c:120:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) vsprintf(s, format, args);
data/irsim-9.7.104/base/access.c:41:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( name, R_OK ) == 0 )
data/irsim-9.7.104/base/access.c:46:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( name, W_OK ) == 0 )	/* file exists and is writeable */
data/irsim-9.7.104/base/access.c:53:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( name, F_OK ) == 0 )	/* file exists but isn't writeable */
data/irsim-9.7.104/base/access.c:69:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( dir, W_OK ) == 0 )
data/irsim-9.7.104/base/cad_dir.c:42:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(s, F_OK) == 0)
data/irsim-9.7.104/base/cad_dir.c:53:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf( cad_lib, "%s", s );
data/irsim-9.7.104/base/cad_dir.c:57:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf( cad_bin, "%s", BIN_DIR );
data/irsim-9.7.104/base/config.c:168:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf( ttype_drop[ targc ], "%s-with-drop", ttype[ targc ] );
data/irsim-9.7.104/base/config.c:179:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( prm_file, "%s/irsim/prm/%s", cad_lib, cname );
data/irsim-9.7.104/base/config.c:192:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    		sprintf( prm_file, "%s/irsim/%s", cad_lib, cname );
data/irsim-9.7.104/base/mem.c:128:26:  [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	FPRINTF			(void) fprintf
data/irsim-9.7.104/base/netupdate.c:1430:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(fp, fmt, args);
data/irsim-9.7.104/base/nsubrs.c:192:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s/%s", simprefix, name_in);
data/irsim-9.7.104/base/prints.c:59:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) vsprintf(buff, fmt, args);
data/irsim-9.7.104/base/prints.c:79:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(buf1, "(%s,%d): ", filename, lineno);
data/irsim-9.7.104/base/prints.c:80:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) vsprintf(buf2, fmt, args);
data/irsim-9.7.104/base/rsim.c:220:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy( *buffer, prefix );
data/irsim-9.7.104/base/rsim.c:265:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf( index, "%s%d%s", prefix, start, string );
data/irsim-9.7.104/base/rsim.c:435:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf( pathname, "%s/%s", p->name, name );
data/irsim-9.7.104/base/rsim.c:443:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy( pathname, name );
data/irsim-9.7.104/base/rsim.c:606:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy( p->name, targv[i] );
data/irsim-9.7.104/base/rsim.c:1216: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(newvecs + (nbits - strlen(locstring + 2)), locstring + 2);
data/irsim-9.7.104/base/rsim.c:1330:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(rstring, nsplit);
data/irsim-9.7.104/base/rsim.c:1410:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy( b->name, targv[1] );
data/irsim-9.7.104/base/rsim.c:1751:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(bres, PRINTF_LLONG "u", decvalue);
data/irsim-9.7.104/base/rsim.c:2413: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(q, val);
data/irsim-9.7.104/base/rsim.c:3604:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    (void) strcpy( changelog, targv[1] );
data/irsim-9.7.104/base/rsim.c:3741: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( x_display, targv[1] );
data/irsim-9.7.104/base/rsim.c:3856:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf( fname, "%s.hist", first_file );
data/irsim-9.7.104/base/rsim.c:3858: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( fname, targv[1] );
data/irsim-9.7.104/base/rsim.c:3924:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf( fname, "%s.inet", first_file );
data/irsim-9.7.104/base/rsim.c:3926: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( fname, targv[1] );
data/irsim-9.7.104/base/rsim.c:4201: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( n2, n1 );
data/irsim-9.7.104/base/sim.c:657: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(tmpfname, simfile);
data/irsim-9.7.104/base/sim.c:724:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(prmname, "%s%s", targv[4], targv[2]);
data/irsim-9.7.104/irsim/genspktbl.c:116: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, fmt, tab[ beta ][ alpha ] );
data/irsim-9.7.104/irsim/gentbl.c:43:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( temp, "%s%s", names[high], names[low] );
data/irsim-9.7.104/irsim/gentbl.c:45:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( temp, "%s", names[high] );
data/irsim-9.7.104/irsim/irsim.c:31:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf( stderr, msg, s1 );
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:208:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if( sscanf( line, "%d %s %s", &ix, name, type ) != 3 )
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:423:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( fmt, ttype, "dynamic-high", w, l, round( rh ) );
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:424:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( fmt, ttype, "dynamic-low\t", w, l, round( rl ) );
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:425:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( fmt, ttype, "static\t", w, l, round( rs ) );
data/irsim-9.7.104/other/h2a/Hist.c:142:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy( node_name, node->nname );
data/irsim-9.7.104/other/h2a/Nsubrs.c:27:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy( node->nname, buff );
data/irsim-9.7.104/other/h2a/h2a.c:112:22:  [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	PRINT	(void) fprintf
data/irsim-9.7.104/other/inet2sim/Sim.c:192:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf( capfmt, "C %%s %s %%d\n", GND_node->nname );
data/irsim-9.7.104/other/inet2sim/Sim.c:197:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) fprintf( fout, capfmt, pnode( n ), CAP2FF( n->ncap ) );
data/irsim-9.7.104/other/inet2sim/inet2sim.c:132: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( np->nname, buff );
data/irsim-9.7.104/other/inet2sim/inet2sim.c:138:22:  [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	PRINT	(void) fprintf
data/irsim-9.7.104/tcltk/lookup.c:94:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(mesg, "Ambiguous option \"%s\"\n", str);
data/irsim-9.7.104/tcltk/tclirsim.c:210: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 (outstr + 19, (f == stderr) ? "err \"" : "out \"");
data/irsim-9.7.104/tcltk/tclirsim.c:214:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    nchars = vsnprintf(outptr + 24, 102, fmt, args);
data/irsim-9.7.104/tcltk/tclirsim.c:223:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(outptr + 24, nchars + 2, fmt, args);
data/irsim-9.7.104/tcltk/tclirsim.c:293: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(stdptr, (f == stderr) ? "err" : "out");
data/irsim-9.7.104/tcltk/tclirsim.c:428:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s.sim", argv[argc - 1]);
data/irsim-9.7.104/tcltk/tclirsim.c:532:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(versionstr, "IRSIM %s.%s compiled on %s\n", IRSIM_VERSION,
data/irsim-9.7.104/tcltk/tclirsim.c:656:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(keyword, "irsim::%s", cmds[n].name);
data/irsim-9.7.104/tcltk/tclirsim.c:677:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(keyword, "irsim::%s", anacmds[n].name);
data/irsim-9.7.104/tcltk/tkTag.c:55: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(substcmd, postcmd);
data/irsim-9.7.104/tcltk/tkTag.c:88: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(newcmd, substcmd);
data/irsim-9.7.104/tcltk/tkTag.c:91: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(newcmd + (int)(sptr - substcmd), sptr + 2);
data/irsim-9.7.104/tcltk/tkTag.c:94: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(newcmd + (int)(sptr - substcmd), tkpath);
data/irsim-9.7.104/tcltk/tkTag.c:95:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(newcmd, sptr + 2);
data/irsim-9.7.104/tcltk/tkTag.c:108: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(newcmd, substcmd);
data/irsim-9.7.104/tcltk/tkTag.c:109:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(newcmd + (int)(sptr - substcmd), "\"%s\"", sres);
data/irsim-9.7.104/tcltk/tkTag.c:110:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(newcmd, sptr + 2);
data/irsim-9.7.104/tcltk/tkTag.c:126:11:  [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(newcmd, substcmd);
data/irsim-9.7.104/tcltk/tkTag.c:129: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(newcmd + (int)(sptr - substcmd) + needList,
data/irsim-9.7.104/tcltk/tkTag.c:133:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(newcmd, sptr + 2);
data/irsim-9.7.104/tcltk/tkTag.c:141:11:  [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(newcmd, substcmd);
data/irsim-9.7.104/tcltk/tkTag.c:142: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(newcmd + (int)(sptr - substcmd), sptr + 2);
data/irsim-9.7.104/tcltk/tkTag.c:155: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(newcmd, substcmd);
data/irsim-9.7.104/tcltk/tkTag.c:158: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).
		       strcat(newcmd, argv[i]);
data/irsim-9.7.104/tcltk/tkTag.c:163:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(newcmd, sptr + 2);
data/irsim-9.7.104/tcltk/tkTag.c:171: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(newcmd, substcmd);
data/irsim-9.7.104/tcltk/tkTag.c:172: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(newcmd + (int)(sptr - substcmd), sptr + 1);
data/irsim-9.7.104/usersubckt/subckt.c:487:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(out_name_Ub, "%sUb_%d_%d", sname, inst, subckt_out_counter);
data/irsim-9.7.104/usersubckt/subckt.c:488:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(out_name_D , "%sD_%d_%d", sname, inst, subckt_out_counter++);
data/irsim-9.7.104/analyzer/event.c:318:29:  [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  *cad_bin, *getenv();
data/irsim-9.7.104/base/cad_dir.c:27:24:  [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/irsim-9.7.104/base/cad_dir.c:40:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (s = getenv("CAD_ROOT"))
data/irsim-9.7.104/base/netupdate.c:1358:20:  [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/irsim-9.7.104/base/netupdate.c:1405:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if( getenv( "RSIM_CHANGED" ) != NULL )
data/irsim-9.7.104/base/rsim.c:3729: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.
    char  *s, *getenv();
data/irsim-9.7.104/base/rsim.c:3735:10:  [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.
	    s = getenv( "DISPLAY" );
data/irsim-9.7.104/faultsim/faultsim.c:280:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    extern int   random();
data/irsim-9.7.104/faultsim/faultsim.c:281:18:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    extern void  srandom();
data/irsim-9.7.104/faultsim/faultsim.c:311:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom( (long) nnodes );
data/irsim-9.7.104/faultsim/faultsim.c:320:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if( (random() & 100) <= p_seed )
data/irsim-9.7.104/random/random.c:97:12:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    double drand48();
data/irsim-9.7.104/random/random.c:102:13:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    v1=2.0*drand48()-1.0;
data/irsim-9.7.104/random/random.c:103:13:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    v2=2.0*drand48()-1.0;
data/irsim-9.7.104/random/random.c:131:12:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    double drand48();
data/irsim-9.7.104/random/random.c:139:13:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	r += log(1-drand48());
data/irsim-9.7.104/random/random.c:163:12:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    double drand48();
data/irsim-9.7.104/random/random.c:164:10:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    long lrand48();
data/irsim-9.7.104/random/random.c:168:26:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	Tcl_PrintDouble(interp, drand48(), r);
data/irsim-9.7.104/random/random.c:186:31:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	sprintf(r, "%.0f", a + (b-a)*drand48());
data/irsim-9.7.104/random/random.c:201:9:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	   x = lrand48(); 
data/irsim-9.7.104/random/random.c:252:35:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	Tcl_PrintDouble(interp, -m*log(1-drand48()), r);
data/irsim-9.7.104/random/random.c:270:36:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	Tcl_PrintDouble(interp, a + (b-a)*drand48(), r);
data/irsim-9.7.104/random/random.c:304:52:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		Tcl_AppendElement(interp, list[(int) (list_count*drand48())]);
data/irsim-9.7.104/random/random.c:325:18:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    j = (i+1) * drand48();
data/irsim-9.7.104/random/random.c:356:15:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		j = (i+1) * drand48();
data/irsim-9.7.104/random/random.c:390:15:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		j = (n-i) * drand48() + i;
data/irsim-9.7.104/tcltk/tclirsim.c:694: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.
    cadroot = getenv("CAD_ROOT");
data/irsim-9.7.104/analyzer/anXhelper.c:82:9:  [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).
    f = open( "/dev/tty", O_RDWR );	/* disconnect from terminal */
data/irsim-9.7.104/analyzer/convert.c:18: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.
private	char    result[ 200 ];
data/irsim-9.7.104/analyzer/convert.c:41: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(result, "???");
data/irsim-9.7.104/analyzer/convert.c:53: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(result, "(overflow)");
data/irsim-9.7.104/analyzer/convert.c:68: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(result, "???");
data/irsim-9.7.104/analyzer/event.c:37: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.
#    define	vfork()		fork()
data/irsim-9.7.104/analyzer/event.c:129: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  buff[ 40 ];
data/irsim-9.7.104/analyzer/event.c:320: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         helper_proc[ 256 ];
data/irsim-9.7.104/analyzer/event.c:325: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.
	x_helper = vfork();
data/irsim-9.7.104/analyzer/graphics.c:47: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.
private	char   tops_bits[3][2] = { 0x5, 0x7, 0x1, 0x3, 0x4, 0x6 };
data/irsim-9.7.104/analyzer/graphics.c:48: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.
private	char   bots_bits[3][2] = { 0x7, 0x5, 0x3, 0x1, 0x6, 0x4 };
data/irsim-9.7.104/analyzer/namelen.c:36: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).
    len = atoi( str );
data/irsim-9.7.104/analyzer/postscript.c:81: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.
private	char      fname[256] = "";
data/irsim-9.7.104/analyzer/postscript.c:112:2:  [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(fname, ".ps" );
data/irsim-9.7.104/analyzer/postscript.c:122:2:  [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(fname, ".ps" );
data/irsim-9.7.104/analyzer/postscript.c:147:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (psout = fopen( psfname, "w" )) == NULL )
data/irsim-9.7.104/analyzer/postscript.c:317: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     info[ 256 ];
data/irsim-9.7.104/analyzer/postscript.c:350: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      s[ 25 ];
data/irsim-9.7.104/analyzer/postscript.c:374:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    (void) sprintf( s, "%.2f", d2ns( t1 ) );
data/irsim-9.7.104/analyzer/postscript.c:384:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, "%.2f", d2ns( i ) );
data/irsim-9.7.104/analyzer/postscript.c:394:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, "%.2f", d2ns( t2 ) );
data/irsim-9.7.104/analyzer/textwind.c:28: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.
private char    buffer[ BUFFSIZE ];	/* text widow buffer */
data/irsim-9.7.104/analyzer/textwind.c:89:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy( s, buffer + txtPos, len );
data/irsim-9.7.104/analyzer/textwind.c:169:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy( "(canceled)", inpStart, 11 );
data/irsim-9.7.104/analyzer/textwind.c:182: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           buff[ 40 ];
data/irsim-9.7.104/analyzer/window.c:201:6:  [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).
	b = atoi( GetXDefault( DEFL_BDRWIDTH ) );
data/irsim-9.7.104/analyzer/window.c:203:10:  [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).
	    b = atoi( ProgDefault( DEFL_BDRWIDTH ) );
data/irsim-9.7.104/analyzer/window.c:442: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   s[ 20 ];
data/irsim-9.7.104/analyzer/window.c:449:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( s, " %.2f ", d2ns( tims.start ) );
data/irsim-9.7.104/analyzer/window.c:452:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( s, " %.2f ", d2ns( tims.end ) );
data/irsim-9.7.104/analyzer/window.c:456:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, "%.2f", d2ns( tims.cursor ) );
data/irsim-9.7.104/analyzer/window.c:472: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             s[20];
data/irsim-9.7.104/analyzer/window.c:476:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, " %.2f ", d2ns( start ) );
data/irsim-9.7.104/analyzer/window.c:489:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, " %.2f ", d2ns( end ) );
data/irsim-9.7.104/analyzer/window.c:1119: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      tbuff[15];
data/irsim-9.7.104/analyzer/window.c:1126:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( tbuff, "%.2f", d2ns( time ) );
data/irsim-9.7.104/analyzer/window.c:1191: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               s[ 20 ];
data/irsim-9.7.104/analyzer/window.c:1206:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( s, "%.2f", d2ns( time ) );
data/irsim-9.7.104/base/access.c:38: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           dir[ 256 ];
data/irsim-9.7.104/base/binsim.c:68: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  cap[ NB_NCAP ];
data/irsim-9.7.104/base/binsim.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  alias[ NB_NDINDEX ];
data/irsim-9.7.104/base/binsim.c:71: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  flags[ NB_FLAGS ];
data/irsim-9.7.104/base/binsim.c:72: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  slen[ NB_STRLEN ];
data/irsim-9.7.104/base/binsim.c:80: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  tphl[ NB_TP ];
data/irsim-9.7.104/base/binsim.c:81: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  tplh[ NB_TP ];
data/irsim-9.7.104/base/binsim.c:89: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  vhigh[ NB_VTHRESH ];
data/irsim-9.7.104/base/binsim.c:90: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  vlow[ NB_VTHRESH ];
data/irsim-9.7.104/base/binsim.c:98: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  width[ NB_TSIZE ];
data/irsim-9.7.104/base/binsim.c:99: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  length[ NB_TSIZE ];
data/irsim-9.7.104/base/binsim.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ttype[ NB_TTYPE ];
data/irsim-9.7.104/base/binsim.c:101: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  gate[ NB_NDINDEX ];
data/irsim-9.7.104/base/binsim.c:102: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  src[ NB_NDINDEX ];
data/irsim-9.7.104/base/binsim.c:103: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  drn[ NB_NDINDEX ];
data/irsim-9.7.104/base/binsim.c:104: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  x[ NB_COORD ];
data/irsim-9.7.104/base/binsim.c:105: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  y[ NB_COORD ];
data/irsim-9.7.104/base/binsim.c:268:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    inet_lambda = atoi( line + 7 );
data/irsim-9.7.104/base/binsim.c:290: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( (fnet = fopen( fname, "w" )) == NULL )
data/irsim-9.7.104/base/config.c:117: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.
private	char	*ttype_drop[ NTTYPES ];
data/irsim-9.7.104/base/config.c:157: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             prm_file[256];
data/irsim-9.7.104/base/config.c:158: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             line[LSIZE];
data/irsim-9.7.104/base/config.c:159: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             *targv[MAXARGS];
data/irsim-9.7.104/base/config.c:160: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             tmpbuff[NTTYPES * 22];
data/irsim-9.7.104/base/config.c:186:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat( prm_file, ".prm" );
data/irsim-9.7.104/base/config.c:201:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (cfile = fopen( cname, "r" )) == NULL )
data/irsim-9.7.104/base/defs.h:37:10:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 #ifndef bcopy
data/irsim-9.7.104/base/defs.h:38:11:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  #define	bcopy( A, B, C )	memcpy( B, A, C )
data/irsim-9.7.104/base/defs.h:38:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  #define	bcopy( A, B, C )	memcpy( B, A, C )
data/irsim-9.7.104/base/eval.c:575: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.
public	char  switch_state[NTTYPES][4] = 
data/irsim-9.7.104/base/globals.h:94:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char  switch_state[ /*NTTYPES*/ ][ 4 ] ;
data/irsim-9.7.104/base/globals.h:203:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char   vchars[ /**/ ] ;
data/irsim-9.7.104/base/globals.h:204:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char  *ttype[ /* NTTYPES */ ] ;
data/irsim-9.7.104/base/hist_io.c:49: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  header[ NB_HEADER ];
data/irsim-9.7.104/base/hist_io.c:50: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  hsize[ NB_NUMBER ];
data/irsim-9.7.104/base/hist_io.c:51: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  nnodes[ NB_NUMBER ];
data/irsim-9.7.104/base/hist_io.c:52: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  cur_delta[ NB_TIME ];
data/irsim-9.7.104/base/hist_io.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  magic[ NB_NUMBER ];
data/irsim-9.7.104/base/hist_io.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  version[ NB_VERSION ];
data/irsim-9.7.104/base/hist_io.c:55: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  time0[ NB_TIME ];
data/irsim-9.7.104/base/hist_io.c:64: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  node[ NB_NDINDEX ];	/* node for which history follows */
data/irsim-9.7.104/base/hist_io.c:65: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  time[ NB_TIME ];	/* initial time (usually 0) */
data/irsim-9.7.104/base/hist_io.c:66: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  pval[ NB_PVAL ];	/* initial packed-value */
data/irsim-9.7.104/base/hist_io.c:74: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  time[ NB_TIME ];	/* time of this change */
data/irsim-9.7.104/base/hist_io.c:75: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  rtime[ NB_RTIME ];	/* input rise time */
data/irsim-9.7.104/base/hist_io.c:76: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  delay[ NB_DELAY ];	/* associated delay */
data/irsim-9.7.104/base/hist_io.c:77: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  pval[ NB_PVAL ];	/* packed-value (inp, val, punt) */
data/irsim-9.7.104/base/hist_io.c:78: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  ptime[ NB_DELAY ];	/* punt time (only punted events) */
data/irsim-9.7.104/base/hist_io.c:89: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  mark[ NB_TIME ];		/* marker, same for all nodes */
data/irsim-9.7.104/base/hist_io.c:90: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  npend[ NB_RTIME ];		/* # of pending events */
data/irsim-9.7.104/base/hist_io.c:91: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  dummy1[ NB_DELAY ];		/* just fill the space */
data/irsim-9.7.104/base/hist_io.c:92: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  dummy2[ NB_PVAL ];
data/irsim-9.7.104/base/hist_io.c:98: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  cause[ NB_NDINDEX ];
data/irsim-9.7.104/base/hist_io.c:99: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  time[ NB_TIME ];
data/irsim-9.7.104/base/hist_io.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  delay[ NB_DELAY ];
data/irsim-9.7.104/base/hist_io.c:101: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  rtime[ NB_RTIME ];
data/irsim-9.7.104/base/hist_io.c:102: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  eval[ NB_EVAL ];
data/irsim-9.7.104/base/hist_io.c:211:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy( fh_header, fh.header, NB_HEADER );
data/irsim-9.7.104/base/hist_io.c:276: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).
    if( (fp = fopen( fname, "w" )) == NULL )
data/irsim-9.7.104/base/hist_io.c:448: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).
    if( (fd = fopen( fname, "r" )) == NULL )
data/irsim-9.7.104/base/netupdate.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).
    int  Nnum = atoi( ARG );	\
data/irsim-9.7.104/base/netupdate.c:266:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    nnum = atoi( av[1] );
data/irsim-9.7.104/base/netupdate.c:287:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cap = ff2pf( atoi( av[2] ) );
data/irsim-9.7.104/base/netupdate.c:288:9:  [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).
    n = atoi( av[1] );
data/irsim-9.7.104/base/netupdate.c:342: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).
	cap = ff2pf( atoi( &av[2][1] ) );
data/irsim-9.7.104/base/netupdate.c:350: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).
	cap = ff2pf( atoi( av[2] ) );
data/irsim-9.7.104/base/netupdate.c:377:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy( str, nd->nname, len );
data/irsim-9.7.104/base/netupdate.c:576:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    nnum = atoi( av[2] );
data/irsim-9.7.104/base/netupdate.c:579:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cap = ff2pf( atoi( av[3] ) );
data/irsim-9.7.104/base/netupdate.c:608:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tran.x.pos = atoi(av[2]);
data/irsim-9.7.104/base/netupdate.c:609:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tran.y.pos = atoi(av[3]);
data/irsim-9.7.104/base/netupdate.c:648:9:  [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).
    X = atoi( X_STR );				\
data/irsim-9.7.104/base/netupdate.c:649:9:  [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).
    Y = atoi( Y_STR );				\
data/irsim-9.7.104/base/netupdate.c:785:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    t->x.pos = atoi( av[1] );
data/irsim-9.7.104/base/netupdate.c:786:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    t->y.pos = atoi( av[2] );
data/irsim-9.7.104/base/netupdate.c:1057: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  line[ LSIZE ];
data/irsim-9.7.104/base/netupdate.c:1058: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  *targv[ MAXARGS ];
data/irsim-9.7.104/base/netupdate.c:1365: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( (fin = fopen( fname, "r" )) == NULL )
data/irsim-9.7.104/base/netupdate.c:1373:25:  [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).
    else if( (nu_logf = fopen( logname, "a" )) == NULL )
data/irsim-9.7.104/base/network.c:86:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        (void) sprintf( s, "%2.1e", r );
data/irsim-9.7.104/base/network.c:95:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, "%.1f%c", r, "num\0KMG"[ e ] );
data/irsim-9.7.104/base/network.c:104: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[3][15];
data/irsim-9.7.104/base/network.c:333: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).
    if( (fp = fopen( fname, "w" )) == NULL )
data/irsim-9.7.104/base/network.c:425: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       rline[25];
data/irsim-9.7.104/base/network.c:428:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (st.file = fopen( fname, "r" )) == NULL )
data/irsim-9.7.104/base/network.c:432:9:  [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).
    if( atoi( rline ) != nnodes )
data/irsim-9.7.104/base/network.c:456:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( fname, "premature EOF in state file (%d errors)\n",
data/irsim-9.7.104/base/network.c:465:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( fname, "%d errors found in state file\n", st.errs );
data/irsim-9.7.104/base/newrstep.c:1474:9:  [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.
	(void) strcpy( s, " - " );
data/irsim-9.7.104/base/newrstep.c:1480:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, "%.1f%c", r, " KMG"[ exp ] );
data/irsim-9.7.104/base/newrstep.c:1483:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( s, "%g", r );
data/irsim-9.7.104/base/newrstep.c:1494: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  cbuf[4][20];
data/irsim-9.7.104/base/newrstep.c:1529: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  cbuf[3][20];
data/irsim-9.7.104/base/nsubrs.c:28: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.
public	char  *ttype[ NTTYPES ] =
data/irsim-9.7.104/base/nsubrs.c:55: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.
private	char  lcase[128] = 
data/irsim-9.7.104/base/nsubrs.c:255:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy( name, n->nname, i );
data/irsim-9.7.104/base/nsubrs.c:305:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy( name, n->nname, i );
data/irsim-9.7.104/base/prints.c:54: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     buff[300];
data/irsim-9.7.104/base/prints.c:74: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     buf1[ 100 ], buf2[ 200 ];
data/irsim-9.7.104/base/rsim.c:67: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.
public	char	*targv[ MAXARGS ];	/* array of tokens on command line */
data/irsim-9.7.104/base/rsim.c:71: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.
public	char	wildCard[ MAXARGS ];	/* set if corresponding arg has '*' */
data/irsim-9.7.104/base/rsim.c:194: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           prefix[100], index[256];
data/irsim-9.7.104/base/rsim.c:426: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  pathname[256];
data/irsim-9.7.104/base/rsim.c:429:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen( name, "r" );
data/irsim-9.7.104/base/rsim.c:436: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( (fp = fopen( pathname, "r" )) != NULL )
data/irsim-9.7.104/base/rsim.c:483:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	(void) strcat( arg, ".cmd" );
data/irsim-9.7.104/base/rsim.c:501:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char  line[ LSIZE ];		/* static: use only 1 line buffer */
data/irsim-9.7.104/base/rsim.c:701: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 bits[250];
data/irsim-9.7.104/base/rsim.c:725: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 tclcmd[250];
data/irsim-9.7.104/base/rsim.c:781: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 tclcmd[250];
data/irsim-9.7.104/base/rsim.c:808: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 tclcmd[250];
data/irsim-9.7.104/base/rsim.c:1329: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(rstring + (int)(i - vstring), "%d", idxc);
data/irsim-9.7.104/base/rsim.c:1772:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ccount = atoi(targv[4]);
data/irsim-9.7.104/base/rsim.c:1778:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ccount = atoi(targv[3]);
data/irsim-9.7.104/base/rsim.c:1944: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).
       int tag = (int) atoi(targv[2]);
data/irsim-9.7.104/base/rsim.c:2023: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 cval[2] ; 
data/irsim-9.7.104/base/rsim.c:2157: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           temp[20];
data/irsim-9.7.104/base/rsim.c:2160:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( temp, " @ %.3fns ", d2ns( cur_delta ) );
data/irsim-9.7.104/base/rsim.c:2302:26:  [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).
    exit( (targc == 2) ? atoi( targv[1] ) : 0 );
data/irsim-9.7.104/base/rsim.c:2677:6:  [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).
	n = atoi(targv[1]);
data/irsim-9.7.104/base/rsim.c:2722:6:  [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).
	n = atoi( targv[1] );
data/irsim-9.7.104/base/rsim.c:2915: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( (logfile = fopen( s, mode )) == NULL )
data/irsim-9.7.104/base/rsim.c:2969:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if( (caplogfile = fopen( s, mode )) == NULL )
data/irsim-9.7.104/base/rsim.c:3443: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).
    n = (targc == 2) ? atoi( targv[1] ) : -1;
data/irsim-9.7.104/base/rsim.c:3639:23:  [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).
	    short schedidx = atoi(targv[2]);
data/irsim-9.7.104/base/rsim.c:3647:23:  [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).
	    short schedidx = atoi(targv[2]);
data/irsim-9.7.104/base/rsim.c:3725: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.
private char    x_display[40];
data/irsim-9.7.104/base/rsim.c:3784: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).
		    voffset = atoi(targv[1]);
data/irsim-9.7.104/base/rsim.c:3847: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  fname[ 256 ];
data/irsim-9.7.104/base/rsim.c:3915: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  fname[ 256 ];
data/irsim-9.7.104/base/rsim.c:4026:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen( targv[1], "w" );
data/irsim-9.7.104/base/rsim.c:4094:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen( targv[1], "w" );
data/irsim-9.7.104/base/rsim.c:4182: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  n1[10], n2[10];
data/irsim-9.7.104/base/rsim.c:4200:9:  [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.
	(void) strcpy( n1, "0.0" );
data/irsim-9.7.104/base/rsim.c:4205:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( n1, "%2.2f",
data/irsim-9.7.104/base/rsim.c:4207:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( n2, "%2.2f",
data/irsim-9.7.104/base/rsim.c:4263: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  usage_str[40];
data/irsim-9.7.104/base/rsim.c:4424: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      line[ 256 ];
data/irsim-9.7.104/base/rsim.c:4429: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).
    if( (fp = fopen( file, "r" )) == NULL )
data/irsim-9.7.104/base/rsim.c:4460: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).
		    percent = atoi( targv[1] );
data/irsim-9.7.104/base/rsim.h:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          name[1];
data/irsim-9.7.104/base/rsim.h:66: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    values[1];			/* array of values */
data/irsim-9.7.104/base/sim.c:645: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  line[LSIZE];
data/irsim-9.7.104/base/sim.c:646: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  *targv[MAXARGS];	/* tokens on current command line */
data/irsim-9.7.104/base/sim.c:653: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 ((fin = fopen(simfile, "r")) == NULL)
data/irsim-9.7.104/base/sim.c:658:2:  [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(tmpfname, ".sim");
data/irsim-9.7.104/base/sim.c:659:8:  [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(tmpfname, "r");
data/irsim-9.7.104/base/sim.c:703:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fin = fopen(simfile, "r")) == NULL)
data/irsim-9.7.104/base/sstep.c:36: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.
private	char    charged_state[4] = 
data/irsim-9.7.104/base/sstep.c:41: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.
private	char    xcharged_state[4] = 
data/irsim-9.7.104/base/sstep.c:47: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.
private	char    thev_value[4] = 
data/irsim-9.7.104/base/stables.c:3: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 *node_values[46] = {
data/irsim-9.7.104/base/stables.c:102: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 logic_state[46] = {
data/irsim-9.7.104/base/stables.c:152: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 transmit[46][4] = {
data/irsim-9.7.104/base/stables.c:202: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 smerge[46][46] = {
data/irsim-9.7.104/base/usage.c:67:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( dst, "%d:%02d", i, (l % 3600) / 60 );
data/irsim-9.7.104/base/usage.c:73:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( dst, "%d", i / 60 );
data/irsim-9.7.104/base/usage.c:79:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%02d ", i );
data/irsim-9.7.104/base/usage.c:94:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%d.%01du ", dt / HZ, dt / (HZ / 10) );
data/irsim-9.7.104/base/usage.c:98:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%d.%01ds ", dt / HZ, dt / (HZ / 10) );
data/irsim-9.7.104/base/usage.c:107:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%d%% ", (int) (dt * 100 / ( (t ? t : 1 ) )) );
data/irsim-9.7.104/base/usage.c:111:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%dK\n", mem / 1024 );
data/irsim-9.7.104/base/usage.c:147:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dest, "%ldu %lds %ldsec", msu, mss, dt );
data/irsim-9.7.104/base/usage.c:210:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( dst, "%d:%02ld", i, (l % 3600) / 60 );
data/irsim-9.7.104/base/usage.c:216:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( dst, "%d", i / 60 );
data/irsim-9.7.104/base/usage.c:222:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%02d ", i );
data/irsim-9.7.104/base/usage.c:241:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%d.%01ldu ", (int)dt.tv_sec, u2d( dt.tv_usec ) );
data/irsim-9.7.104/base/usage.c:245:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%d.%01lds ", (int)dt.tv_sec, u2d( dt.tv_usec ) );
data/irsim-9.7.104/base/usage.c:256:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%d%% ", (int) (t * 100 / ( (ms ? ms : 1 ) )) );
data/irsim-9.7.104/base/usage.c:259:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dst, "%ldK\n", r1->ru_maxrss / 2 );
data/irsim-9.7.104/base/usage.c:300:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf( dest, "%ldu %lds %ld", msu, mss, ms );
data/irsim-9.7.104/faultsim/faultsim.c:386:25:  [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).
    else if( (f_fault = fopen( fname, "w" )) == NULL )
data/irsim-9.7.104/irsim/genspktbl.c:66:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (F = fopen( fname, "w" )) == NULL )
data/irsim-9.7.104/irsim/gentbl.c:29: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  *names[NSPECTRUM] = 
data/irsim-9.7.104/irsim/gentbl.c:40:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char  temp[100];
data/irsim-9.7.104/irsim/gentbl.c:115: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( (out = fopen( "stables.c", "w" )) == NULL )
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:77: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( (fi = fopen( argv[i], "r" )) == NULL )
data/irsim-9.7.104/lib/calibrate_spice3/findr.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  line[512];
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:188: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    line[200], name[100], type[100];
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:243: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    line[200];
data/irsim-9.7.104/other/h2a/Hist.c:15: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.
private	char	node_name[256];
data/irsim-9.7.104/other/h2a/Nsubrs.c:14: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    buff[30];
data/irsim-9.7.104/other/h2a/Nsubrs.c:20:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( buff, "<%d,%d>", ma, mi );
data/irsim-9.7.104/other/inet2sim/Sim.c:56: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        line[ 200 ];
data/irsim-9.7.104/other/inet2sim/Sim.c:157: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           capfmt[50];
data/irsim-9.7.104/other/inet2sim/Sim.c:160:9:  [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.
	(void) strcpy( GND_node->nname, "GND" );
data/irsim-9.7.104/other/inet2sim/inet2sim.c:69: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( (fin = fopen( inet_file, "r" )) == NULL )
data/irsim-9.7.104/other/inet2sim/inet2sim.c:76:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if( (fout = fopen( sim_file, "w" )) == NULL )
data/irsim-9.7.104/other/inet2sim/inet2sim.c:125: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           buff[15];
data/irsim-9.7.104/other/inet2sim/inet2sim.c:128:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf( buff, "$%d", i + 1 );
data/irsim-9.7.104/random/random.c:161: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 r[TCL_DOUBLE_SPACE];
data/irsim-9.7.104/random/random.c:186:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(r, "%.0f", a + (b-a)*drand48());
data/irsim-9.7.104/random/random.c:364: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(r, "%d", p[i]);
data/irsim-9.7.104/tcltk/lookup.c:37: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 mesg[50];
data/irsim-9.7.104/tcltk/tclirsim.c:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char wildCard[MAXARGS];
data/irsim-9.7.104/tcltk/tclirsim.c:205:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char outstr[128] = "puts -nonewline std";
data/irsim-9.7.104/tcltk/tclirsim.c:427: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.
        filename = (char *)malloc(strlen(argv[argc - 1]) + 5);
data/irsim-9.7.104/tcltk/tclirsim.c:508: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 versionstr[128];
data/irsim-9.7.104/tcltk/tclirsim.c:642: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 keyword[100];
data/irsim-9.7.104/tcltk/tkAnalyzer.c:300: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 *) analyzerPtr, Tcl_GetString(objv[2]), 0);
data/irsim-9.7.104/tcltk/tkAnalyzer.c:309: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 *) analyzerPtr, Tcl_GetString(objv[2]), 0);
data/irsim-9.7.104/tcltk/tkTag.c:24: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(snew, s, slen);
data/irsim-9.7.104/usersubckt/subckt.c:416:20:  [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.
    out_name_Ub = (char *)malloc(strlen(targv[targc-1]) + 20);
data/irsim-9.7.104/usersubckt/subckt.c:417:20:  [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.
    out_name_D  = (char *)malloc(strlen(targv[targc-1]) + 20);
data/irsim-9.7.104/analyzer/analyzer.c:30:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen( n );
data/irsim-9.7.104/analyzer/analyzer.c:95: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).
    t->len = strlen( t->name );
data/irsim-9.7.104/analyzer/analyzer.c:121: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).
    t->len = strlen( t->name );
data/irsim-9.7.104/analyzer/coords.c:261: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).
	len = strlen( t->name );
data/irsim-9.7.104/analyzer/menu.c:90: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).
	mp->len = strlen( mp->str );
data/irsim-9.7.104/analyzer/menu.c:95: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( item->str );
data/irsim-9.7.104/analyzer/namelen.c:56: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).
	t->len = strlen( t->name );
data/irsim-9.7.104/analyzer/postscript.c:99:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy( fname, banner, bannerLen );
data/irsim-9.7.104/analyzer/postscript.c:108: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).
	bannerLen = strlen(banner);
data/irsim-9.7.104/analyzer/postscript.c:120:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy( fname, banner, bannerLen );
data/irsim-9.7.104/analyzer/postscript.c:497: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).
    int       x1, x2, xx, mid, nbits, strlen;
data/irsim-9.7.104/analyzer/postscript.c:585: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).
	    StrCenter( str, strlen, x1, x2, mid, WHITE, BLACK );
data/irsim-9.7.104/analyzer/textwind.c:82: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( s );
data/irsim-9.7.104/analyzer/textwind.c:124: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(s);
data/irsim-9.7.104/analyzer/window.c:164: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).
    bannerLen = strlen( banner );
data/irsim-9.7.104/analyzer/window.c:433: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( msg );
data/irsim-9.7.104/analyzer/window.c:450: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( s );
data/irsim-9.7.104/analyzer/window.c:453: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( s );
data/irsim-9.7.104/analyzer/window.c:458: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( s, "-" );
data/irsim-9.7.104/analyzer/window.c:460: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( s );
data/irsim-9.7.104/analyzer/window.c:477: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).
	len = strlen( s );
data/irsim-9.7.104/analyzer/window.c:490: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).
	len = strlen( s );
data/irsim-9.7.104/analyzer/window.c:972:51:  [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 (t->bdigit == 5 || t->bdigit == 6) slen = strlen(str);
data/irsim-9.7.104/analyzer/window.c:1207:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen( s );
data/irsim-9.7.104/analyzer/window.c:1295: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).
	len = strlen( val );
data/irsim-9.7.104/base/access.c:29:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char  read;
data/irsim-9.7.104/base/binsim.c:143: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).
	slen = strlen( pnode( n ) ) + 1;
data/irsim-9.7.104/base/cad_dir.c:51: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( s );
data/irsim-9.7.104/base/cad_dir.c:55: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( BIN_DIR );
data/irsim-9.7.104/base/config.c:177:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( not stat->read )
data/irsim-9.7.104/base/config.c:182:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if( stat->read )
data/irsim-9.7.104/base/config.c:188:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if( stat->read )
data/irsim-9.7.104/base/fio.c:46:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc( fp );
data/irsim-9.7.104/base/fio.c:59:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
             c = getc(fp); 
data/irsim-9.7.104/base/globals.h:19:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char  read;
data/irsim-9.7.104/base/mem.c:168:11:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
    lim = ulimit( 3, 0 );
data/irsim-9.7.104/base/netupdate.c:372: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( str ) + 1;
data/irsim-9.7.104/base/network.c:371:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = getc( st->file );
data/irsim-9.7.104/base/nsubrs.c:191: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).
	name = malloc(strlen(name_in) + strlen(simprefix) + 2);
data/irsim-9.7.104/base/nsubrs.c:191: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).
	name = malloc(strlen(name_in) + strlen(simprefix) + 2);
data/irsim-9.7.104/base/nsubrs.c:253:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen( name ) + 1;
data/irsim-9.7.104/base/nsubrs.c:303:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen( name ) + 1;
data/irsim-9.7.104/base/rsim.c:118:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen( line ) + 1;
data/irsim-9.7.104/base/rsim.c:214: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).
    length = strlen( prefix ) + 1;
data/irsim-9.7.104/base/rsim.c:486: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).
	arg[ strlen( arg ) - 4 ] = '\0';
data/irsim-9.7.104/base/rsim.c:605:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    p = (Path *) Valloc( SIZEOF( Path ) + strlen( targv[i] ), 1 );
data/irsim-9.7.104/base/rsim.c:707:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(b->name) + 2 + b->nbits;
data/irsim-9.7.104/base/rsim.c:762:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(name) + ((n->nflags & MERGED) ? 23 : 3);
data/irsim-9.7.104/base/rsim.c:1188: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).
		if ((b = strlen(locstring)) == nbits)
data/irsim-9.7.104/base/rsim.c:1216: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).
		   strcpy(newvecs + (nbits - strlen(locstring + 2)), locstring + 2);
data/irsim-9.7.104/base/rsim.c:1274: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).
    if (strlen(newvecs) != nbits)
data/irsim-9.7.104/base/rsim.c:1402:41:  [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( b == NULL or (b->name = Valloc( strlen( targv[1] ) + 1, 0 )) == NULL )
data/irsim-9.7.104/base/rsim.c:1496: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).
    if( strlen( value ) != nbits )
data/irsim-9.7.104/base/rsim.c:1501:26:  [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( mask != NULL and strlen( mask ) != nbits )
data/irsim-9.7.104/base/rsim.c:1622:26:  [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 (value[0] == '%' && (strlen(value) == 2))
data/irsim-9.7.104/base/rsim.c:2162: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).
    column = strlen( temp );
data/irsim-9.7.104/base/rsim.c:2188:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( fgetc(stdin) <= 0 );		/* this is TEMPORARY! */
data/irsim-9.7.104/base/rsim.c:3240:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen( pnode( n ) ) + 2;
data/irsim-9.7.104/base/rsim.c:3342:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen( pnode( n ) ) + 2;
data/irsim-9.7.104/base/rsim.c:3602: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).
		changelog = Valloc( strlen( targv[1] ) + 1, 0 );
data/irsim-9.7.104/base/rsim.c:3768:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(targv[1]) > 1)
data/irsim-9.7.104/base/rsim.c:4798: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).
	    i = strlen( c->name ) + 1;
data/irsim-9.7.104/base/sim.c:243: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).
   if ( (l=strlen(str)) <= 2 ) {
data/irsim-9.7.104/base/sim.c:655:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *tmpfname = (char *)malloc(5 + strlen(simfile));
data/irsim-9.7.104/base/sim.c:722: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).
			char *prmname = malloc(strlen(targv[2]) + strlen(targv[4]) + 1);
data/irsim-9.7.104/base/sim.c:722:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char *prmname = malloc(strlen(targv[2]) + strlen(targv[4]) + 1);
data/irsim-9.7.104/lib/calibrate_spice3/findr.c:213: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).
	s = (char *) malloc( strlen( name ) + 1 );
data/irsim-9.7.104/other/h2a/Nsubrs.c:26: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).
	    node->nname = Valloc( strlen( buff ) + 1, 1 );
data/irsim-9.7.104/other/inet2sim/inet2sim.c:131: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).
	np->nname = Valloc( strlen( buff ) + 1, 1 );
data/irsim-9.7.104/tcltk/tclanalyzer.c:295: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).
		bannerLen = strlen(banner);
data/irsim-9.7.104/tcltk/tclirsim.c:145:37:  [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).
    objv0 = Tcl_NewStringObj(argv0, strlen(argv0));
data/irsim-9.7.104/tcltk/tclirsim.c:151:47:  [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).
	objv[0] = Tcl_NewStringObj(resolutions[idx], strlen(resolutions[idx]));
data/irsim-9.7.104/tcltk/tclirsim.c:156: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).
	    objv[i] = Tcl_NewStringObj(argv[i], strlen(argv[i]));
data/irsim-9.7.104/tcltk/tclirsim.c:221:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(bigstr, outptr, 24);
data/irsim-9.7.104/tcltk/tclirsim.c:238:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(finalstr, outptr, 24);
data/irsim-9.7.104/tcltk/tclirsim.c:427:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        filename = (char *)malloc(strlen(argv[argc - 1]) + 5);
data/irsim-9.7.104/tcltk/tkTag.c:21: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).
   slen = 1 + strlen(s);
data/irsim-9.7.104/tcltk/tkTag.c:54:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	substcmd = (char *)Tcl_Alloc(strlen(postcmd) + 1);
data/irsim-9.7.104/tcltk/tkTag.c:84:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			newcmd = (char *)Tcl_Alloc(strlen(substcmd));
data/irsim-9.7.104/tcltk/tkTag.c:86:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			newcmd = (char *)Tcl_Alloc(strlen(substcmd) + strlen(tkpath));
data/irsim-9.7.104/tcltk/tkTag.c:86:50:  [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).
			newcmd = (char *)Tcl_Alloc(strlen(substcmd) + strlen(tkpath));
data/irsim-9.7.104/tcltk/tkTag.c:106: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).
		    newcmd = (char *)Tcl_Alloc(strlen(substcmd)
data/irsim-9.7.104/tcltk/tkTag.c:107:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				+ strlen(sres) + 1);
data/irsim-9.7.104/tcltk/tkTag.c:124:38:  [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).
		        newcmd = (char *)Tcl_Alloc(strlen(substcmd)
data/irsim-9.7.104/tcltk/tkTag.c:125:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				+ strlen(argv[argidx]) + 2 * needList);
data/irsim-9.7.104/tcltk/tkTag.c:128:8:  [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.
			    strcpy(newcmd + (int)(sptr - substcmd), "{");
data/irsim-9.7.104/tcltk/tkTag.c:132:8:  [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(newcmd, "}");
data/irsim-9.7.104/tcltk/tkTag.c:140:38:  [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).
		        newcmd = (char *)Tcl_Alloc(strlen(substcmd) + 1);
data/irsim-9.7.104/tcltk/tkTag.c:153: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).
		       llen += (1 + strlen(argv[i]));
data/irsim-9.7.104/tcltk/tkTag.c:154: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).
		    newcmd = (char *)Tcl_Alloc(strlen(substcmd) + llen);
data/irsim-9.7.104/tcltk/tkTag.c:156:7:  [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.
		    strcpy(newcmd + (int)(sptr - substcmd), "{");
data/irsim-9.7.104/tcltk/tkTag.c:160: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(newcmd, " ");
data/irsim-9.7.104/tcltk/tkTag.c:162:7:  [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(newcmd, "}");
data/irsim-9.7.104/tcltk/tkTag.c:170: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).
		    newcmd = (char *)Tcl_Alloc(strlen(substcmd) + 1);
data/irsim-9.7.104/tcltk/tkTag.c:221: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).
    if (strlen(Tcl_GetString(objv[2])) == 0)
data/irsim-9.7.104/usersubckt/subckt.c:298:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(newoutvals) == nouts)
data/irsim-9.7.104/usersubckt/subckt.c:416: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).
    out_name_Ub = (char *)malloc(strlen(targv[targc-1]) + 20);
data/irsim-9.7.104/usersubckt/subckt.c:417: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).
    out_name_D  = (char *)malloc(strlen(targv[targc-1]) + 20);

ANALYSIS SUMMARY:

Hits = 455
Lines analyzed = 34213 in approximately 0.91 seconds (37678 lines/second)
Physical Source Lines of Code (SLOC) = 25335
Hits@level = [0] 272 [1]  98 [2] 242 [3]  28 [4]  87 [5]   0
Hits@level+ = [0+] 727 [1+] 455 [2+] 357 [3+] 115 [4+]  87 [5+]   0
Hits/KSLOC@level+ = [0+] 28.6955 [1+] 17.9593 [2+] 14.0912 [3+] 4.53918 [4+] 3.43398 [5+]   0
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.