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/xnec2c-4.1.1/src/callback_func.c
Examining data/xnec2c-4.1.1/src/geometry.h
Examining data/xnec2c-4.1.1/src/ground.h
Examining data/xnec2c-4.1.1/src/interface.h
Examining data/xnec2c-4.1.1/src/calculations.h
Examining data/xnec2c-4.1.1/src/utils.c
Examining data/xnec2c-4.1.1/src/interface.c
Examining data/xnec2c-4.1.1/src/editors.h
Examining data/xnec2c-4.1.1/src/xnec2c.h
Examining data/xnec2c-4.1.1/src/xnec2c.c
Examining data/xnec2c-4.1.1/src/network.c
Examining data/xnec2c-4.1.1/src/radiation.h
Examining data/xnec2c-4.1.1/src/calculations.c
Examining data/xnec2c-4.1.1/src/draw_radiation.c
Examining data/xnec2c-4.1.1/src/input.c
Examining data/xnec2c-4.1.1/src/somnec.c
Examining data/xnec2c-4.1.1/src/shared.c
Examining data/xnec2c-4.1.1/src/fork.h
Examining data/xnec2c-4.1.1/src/nec2_model.c
Examining data/xnec2c-4.1.1/src/rc_config.c
Examining data/xnec2c-4.1.1/src/geom_edit.c
Examining data/xnec2c-4.1.1/src/network.h
Examining data/xnec2c-4.1.1/src/plot_freqdata.h
Examining data/xnec2c-4.1.1/src/main.c
Examining data/xnec2c-4.1.1/src/somnec.h
Examining data/xnec2c-4.1.1/src/fields.c
Examining data/xnec2c-4.1.1/src/shared.h
Examining data/xnec2c-4.1.1/src/rc_config.h
Examining data/xnec2c-4.1.1/src/callbacks.c
Examining data/xnec2c-4.1.1/src/ground.c
Examining data/xnec2c-4.1.1/src/geometry.c
Examining data/xnec2c-4.1.1/src/input.h
Examining data/xnec2c-4.1.1/src/common.h
Examining data/xnec2c-4.1.1/src/nec2_model.h
Examining data/xnec2c-4.1.1/src/plot_freqdata.c
Examining data/xnec2c-4.1.1/src/draw_radiation.h
Examining data/xnec2c-4.1.1/src/draw.h
Examining data/xnec2c-4.1.1/src/radiation.c
Examining data/xnec2c-4.1.1/src/geom_edit.h
Examining data/xnec2c-4.1.1/src/cmnd_edit.h
Examining data/xnec2c-4.1.1/src/matrix.h
Examining data/xnec2c-4.1.1/src/gnuplot.c
Examining data/xnec2c-4.1.1/src/gnuplot.h
Examining data/xnec2c-4.1.1/src/draw.c
Examining data/xnec2c-4.1.1/src/cmnd_edit.c
Examining data/xnec2c-4.1.1/src/callbacks.h
Examining data/xnec2c-4.1.1/src/draw_structure.h
Examining data/xnec2c-4.1.1/src/fields.h
Examining data/xnec2c-4.1.1/src/matrix.c
Examining data/xnec2c-4.1.1/src/callback_func.h
Examining data/xnec2c-4.1.1/src/draw_structure.c
Examining data/xnec2c-4.1.1/src/utils.h
Examining data/xnec2c-4.1.1/src/main.h
Examining data/xnec2c-4.1.1/src/fork.c

FINAL RESULTS:

data/xnec2c-4.1.1/src/plot_freqdata.c:394:2:  [4] (format) snprintf:
  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.
	snprintf( value, sizeof(value), (const char *)format, min );
data/xnec2c-4.1.1/src/plot_freqdata.c:469:2:  [4] (format) snprintf:
  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.
	snprintf( value, 16, (const char *)format, max );
data/xnec2c-4.1.1/src/rc_config.c:866:3:  [4] (format) snprintf:
  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.
  snprintf( rc_buf, sizeof(rc_buf),
data/xnec2c-4.1.1/src/main.c:63:20:  [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( (option = getopt(argc, argv, "i:j:hv") ) != -1 )
data/xnec2c-4.1.1/src/rc_config.c:59:50:  [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.
  snprintf( cfg_file, sizeof(cfg_file), "%s/%s", getenv("HOME"), CONFIG_FILE );
data/xnec2c-4.1.1/src/rc_config.c:85:35:  [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.
  Strlcpy( rc_config.working_dir, getenv("HOME"), sizeof(rc_config.working_dir) );
data/xnec2c-4.1.1/src/rc_config.c:299:44:  [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.
  snprintf( fpath, sizeof(fpath), "%s/%s", getenv("HOME"), CONFIG_FILE );
data/xnec2c-4.1.1/src/rc_config.c:918: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.
	  "%s/%s", getenv("HOME"), CONFIG_FILE );
data/xnec2c-4.1.1/src/callback_func.c:483: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 value[9];
data/xnec2c-4.1.1/src/callback_func.c:849: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 fname[144];
data/xnec2c-4.1.1/src/callback_func.h:31: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 filename[LINE_LEN];
data/xnec2c-4.1.1/src/callbacks.c:157: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 saveas[FILENAME_LEN + 24];
data/xnec2c-4.1.1/src/callbacks.c:890: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 saveas[FILENAME_LEN + 24];
data/xnec2c-4.1.1/src/callbacks.c:1100: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 saveas[FILENAME_LEN + 24];
data/xnec2c-4.1.1/src/cmnd_edit.c:68: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).
	  iv[idc-CMND_COL_I1] = atoi(sv);
data/xnec2c-4.1.1/src/cmnd_edit.c:2624:8:  [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).
		ek = atoi(sv);
data/xnec2c-4.1.1/src/cmnd_edit.c:2881:8:  [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).
		xq = atoi(sv);
data/xnec2c-4.1.1/src/cmnd_edit.c:3006: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).
		zo = (gint)atoi( sv );
data/xnec2c-4.1.1/src/common.h:229: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 working_dir[FILENAME_LEN];
data/xnec2c-4.1.1/src/common.h:232: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 infile[FILENAME_LEN];
data/xnec2c-4.1.1/src/draw_radiation.c:960: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 *pol_type[NUM_POL] =
data/xnec2c-4.1.1/src/draw_radiation.c:969: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 *scale[NUM_SCALES] =
data/xnec2c-4.1.1/src/draw_radiation.c:977: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 txt[64];
data/xnec2c-4.1.1/src/draw_structure.c:375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char label[11];
data/xnec2c-4.1.1/src/draw_structure.c:709: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 txt[8];
data/xnec2c-4.1.1/src/fork.c:125:2:  [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( &buff[idx], var, cnt );
data/xnec2c-4.1.1/src/fork.c:127:2:  [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( var, &buff[idx], cnt );
data/xnec2c-4.1.1/src/fork.c:234:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].gtot, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:235:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].tilt, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:236:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].axrt, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:239:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].max_gain, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:240:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].min_gain, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:241:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].max_gain_tht, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:242:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].max_gain_phi, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:245:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].max_gain_idx, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:246:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].min_gain_idx, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:249:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[0].sens, cnt, WRITE );
data/xnec2c-4.1.1/src/fork.c:331: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 cmnd[8];		/* Command string received from parent */
data/xnec2c-4.1.1/src/fork.c:489: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 nfeh[5];
data/xnec2c-4.1.1/src/fork.c:583:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].gtot, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:584:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].tilt, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:585:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].axrt, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:588:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].max_gain, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:589:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].min_gain, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:590:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].max_gain_tht, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:591:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].max_gain_phi, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:594:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].max_gain_idx, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:595:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].min_gain_idx, cnt, READ );
data/xnec2c-4.1.1/src/fork.c:598:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Mem_Copy( buff, (char *)rad_pattern[fstep].sens, cnt, READ );
data/xnec2c-4.1.1/src/geom_edit.c:68: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).
	  iv[idi-GEOM_COL_I1] = atoi(sv);
data/xnec2c-4.1.1/src/geom_edit.c:241:8:  [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( str ) == tag )
data/xnec2c-4.1.1/src/geom_edit.c:318:8:  [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(str) == tag )
data/xnec2c-4.1.1/src/geom_edit.c:349: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).
  type = atoi( str );
data/xnec2c-4.1.1/src/geom_edit.c:1863: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).
	  iv[idi-GEOM_COL_I1] = atoi(sv);
data/xnec2c-4.1.1/src/geom_edit.c:2500: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(sv) + 1;
data/xnec2c-4.1.1/src/input.c:54: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 ain[3], line_buf[LINE_LEN];
data/xnec2c-4.1.1/src/input.c:144:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char gm[3];
data/xnec2c-4.1.1/src/input.c:660: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 *atst[NUM_CMNDS] = { COMMANDS };
data/xnec2c-4.1.1/src/input.c:662: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 ain[3];
data/xnec2c-4.1.1/src/main.c:82: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).
		calc_data.num_jobs = atoi( optarg );
data/xnec2c-4.1.1/src/nec2_model.c:66: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 *cmnt_col_name[CMNT_NUM_COLS] =
data/xnec2c-4.1.1/src/nec2_model.c:70: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 *geom_col_name[GEOM_NUM_COLS] =
data/xnec2c-4.1.1/src/nec2_model.c:74: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 *cmnd_col_name[CMND_NUM_COLS] =
data/xnec2c-4.1.1/src/nec2_model.c:133: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 str[64];
data/xnec2c-4.1.1/src/nec2_model.c:291: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 ain[3], line_buf[LINE_LEN];
data/xnec2c-4.1.1/src/nec2_model.c:356: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 ain[3];
data/xnec2c-4.1.1/src/nec2_model.c:365: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 si[4][7], sf[7][13];
data/xnec2c-4.1.1/src/nec2_model.c:426: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 ain[3];
data/xnec2c-4.1.1/src/nec2_model.c:435: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 si[4][7], sf[7][13];
data/xnec2c-4.1.1/src/plot_freqdata.c:51: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 txt[12];
data/xnec2c-4.1.1/src/plot_freqdata.c:362: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 value[16], format[8];
data/xnec2c-4.1.1/src/plot_freqdata.c:423: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 value[16], format[6];
data/xnec2c-4.1.1/src/plot_freqdata.c:861: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 *titles[3];
data/xnec2c-4.1.1/src/rc_config.c:52: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
data/xnec2c-4.1.1/src/rc_config.c:60: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).
  fp = fopen( cfg_file, "r" );
data/xnec2c-4.1.1/src/rc_config.c:289: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
data/xnec2c-4.1.1/src/rc_config.c:329: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).
  rc_config.main_width = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:332:27:  [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).
  rc_config.main_height = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:342:22:  [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).
  rc_config.main_x = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:345:22:  [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).
  rc_config.main_y = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:354:52:  [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).
  rc_config.main_currents_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:363:51:  [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).
  rc_config.main_charges_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:372:36:  [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).
  rc_config.main_total = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:381:41:  [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).
  rc_config.main_horizontal = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:390:39:  [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).
  rc_config.main_vertical = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:399:41:  [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).
  rc_config.main_right_hand = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:408:40:  [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).
  rc_config.main_left_hand = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:417:41:  [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).
  rc_config.main_loop_start = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:426:38:  [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).
  rc_config.main_rotate_spinbutton = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:435:39:  [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).
  rc_config.main_incline_spinbutton = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:444:36:  [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).
  rc_config.main_zoom_spinbutton = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:454:31:  [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).
  rc_config.rdpattern_width = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:457:32:  [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).
  rc_config.rdpattern_height = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:467:27:  [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).
  rc_config.rdpattern_x = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:470:27:  [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).
  rc_config.rdpattern_y = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:479:53:  [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).
  rc_config.rdpattern_gain_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:488:51:  [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).
  rc_config.rdpattern_eh_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:497:43:  [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).
  rc_config.rdpattern_e_field = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:506:43:  [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).
  rc_config.rdpattern_h_field = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:515:51:  [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).
  rc_config.rdpattern_poynting_vector = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:524:41:  [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).
  rc_config.rdpattern_zoom_spinbutton = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:534:31:  [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).
  rc_config.freqplots_width = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:537:32:  [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).
  rc_config.freqplots_height = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:547:27:  [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).
  rc_config.freqplots_x = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:550:27:  [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).
  rc_config.freqplots_y = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:559:53:  [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).
  rc_config.freqplots_gmax_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:568:53:  [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).
  rc_config.freqplots_gdir_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:577:56:  [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).
  rc_config.freqplots_gviewer_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:586:53:  [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).
  rc_config.freqplots_vswr_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:595:55:  [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).
  rc_config.freqplots_zrlzim_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:604:55:  [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).
  rc_config.freqplots_zmgzph_togglebutton = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:613:44:  [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).
  rc_config.freqplots_net_gain = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:623:31:  [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).
  rc_config.nec2_edit_width = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:626:32:  [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).
  rc_config.nec2_edit_height = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:636:27:  [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).
  rc_config.nec2_edit_x = atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:639:27:  [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).
  rc_config.nec2_edit_y = atoi( &line[idx + 1] );
data/xnec2c-4.1.1/src/rc_config.c:674:38:  [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).
  rc_config.confirm_quit = (u_int8_t)atoi( line );
data/xnec2c-4.1.1/src/rc_config.c:856: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
data/xnec2c-4.1.1/src/shared.c:137: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 xnec2c_glade[64];
data/xnec2c-4.1.1/src/shared.h:141: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 xnec2c_glade[64];
data/xnec2c-4.1.1/src/utils.c:261: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( (*fp = fopen(fname, mode)) == NULL )
data/xnec2c-4.1.1/src/utils.c:263: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 mesg[MESG_SIZE];
data/xnec2c-4.1.1/src/utils.c:297: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 str[4];
data/xnec2c-4.1.1/src/xnec2c.c:605: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 txt[10];
data/xnec2c-4.1.1/src/callback_func.c:358: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).
  size_t s = strlen( card ) + 1;
data/xnec2c-4.1.1/src/callback_func.c:1113: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).
  cnt = strlen( fork_commands[EHFIELD] );
data/xnec2c-4.1.1/src/callbacks.c:164: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(rc_config.infile) == 0 ) return;
data/xnec2c-4.1.1/src/callbacks.c:894: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(rc_config.infile) == 0) ||
data/xnec2c-4.1.1/src/callbacks.c:1104: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(rc_config.infile) == 0 ) return;
data/xnec2c-4.1.1/src/callbacks.c:1965: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(rc_config.infile) == 0 )
data/xnec2c-4.1.1/src/callbacks.c:2171: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(rc_config.infile) == 0 ) return;
data/xnec2c-4.1.1/src/callbacks.c:2223: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(rc_config.infile) == 0 )
data/xnec2c-4.1.1/src/fork.c:33: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(rc_config.infile) == 0 ) return;
data/xnec2c-4.1.1/src/fork.c:93:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  retval = read( pipefd, str, (size_t)len );
data/xnec2c-4.1.1/src/fork.c:452:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(2);
data/xnec2c-4.1.1/src/fork.c:468:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  retval = read( forked_proc_data[idx]->child2pnt_pipe[READ], str, (size_t)len );
data/xnec2c-4.1.1/src/input.c:77: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(line_buf) < 2 )
data/xnec2c-4.1.1/src/input.c:1353: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).
  len = (int)strlen( line_buf );
data/xnec2c-4.1.1/src/input.c:1515: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).
  len = (int)strlen( line_buf );
data/xnec2c-4.1.1/src/main.c:70: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(optarg) >= siz )
data/xnec2c-4.1.1/src/main.c:101: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(rc_config.infile) == 0) &&
data/xnec2c-4.1.1/src/main.c:106: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(argv[argc - 1]) >= siz )
data/xnec2c-4.1.1/src/main.c:205: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(rc_config.infile) )
data/xnec2c-4.1.1/src/main.c:250: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(rc_config.infile) > 0 )
data/xnec2c-4.1.1/src/main.c:286: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(rc_config.infile) == 0 ) return( FALSE );
data/xnec2c-4.1.1/src/main.c:324: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).
	lenc = strlen( fork_commands[INFILE] );
data/xnec2c-4.1.1/src/main.c:325: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).
	leni = strlen( rc_config.infile );
data/xnec2c-4.1.1/src/nec2_model.c:307: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(line_buf) < 2 )
data/xnec2c-4.1.1/src/nec2_model.c:317: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(line_buf) == 2 ) line_buf[3] = '\0';
data/xnec2c-4.1.1/src/nec2_model.c:652: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(nec2_file) == 0 ) return;
data/xnec2c-4.1.1/src/rc_config.c:931: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).
  fsize = strlen( rc_buf );
data/xnec2c-4.1.1/src/utils.c:87:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(100000);
data/xnec2c-4.1.1/src/utils.c:120:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	  usleep(100000);
data/xnec2c-4.1.1/src/utils.c:153:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if( (chr = fgetc(pfile)) == EOF )
data/xnec2c-4.1.1/src/utils.c:164:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if( (chr = fgetc(pfile)) == EOF )
data/xnec2c-4.1.1/src/utils.c:169:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if( (chr = fgetc(pfile)) == EOF )
data/xnec2c-4.1.1/src/utils.c:184:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( (chr = fgetc(pfile)) == EOF )
data/xnec2c-4.1.1/src/utils.c:451: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( nptr );
data/xnec2c-4.1.1/src/utils.c:476: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).
  len = (int)strlen( fpath );
data/xnec2c-4.1.1/src/xnec2c.c:517: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( fork_commands[FRQDATA] );

ANALYSIS SUMMARY:

Hits = 160
Lines analyzed = 34922 in approximately 0.82 seconds (42716 lines/second)
Physical Source Lines of Code (SLOC) = 24829
Hits@level = [0] 228 [1]  36 [2] 116 [3]   5 [4]   3 [5]   0
Hits@level+ = [0+] 388 [1+] 160 [2+] 124 [3+]   8 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 15.6269 [1+] 6.44408 [2+] 4.99416 [3+] 0.322204 [4+] 0.120826 [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.