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/gwave-20190116/spicefile/sp2sp.c
Examining data/gwave-20190116/spicefile/test_read.c
Examining data/gwave-20190116/spicefile/spicestream.c
Examining data/gwave-20190116/spicefile/wavefile.h
Examining data/gwave-20190116/spicefile/wavefile.c
Examining data/gwave-20190116/spicefile/spicestream.h
Examining data/gwave-20190116/spicefile/ss_nsout.c
Examining data/gwave-20190116/spicefile/ss_cazm.c
Examining data/gwave-20190116/spicefile/spice2.h
Examining data/gwave-20190116/spicefile/ss_spice2.c
Examining data/gwave-20190116/spicefile/ssintern.h
Examining data/gwave-20190116/spicefile/ss_hspice.c
Examining data/gwave-20190116/spicefile/ss_spice3.c
Examining data/gwave-20190116/src/cmd.c
Examining data/gwave-20190116/src/wavelist.h
Examining data/gwave-20190116/src/guile-compat.h
Examining data/gwave-20190116/src/wavewin.h
Examining data/gwave-20190116/src/event.c
Examining data/gwave-20190116/src/xsnarf.h
Examining data/gwave-20190116/src/guile-compat.c
Examining data/gwave-20190116/src/wavelist.c
Examining data/gwave-20190116/src/init_scheme_string.c
Examining data/gwave-20190116/src/dnd.c
Examining data/gwave-20190116/src/gtkmisc.c
Examining data/gwave-20190116/src/scwm_guile.c
Examining data/gwave-20190116/src/wavewin.c
Examining data/gwave-20190116/src/wavepanel.c
Examining data/gwave-20190116/src/gtkmisc.h
Examining data/gwave-20190116/src/gwave.c
Examining data/gwave-20190116/src/rgeval.c
Examining data/gwave-20190116/src/measurebtn.h
Examining data/gwave-20190116/src/validate.h
Examining data/gwave-20190116/src/measurebtn.c
Examining data/gwave-20190116/src/xgserver.c
Examining data/gwave-20190116/src/dnd.h
Examining data/gwave-20190116/src/GtkTable_indel.h
Examining data/gwave-20190116/src/draw.c
Examining data/gwave-20190116/src/GtkTable_indel.c
Examining data/gwave-20190116/src/arg_unused.h
Examining data/gwave-20190116/src/scwm_guile.h
Examining data/gwave-20190116/src/gwave.h
Examining data/gwave-20190116/src/pixmaps.c
Examining data/gwave-20190116/remote/xgclient.c
Examining data/gwave-20190116/remote/repllib.c
Examining data/gwave-20190116/remote/xgexec.h
Examining data/gwave-20190116/remote/gwaverepl.c
Examining data/gwave-20190116/remote/gwave-exec.c

FINAL RESULTS:

data/gwave-20190116/remote/repllib.c:64:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"(apropos-internal \"^%s\")",text);
data/gwave-20190116/remote/repllib.c:129:3:  [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(*sofar,buffer);
data/gwave-20190116/spicefile/sp2sp.c:437: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(header, descr);
data/gwave-20190116/spicefile/sp2sp.c:477:5:  [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(of, NPY_MAGIC);
data/gwave-20190116/spicefile/spicestream.c:340:11:  [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.
		blen += vsnprintf(&buf[blen-1], 1024-blen, msg, args);
data/gwave-20190116/spicefile/spicestream.c:344:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "[%s]: %s ", id, typestr);
data/gwave-20190116/spicefile/spicestream.c:346:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(&buf[blen], msg, args);
data/gwave-20190116/spicefile/ss_hspice.c:183:3:  [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(line, lbuf);
data/gwave-20190116/spicefile/test_read.c:118:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(nname, "calc( %s - %s )", 
data/gwave-20190116/src/dnd.c:171:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s;%s", 
data/gwave-20190116/src/measurebtn.c:257:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(tip, tipfmt, valstr);
data/gwave-20190116/src/wavelist.c:279:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(lab, "%s @ %s=%g", wv->wv_name, 
data/gwave-20190116/src/wavelist.c:357:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "%s: .../%.64s", wdata->ftag, cp+1);
data/gwave-20190116/src/wavelist.c:359:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "%s: .../%.64s", wdata->ftag, wdata->wf->wf_filename);
data/gwave-20190116/src/wavelist.c:361:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "%s: %.64s", wdata->ftag, wdata->wf->wf_filename);
data/gwave-20190116/src/wavepanel.c:208: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(lbuf, val2txt(wp->end_yval, 0));
data/gwave-20190116/src/wavepanel.c:256: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(lbuf, val2txt(wp->start_yval, 0));
data/gwave-20190116/remote/gwave-exec.c:38:19:  [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 (!(dispName = getenv("DISPLAY")))
data/gwave-20190116/remote/gwaverepl.c:35:19:  [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 (!(dispName = getenv("DISPLAY")))
data/gwave-20190116/spicefile/sp2sp.c:135:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt (argc, argv, "b:c:d:e:f:n:s:t:u:o:vx")) != EOF) {
data/gwave-20190116/spicefile/test_read.c:51:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt (argc, argv, "alt:vx")) != EOF) {
data/gwave-20190116/src/gwave.c:139:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("GUILE_WARN_DEPRECATED") == NULL)
data/gwave-20190116/src/gwave.c:177:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(!getenv("G_SLICE"))
data/gwave-20190116/remote/repllib.c:44: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 *completions[1024];
data/gwave-20190116/remote/repllib.c:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer [512];
data/gwave-20190116/spicefile/sp2sp.c:148:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ndigits = atoi(optarg);
data/gwave-20190116/spicefile/sp2sp.c:310:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/gwave-20190116/spicefile/sp2sp.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 header[NPY_MAX_HDR_LEN];
data/gwave-20190116/spicefile/sp2sp.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 descr[5];
data/gwave-20190116/spicefile/sp2sp.c:431:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(header, "{'descr':'");
data/gwave-20190116/spicefile/sp2sp.c:435: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(descr+2, "%d", (int) sizeof(float));
data/gwave-20190116/spicefile/sp2sp.c:438:5:  [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(header, "', 'fortran_order':False, 'shape': (");
data/gwave-20190116/spicefile/sp2sp.c:441: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(header+hlen, "%d", shape[i]);
data/gwave-20190116/spicefile/sp2sp.c:444:4:  [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(header, ", ");
data/gwave-20190116/spicefile/sp2sp.c:447:5:  [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(header, ") }");
data/gwave-20190116/spicefile/sp2sp.c:494:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/gwave-20190116/spicefile/sp2sp.c:570:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/gwave-20190116/spicefile/sp2sp.c:571: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 npy_descr[5], npy_preamble[NPY_PREAMBLE_LEN], npy_header[NPY_MAX_HDR_LEN];
data/gwave-20190116/spicefile/sp2sp.c:717:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		n = atoi(fnum);
data/gwave-20190116/spicefile/spice2.h:6:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char title[80];
data/gwave-20190116/spicefile/spice2.h:7:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[8];
data/gwave-20190116/spicefile/spice2.h:8:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char time[8];
data/gwave-20190116/spicefile/spice2.h:15:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[8];
data/gwave-20190116/spicefile/spice2.h:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char title[24];
data/gwave-20190116/spicefile/spice2.h:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char magic[8];
data/gwave-20190116/spicefile/spicestream.c:208:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[32];
data/gwave-20190116/spicefile/spicestream.c:212:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "type-%d", type);
data/gwave-20190116/spicefile/spicestream.c:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/gwave-20190116/spicefile/ss_hspice.c:88: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 lbuf[256];
data/gwave-20190116/spicefile/ss_hspice.c:89: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 nbuf[16];
data/gwave-20190116/spicefile/ss_hspice.c:130: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).
	nauto = atoi(nbuf);
data/gwave-20190116/spicefile/ss_hspice.c:134: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).
	nprobe = atoi(nbuf);
data/gwave-20190116/spicefile/ss_hspice.c:138: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).
	nsweepparam = atoi(nbuf);
data/gwave-20190116/spicefile/ss_hspice.c:151: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).
	ntables = atoi(cp);
data/gwave-20190116/spicefile/ss_hspice.c:232: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 nbuf[16];
data/gwave-20190116/spicefile/ss_hspice.c:265: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).
	nauto = atoi(nbuf);	/* number of automaticly-included variables,
data/gwave-20190116/spicefile/ss_hspice.c:269: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).
	nprobe = atoi(nbuf);	/* number of user-requested columns */
data/gwave-20190116/spicefile/ss_hspice.c:273: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).
	nsweepparam = atoi(nbuf);	/* number of sweep parameters */
data/gwave-20190116/spicefile/ss_hspice.c:286: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).
	ntables = atoi(ntable_cp);
data/gwave-20190116/spicefile/ss_hspice.c:374: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).
	hstype = atoi(cp);
data/gwave-20190116/spicefile/ss_hspice.c:408: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).
		hstype = atoi(cp);
data/gwave-20190116/spicefile/ss_hspice.c:624: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 vbuf[16];
data/gwave-20190116/spicefile/ss_nsout.c:137: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).
				nsv->index = atoi(val);
data/gwave-20190116/spicefile/ss_nsout.c:256: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).
		idx = atoi(sidx);
data/gwave-20190116/spicefile/ss_spice3.c:105: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).
			nvars = atoi(val);
data/gwave-20190116/spicefile/ss_spice3.c:114:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			npoints = atoi(val);
data/gwave-20190116/spicefile/ss_spice3.c:282:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		frownum = atoi(tok);
data/gwave-20190116/spicefile/ssintern.h:39: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).
#define fopen64 fopen
data/gwave-20190116/spicefile/wavefile.c:39: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 ebuf[128];
data/gwave-20190116/spicefile/wavefile.c:198: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 tmp[128];
data/gwave-20190116/spicefile/wavefile.c:199: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(tmp, "tbl%d", wf->wf_ntables);
data/gwave-20190116/src/cmd.c:686:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char lbuf[64];
data/gwave-20190116/src/cmd.c:688: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(lbuf, "wavecolor%d", cvw->colorn);
data/gwave-20190116/src/dnd.c:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/gwave-20190116/src/draw.c:50:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[64];
data/gwave-20190116/src/draw.c:58:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "% .5g", val);
data/gwave-20190116/src/draw.c:103:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "% .*f%c", ddigits, sval, suffix);
data/gwave-20190116/src/measurebtn.c:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tip[4096];
data/gwave-20190116/src/wavelist.c:278:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char lab[4096];
data/gwave-20190116/src/wavelist.c:317:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/gwave-20190116/src/wavelist.c:321:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "gwave: %.64s", wdata->wf->wf_filename);
data/gwave-20190116/src/wavelist.c:752:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/gwave-20190116/src/wavelist.c:777:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%g", x); 
data/gwave-20190116/src/wavelist.c:784:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, " %g", y); 
data/gwave-20190116/src/wavelist.c:967:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/gwave-20190116/src/wavelist.c:973:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d", wvh->wv->wtable->swindex);
data/gwave-20190116/src/wavepanel.c:103: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 lbuf[64];
data/gwave-20190116/src/wavepanel.c:122: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(lbuf, "wavecolor%d", vw->colorn);
data/gwave-20190116/src/wavepanel.c:195: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 lbuf[128];
data/gwave-20190116/remote/gwave-exec.c:71: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(error)!=0) {
data/gwave-20190116/remote/gwaverepl.c:81: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).
			if (strlen(error)!=0) {
data/gwave-20190116/remote/repllib.c:63:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			query = malloc(strlen(text)+30);
data/gwave-20190116/remote/repllib.c:67: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(error) > 0)
data/gwave-20190116/remote/repllib.c:108: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).
	len=strlen(buffer);
data/gwave-20190116/remote/repllib.c:114: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).
	pos=strlen(*sofar);
data/gwave-20190116/remote/repllib.c:116:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(*sofar+pos,buffer,len);
data/gwave-20190116/remote/repllib.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).
		if (strlen(buffer)==0) {
data/gwave-20190116/remote/repllib.c:128: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).
		*sofar=g_realloc(*sofar,strlen(*sofar)+strlen(buffer)+1);
data/gwave-20190116/remote/repllib.c:128: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).
		*sofar=g_realloc(*sofar,strlen(*sofar)+strlen(buffer)+1);
data/gwave-20190116/remote/repllib.c:130:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} while (buffer[strlen(buffer)-1]!='\n');
data/gwave-20190116/remote/repllib.c:145: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).
	end=strlen(expr);
data/gwave-20190116/remote/xgclient.c:113:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			8, PropModeReplace, req, strlen(req)+1);
data/gwave-20190116/spicefile/sp2sp.c:440: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).
		hlen = strlen(header);
data/gwave-20190116/spicefile/sp2sp.c:448: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).
    hlen = strlen(header);
data/gwave-20190116/spicefile/sp2sp.c:471:3:  [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(header, " ");
data/gwave-20190116/spicefile/sp2sp.c:473:5:  [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(header, "\n");
data/gwave-20190116/spicefile/sp2sp.c:474: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).
    hlen = strlen(header);
data/gwave-20190116/spicefile/spicestream.c:229: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).
		l = strlen(sv->name + 3);
data/gwave-20190116/spicefile/spicestream.c:233:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, sv->name, n-1);
data/gwave-20190116/spicefile/spicestream.c:234: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).
	n -= strlen(buf)+1;
data/gwave-20190116/spicefile/spicestream.c:238: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).
		idx = strlen(buf);
data/gwave-20190116/spicefile/spicestream.c:276:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(((c = getc(fp)) != EOF) && c != '\n') {
data/gwave-20190116/spicefile/spicestream.c:345: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).
	blen = strlen(buf);
data/gwave-20190116/spicefile/spicestream.c:347:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(buf, "\n");
data/gwave-20190116/spicefile/ss_cazm.c:236: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).
	if(strspn(tok, "0123456789eE+-.") != strlen(tok)) {
data/gwave-20190116/spicefile/ss_hspice.c:66:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((c = getc(fp)) == EOF)
data/gwave-20190116/spicefile/ss_hspice.c:128:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nbuf, &lbuf[0], 4);
data/gwave-20190116/spicefile/ss_hspice.c:132:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nbuf, &lbuf[4], 4);
data/gwave-20190116/spicefile/ss_hspice.c:136:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nbuf, &lbuf[8], 4);
data/gwave-20190116/spicefile/ss_hspice.c:173: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).
		len = strlen(lbuf);
data/gwave-20190116/spicefile/ss_hspice.c:263:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nbuf, &ahdr[0], 4);
data/gwave-20190116/spicefile/ss_hspice.c:267:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nbuf, &ahdr[4], 4);
data/gwave-20190116/spicefile/ss_hspice.c:271:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nbuf, &ahdr[8], 4);
data/gwave-20190116/spicefile/ss_hspice.c:633: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).
		l = strlen(sf->linebuf);
data/gwave-20190116/spicefile/ss_hspice.c:640:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sf->line_length = strlen(sf->linep);
data/gwave-20190116/spicefile/ss_hspice.c:649:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(vbuf, sf->linep, sf->avalsize);
data/gwave-20190116/spicefile/ss_hspice.c:652:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(vbuf) != sf->avalsize) {
data/gwave-20190116/spicefile/test_read.c:112: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).
		name_len = strlen(dv1->wv_name);
data/gwave-20190116/spicefile/test_read.c:114: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).
		name_len += strlen(dv2->wv_name);
data/gwave-20190116/src/dnd.c:177: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).
					8, buf, strlen(buf));
data/gwave-20190116/src/gtkmisc.c:359: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(item_label) == 0) {
data/gwave-20190116/src/wavelist.c:354: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(wdata->wf->wf_filename) > 16) {
data/gwave-20190116/src/wavepanel.c:71: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).
		l = buflen - strlen(gdf->ftag) - 10;
data/gwave-20190116/src/wavepanel.c:78:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = buflen - strlen(gdf->ftag) - 10;
data/gwave-20190116/src/xgserver.c:144: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).
			4+strlen(XGNAME) );

ANALYSIS SUMMARY:

Hits = 135
Lines analyzed = 13459 in approximately 0.41 seconds (32790 lines/second)
Physical Source Lines of Code (SLOC) = 9363
Hits@level = [0] 197 [1]  46 [2]  66 [3]   6 [4]  17 [5]   0
Hits@level+ = [0+] 332 [1+] 135 [2+]  89 [3+]  23 [4+]  17 [5+]   0
Hits/KSLOC@level+ = [0+] 35.4587 [1+] 14.4185 [2+] 9.5055 [3+] 2.45648 [4+] 1.81566 [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.