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/calc-2.12.7.2/addop.c
Examining data/calc-2.12.7.2/align32.c
Examining data/calc-2.12.7.2/alloc.h
Examining data/calc-2.12.7.2/assocfunc.c
Examining data/calc-2.12.7.2/blkcpy.c
Examining data/calc-2.12.7.2/blkcpy.h
Examining data/calc-2.12.7.2/block.c
Examining data/calc-2.12.7.2/block.h
Examining data/calc-2.12.7.2/byteswap.h
Examining data/calc-2.12.7.2/calc.c
Examining data/calc-2.12.7.2/calc.h
Examining data/calc-2.12.7.2/cmath.h
Examining data/calc-2.12.7.2/codegen.c
Examining data/calc-2.12.7.2/comfunc.c
Examining data/calc-2.12.7.2/commath.c
Examining data/calc-2.12.7.2/config.c
Examining data/calc-2.12.7.2/config.h
Examining data/calc-2.12.7.2/const.c
Examining data/calc-2.12.7.2/custom/c_argv.c
Examining data/calc-2.12.7.2/custom/c_devnull.c
Examining data/calc-2.12.7.2/custom/c_help.c
Examining data/calc-2.12.7.2/custom/c_pmodm127.c
Examining data/calc-2.12.7.2/custom/c_pzasusb8.c
Examining data/calc-2.12.7.2/custom/c_register.c
Examining data/calc-2.12.7.2/custom/c_sysinfo.c
Examining data/calc-2.12.7.2/custom/custtbl.c
Examining data/calc-2.12.7.2/custom.c
Examining data/calc-2.12.7.2/custom.h
Examining data/calc-2.12.7.2/decl.h
Examining data/calc-2.12.7.2/endian.c
Examining data/calc-2.12.7.2/file.h
Examining data/calc-2.12.7.2/fposval.c
Examining data/calc-2.12.7.2/func.h
Examining data/calc-2.12.7.2/hash.c
Examining data/calc-2.12.7.2/hash.h
Examining data/calc-2.12.7.2/have_const.c
Examining data/calc-2.12.7.2/have_fpos.c
Examining data/calc-2.12.7.2/have_fpos_pos.c
Examining data/calc-2.12.7.2/have_getpgid.c
Examining data/calc-2.12.7.2/have_getprid.c
Examining data/calc-2.12.7.2/have_getsid.c
Examining data/calc-2.12.7.2/have_gettime.c
Examining data/calc-2.12.7.2/have_memmv.c
Examining data/calc-2.12.7.2/have_newstr.c
Examining data/calc-2.12.7.2/have_offscl.c
Examining data/calc-2.12.7.2/have_posscl.c
Examining data/calc-2.12.7.2/have_rusage.c
Examining data/calc-2.12.7.2/have_stdvs.c
Examining data/calc-2.12.7.2/have_strdup.c
Examining data/calc-2.12.7.2/have_uid_t.c
Examining data/calc-2.12.7.2/have_unused.c
Examining data/calc-2.12.7.2/have_ustat.c
Examining data/calc-2.12.7.2/have_varvs.c
Examining data/calc-2.12.7.2/help.c
Examining data/calc-2.12.7.2/hist.c
Examining data/calc-2.12.7.2/hist.h
Examining data/calc-2.12.7.2/input.c
Examining data/calc-2.12.7.2/jump.c
Examining data/calc-2.12.7.2/jump.h
Examining data/calc-2.12.7.2/label.c
Examining data/calc-2.12.7.2/label.h
Examining data/calc-2.12.7.2/lib_calc.c
Examining data/calc-2.12.7.2/lib_calc.h
Examining data/calc-2.12.7.2/lib_util.c
Examining data/calc-2.12.7.2/lib_util.h
Examining data/calc-2.12.7.2/listfunc.c
Examining data/calc-2.12.7.2/longbits.c
Examining data/calc-2.12.7.2/matfunc.c
Examining data/calc-2.12.7.2/math_error.c
Examining data/calc-2.12.7.2/nametype.h
Examining data/calc-2.12.7.2/obj.c
Examining data/calc-2.12.7.2/opcodes.c
Examining data/calc-2.12.7.2/opcodes.h
Examining data/calc-2.12.7.2/pix.c
Examining data/calc-2.12.7.2/poly.c
Examining data/calc-2.12.7.2/prime.c
Examining data/calc-2.12.7.2/prime.h
Examining data/calc-2.12.7.2/qfunc.c
Examining data/calc-2.12.7.2/qio.c
Examining data/calc-2.12.7.2/qmath.c
Examining data/calc-2.12.7.2/qmath.h
Examining data/calc-2.12.7.2/qmod.c
Examining data/calc-2.12.7.2/qtrans.c
Examining data/calc-2.12.7.2/quickhash.c
Examining data/calc-2.12.7.2/sample_many.c
Examining data/calc-2.12.7.2/sample_rand.c
Examining data/calc-2.12.7.2/seed.c
Examining data/calc-2.12.7.2/sha1.c
Examining data/calc-2.12.7.2/sha1.h
Examining data/calc-2.12.7.2/size.c
Examining data/calc-2.12.7.2/str.c
Examining data/calc-2.12.7.2/str.h
Examining data/calc-2.12.7.2/symbol.c
Examining data/calc-2.12.7.2/symbol.h
Examining data/calc-2.12.7.2/token.c
Examining data/calc-2.12.7.2/token.h
Examining data/calc-2.12.7.2/value.c
Examining data/calc-2.12.7.2/value.h
Examining data/calc-2.12.7.2/version.c
Examining data/calc-2.12.7.2/win32/align32.h
Examining data/calc-2.12.7.2/win32/args.h
Examining data/calc-2.12.7.2/win32/calcerr.c
Examining data/calc-2.12.7.2/win32/calcerr.h
Examining data/calc-2.12.7.2/win32/conf.h
Examining data/calc-2.12.7.2/win32/endian_calc.h
Examining data/calc-2.12.7.2/win32/fposval.h
Examining data/calc-2.12.7.2/win32/have_const.h
Examining data/calc-2.12.7.2/win32/have_fpos.h
Examining data/calc-2.12.7.2/win32/have_fpos_pos.h
Examining data/calc-2.12.7.2/win32/have_getpgid.h
Examining data/calc-2.12.7.2/win32/have_getprid.h
Examining data/calc-2.12.7.2/win32/have_getsid.h
Examining data/calc-2.12.7.2/win32/have_gettime.h
Examining data/calc-2.12.7.2/win32/have_memmv.h
Examining data/calc-2.12.7.2/win32/have_newstr.h
Examining data/calc-2.12.7.2/win32/have_offscl.h
Examining data/calc-2.12.7.2/win32/have_posscl.h
Examining data/calc-2.12.7.2/win32/have_rusage.h
Examining data/calc-2.12.7.2/win32/have_stdlib.h
Examining data/calc-2.12.7.2/win32/have_strdup.h
Examining data/calc-2.12.7.2/win32/have_string.h
Examining data/calc-2.12.7.2/win32/have_times.h
Examining data/calc-2.12.7.2/win32/have_uid_t.h
Examining data/calc-2.12.7.2/win32/have_unistd.h
Examining data/calc-2.12.7.2/win32/have_unused.h
Examining data/calc-2.12.7.2/win32/have_urandom.h
Examining data/calc-2.12.7.2/win32/have_ustat.h
Examining data/calc-2.12.7.2/win32/longbits.h
Examining data/calc-2.12.7.2/win32/terminal.h
Examining data/calc-2.12.7.2/zfunc.c
Examining data/calc-2.12.7.2/zio.c
Examining data/calc-2.12.7.2/zmath.c
Examining data/calc-2.12.7.2/zmath.h
Examining data/calc-2.12.7.2/zmod.c
Examining data/calc-2.12.7.2/zmul.c
Examining data/calc-2.12.7.2/zprime.c
Examining data/calc-2.12.7.2/zrand.c
Examining data/calc-2.12.7.2/zrand.h
Examining data/calc-2.12.7.2/zrandom.c
Examining data/calc-2.12.7.2/zrandom.h
Examining data/calc-2.12.7.2/byteswap.c
Examining data/calc-2.12.7.2/func.c
Examining data/calc-2.12.7.2/file.c

FINAL RESULTS:

data/calc-2.12.7.2/alloc.h:64:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
E_FUNC char *strcpy();
data/calc-2.12.7.2/alloc.h:66:14:  [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).
E_FUNC char *strcat();
data/calc-2.12.7.2/calc.c:776:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(calc_err_msg, MAXERROR, fmt, ap);
data/calc-2.12.7.2/decl.h:100:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
         ((format (printf, fmt_idx, arg_idx)))
data/calc-2.12.7.2/func.c:37:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
# define _access access
data/calc-2.12.7.2/func.c:7596:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	i = access(fname, m);
data/calc-2.12.7.2/func.c:7722:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		result.v_num = itoq((long)system(vp->v_str->s_str));
data/calc-2.12.7.2/func.c:7725:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	result.v_num = itoq((long)system(vp->v_str->s_str));
data/calc-2.12.7.2/func.c:7973:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr,
data/calc-2.12.7.2/have_stdvs.c:78:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, size, fmt, ap);
data/calc-2.12.7.2/have_stdvs.c:80: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(buf, size, fmt, ap);
data/calc-2.12.7.2/have_varvs.c:72:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, size, fmt, ap);
data/calc-2.12.7.2/have_varvs.c:74:5:  [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(buf, size, fmt, ap);
data/calc-2.12.7.2/help.c:42:10:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
# define popen _popen
data/calc-2.12.7.2/help.c:123:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    cmd = popen(pager, "w");
data/calc-2.12.7.2/input.c:213:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(path, extension);
data/calc-2.12.7.2/input.c:835:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			ret = system(cmd);
data/calc-2.12.7.2/lib_calc.c:89:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
-=*#*=- A Windoz free system without termio, termios or sgtty!!! -=*#*=-
data/calc-2.12.7.2/math_error.c:84:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(calc_err_msg, MAXERROR, fmt, ap);
data/calc-2.12.7.2/str.c:106: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(retstr, str);
data/calc-2.12.7.2/str.c:286:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(newstr, str);
data/calc-2.12.7.2/str.c:310: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(newstr, str);
data/calc-2.12.7.2/token.c:726:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			vsnprintf(calc_err_msg+len, MAXERROR-len, fmt, ap);
data/calc-2.12.7.2/token.c:729:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(calc_err_msg, MAXERROR, fmt, ap);
data/calc-2.12.7.2/token.c:831:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			vsnprintf(calc_warn_msg+len, MAXERROR-len, fmt, ap);
data/calc-2.12.7.2/token.c:834:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(calc_warn_msg, MAXERROR, fmt, ap);
data/calc-2.12.7.2/zio.c:178:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, BUFSIZ, fmt, ap);
data/calc-2.12.7.2/func.c:144:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *getenv;	/* what getenv() would return, NULL => unused */
data/calc-2.12.7.2/func.c:7469:8:  [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.
	str = getenv(v1->v_str->s_str);
data/calc-2.12.7.2/func.c:9447:12:  [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.
	old_val = getenv(str);
data/calc-2.12.7.2/func.c:9520:17:  [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 (e_pool[i].getenv != NULL) {
data/calc-2.12.7.2/lib_calc.c:102:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
E_FUNC char *getenv();
data/calc-2.12.7.2/lib_calc.c:480:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	c = (no_env ? NULL : getenv(CALCPATH));
data/calc-2.12.7.2/lib_calc.c:486:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	c = (no_env ? NULL : getenv(CALCRC));
data/calc-2.12.7.2/lib_calc.c:497:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	c = (no_env ? NULL : getenv(CALCBINDINGS));
data/calc-2.12.7.2/lib_calc.c:503:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	c = (no_env ? NULL : getenv(HOME));
data/calc-2.12.7.2/lib_calc.c:539:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	c = (no_env ? NULL : getenv(PAGER));
data/calc-2.12.7.2/lib_calc.c:545:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	c = (no_env ? NULL : getenv(SHELL));
data/calc-2.12.7.2/value.h:77:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
typedef struct random RANDOM;
data/calc-2.12.7.2/zrandom.h:53:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
struct random {
data/calc-2.12.7.2/zrandom.h:83:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
E_FUNC RANDOM *randomcopy(CONST RANDOM *random);
data/calc-2.12.7.2/zrandom.h:84:32:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
E_FUNC void randomfree(RANDOM *random);
data/calc-2.12.7.2/addop.c:204: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((char *) fp, (char *) curfunc, size);
data/calc-2.12.7.2/addop.c:439:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *) fp, (char *) curfunc,
data/calc-2.12.7.2/align32.c:43: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 byte[2*sizeof(USB32)];	/* mis-alignment buffer */
data/calc-2.12.7.2/alloc.h:50:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
E_FUNC void *memcpy();
data/calc-2.12.7.2/alloc.h:59:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
E_FUNC void bcopy();
data/calc-2.12.7.2/alloc.h:72:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#undef memcpy
data/calc-2.12.7.2/alloc.h:73:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy(s1, s2, n) bcopy(s2, s1, n)
data/calc-2.12.7.2/alloc.h:73:27:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy(s1, s2, n) bcopy(s2, s1, n)
data/calc-2.12.7.2/blkcpy.c:964:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char *)s1)[n] = ((char *)s2)[n];
data/calc-2.12.7.2/blkcpy.c:964:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)s1)[n] = ((char *)s2)[n];
data/calc-2.12.7.2/blkcpy.c:972:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void) memcpy(s1, s2, n);
data/calc-2.12.7.2/blkcpy.c:1089: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(swapped, sblk->data + ssi, num);
data/calc-2.12.7.2/blkcpy.c:1095: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((char *)(ret->num.v + dsi), swapped,
data/calc-2.12.7.2/blkcpy.c:1100:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)(ret->num.v + dsi)+num-i,
data/calc-2.12.7.2/block.c:407: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(nblk->data, blk->data, blk->maxsize);
data/calc-2.12.7.2/block.c:740:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(newblk->data, blk->data, oldlen);
data/calc-2.12.7.2/calc.c:375:6:  [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(cmdbuf + cmdlen, "read ");
data/calc-2.12.7.2/calc.c:381:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(cmdbuf+cmdlen, "-once ");
data/calc-2.12.7.2/codegen.c:117: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 name[MAXCMD+1+1];	/* program name */
data/calc-2.12.7.2/codegen.c:1114:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(newindices, quickindices,
data/calc-2.12.7.2/codegen.c:2234: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 name[SYMBOLSIZE+1];	/* symbol name */
data/calc-2.12.7.2/codegen.c:2425: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 name[5];
data/calc-2.12.7.2/codegen.c:2559: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 name[SYMBOLSIZE+1];
data/calc-2.12.7.2/config.c:1017: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((void *)dest, (void *)src, sizeof(CONFIG));
data/calc-2.12.7.2/custom/c_help.c:76:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	customhelp((char *)vals[0]->v_str);
data/calc-2.12.7.2/custom/c_sysinfo.c:330:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		buf = (char *)malloc(strlen((char *)vals[0]->v_str->s_str)+1);
data/calc-2.12.7.2/custom/c_sysinfo.c:330:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		buf = (char *)malloc(strlen((char *)vals[0]->v_str->s_str)+1);
data/calc-2.12.7.2/custom/c_sysinfo.c:331:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		for (q = (char *)vals[0]->v_str->s_str, r = buf; *q; ++q, ++r)
data/calc-2.12.7.2/endian.c:46: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 byte[8] = { (char)0x12, (char)0x36, (char)0x48, (char)0x59,
data/calc-2.12.7.2/file.c:149: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(files[idnum].mode, "r+");
data/calc-2.12.7.2/file.c:209: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 modestr[sizeof(fiop->mode)];	/* mode [rwa]b?\+? */
data/calc-2.12.7.2/file.c:760: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[READSIZE];	/* temporary buffer */
data/calc-2.12.7.2/file.c:822:4:  [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(&str[totlen], buf, n);
data/calc-2.12.7.2/file.c:1418: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((void *)&ret, (void *)&pos, sizeof(pos));
data/calc-2.12.7.2/file.c:1425: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((void *)&ret, (void *)&pos, sizeof(pos));
data/calc-2.12.7.2/file.c:1432:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void *)&ret, (void *)&pos, sizeof(pos));
data/calc-2.12.7.2/file.c:1441:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&tmp, zpos.v, sizeof(FILEPOS));
data/calc-2.12.7.2/file.c:1445:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&tmp, zpos.v, zpos.len*BASEB/8);
data/calc-2.12.7.2/file.c:2039: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[READSIZE];	/* temporary buffer */
data/calc-2.12.7.2/file.c:2084:5:  [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(&str[totlen], buf, len);
data/calc-2.12.7.2/file.c:2118: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[READSIZE];	/* temporary buffer */
data/calc-2.12.7.2/file.c:2162:5:  [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(&str[totlen], buf, len);
data/calc-2.12.7.2/file.c:2352:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	fp = tmpfile();
data/calc-2.12.7.2/file.c:2417:5:  [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(a, num.v, num.len * sizeof(HALF));
data/calc-2.12.7.2/file.h:55: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 mode[sizeof("rb+")+1];/* open mode */
data/calc-2.12.7.2/func.c:131:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN CONST char *error_table[E__COUNT+2];	/* calc coded error messages */
data/calc-2.12.7.2/func.c:6109: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.
		cp = (char *)error_table[i - E__BASE];
data/calc-2.12.7.2/func.c:7647: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.
		if ((char *)strchr(vals[0]->v_str->s_str, '=') == NULL) {
data/calc-2.12.7.2/func.c:7656:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		putenv_str = (char *)malloc(vals[0]->v_str->s_len + 1);
data/calc-2.12.7.2/hash.c:176: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((void *)hnew, (void *)state, sizeof(HASH));
data/calc-2.12.7.2/have_memmv.c:47: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 dest[MOVELEN+1];
data/calc-2.12.7.2/have_newstr.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char dest[MOVELEN+1];
data/calc-2.12.7.2/have_newstr.c:60:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void) memcpy(dest, src, MOVELEN);
data/calc-2.12.7.2/have_stdvs.c:68: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 buf[BUFSIZ+1];
data/calc-2.12.7.2/have_varvs.c:59: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 buf[BUFSIZ+1];
data/calc-2.12.7.2/help.c:107: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[BUFSIZ+1];	/* I/O buffer */
data/calc-2.12.7.2/help.c:266:11:  [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).
	stream = fopen(helppath, "r");
data/calc-2.12.7.2/help.c:283:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		stream = fopen(helppath, "r");
data/calc-2.12.7.2/hist.c:214: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.
STATIC	char		save_buffer[SAVE_SIZE];
data/calc-2.12.7.2/hist.c:594: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	line[BUFSIZ+1];
data/calc-2.12.7.2/hist.c:751: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(hp->data, line, len);
data/calc-2.12.7.2/hist.c:959:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(HS.pos, HS.pos + 1, rest);
data/calc-2.12.7.2/hist.c:1020: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(HS.pos, cp, HS.end - cp);
data/calc-2.12.7.2/hist.c:1103: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(HS.buf, hp->data, hp->len);
data/calc-2.12.7.2/hist.c:1119:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(HS.buf, hp->data, hp->len);
data/calc-2.12.7.2/hist.c:1136:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(HS.buf, hp->data, hp->len);
data/calc-2.12.7.2/hist.c:1183: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(HS.pos, str, len);
data/calc-2.12.7.2/hist.c:1288:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(left, right, HS.end - right);
data/calc-2.12.7.2/hist.c:1331: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(HS.buf, hp->data, hp->len);
data/calc-2.12.7.2/hist.c:1361: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(save_buffer, str, len);
data/calc-2.12.7.2/hist.c:1568: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[BUFSIZ+1];
data/calc-2.12.7.2/input.c:535: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(fullname, mode);
data/calc-2.12.7.2/input.c:538: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(name, mode);
data/calc-2.12.7.2/input.c:795: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 charbuf[256*1024];
data/calc-2.12.7.2/input.c:922:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAX_CALCRC+1+1];	/* name being searched for */
data/calc-2.12.7.2/input.c:992: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 tmp[MSDOS_MAX_PATH+1];
data/calc-2.12.7.2/jump.c:138:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CONST unsigned char jmp[JMPSIZE] = {
data/calc-2.12.7.2/lib_calc.c:115: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 cmdbuf[MAXCMD+1+1+1];	/* command line expression + "\n\0" + guard */
data/calc-2.12.7.2/lib_calc.c:164: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 calc_err_msg[MAXERROR+1];
data/calc-2.12.7.2/lib_calc.c:169: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 calc_warn_msg[MAXERROR+1];
data/calc-2.12.7.2/lib_calc.h:63: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 calc_err_msg[MAXERROR+1];
data/calc-2.12.7.2/lib_calc.h:71:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char calc_warn_msg[MAXERROR+1];
data/calc-2.12.7.2/lib_util.c:97: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 lowbin2hex[256] = {
data/calc-2.12.7.2/lib_util.c:157: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((void *)v, (void *)str, strlen(str));
data/calc-2.12.7.2/lib_util.h:38: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 lowbin2hex[256];
data/calc-2.12.7.2/longbits.c:121: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).
			long_bits = atoi(argv[1]);
data/calc-2.12.7.2/matfunc.c:1634:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(p, a, i * sizeof(VALUE));
data/calc-2.12.7.2/matfunc.c:1635:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(S[k], buf,
data/calc-2.12.7.2/matfunc.c:1656:5:  [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(S[k], buf, (p - buf) * sizeof(VALUE));
data/calc-2.12.7.2/matfunc.c:1658:5:  [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(p, a, i * sizeof(VALUE));
data/calc-2.12.7.2/matfunc.c:1659:5:  [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(S[k], buf, len[k] * sizeof(VALUE));
data/calc-2.12.7.2/obj.c:208: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 name[SYMBOLSIZE+1+1];	/* full name of user routine to call */
data/calc-2.12.7.2/prime.c:44:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CONST unsigned char pr_map[(MAX_MAP_VAL/8)+1] = {
data/calc-2.12.7.2/seed.c:311: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 urandom_pool[DEV_URANDOM_POOL];	/* /dev/urandom data pool */
data/calc-2.12.7.2/seed.c:384:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sdata.urandom_fd = open(DEV_URANDOM, O_NONBLOCK|O_RDONLY);
data/calc-2.12.7.2/seed.c:456:5:  [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((void *)hash.v, (void *)&hash_val, hash.len*sizeof(HALF));
data/calc-2.12.7.2/sha1.c:274:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)dig->data+datalen,
data/calc-2.12.7.2/sha1.c:281: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((char *)dig->data + datalen, (char *)buffer, cpylen);
data/calc-2.12.7.2/sha1.c:300:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dig->data, buffer, cpylen);
data/calc-2.12.7.2/sha1.c:308:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)dig->data, (char *)buffer, count);
data/calc-2.12.7.2/sha1.c:678: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[DEBUG_SIZE+1]; /* hash value buffer */
data/calc-2.12.7.2/str.c:1195: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(c, str, len);
data/calc-2.12.7.2/str.c:1219: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(c, s1->s_str, len);
data/calc-2.12.7.2/str.c:1327: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(s->s_str, str, len+1);
data/calc-2.12.7.2/token.c:431: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[STRBUFSIZE];	/* buffer for string */
data/calc-2.12.7.2/token.c:537:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(str + totlen, buf, len);
data/calc-2.12.7.2/token.c:560: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[SYMBOLSIZE+1];	/* temporary buffer */
data/calc-2.12.7.2/version.c:107: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 verbuf[BUFSIZ+1];		/* form version string here */
data/calc-2.12.7.2/version.c:160: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[BUFSIZ+1];	/* release file buffer */
data/calc-2.12.7.2/version.c:166:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(release, "r");
data/calc-2.12.7.2/version.c:224: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[BUFSIZ+1];	/* release file buffer */
data/calc-2.12.7.2/version.c:230:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(release, "r");
data/calc-2.12.7.2/win32/calcerr.c:15:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CONST char *error_table[E__COUNT+2] = {
data/calc-2.12.7.2/win32/fposval.h:27:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SWAP_HALF_IN_DEV(dest, src)	memcpy((void *)(dest), (void *)(src), 4)
data/calc-2.12.7.2/win32/fposval.h:33:39:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SWAP_HALF_IN_INODE(dest, src)	memcpy((void *)(dest), (void *)(src), 2)
data/calc-2.12.7.2/zfunc.c:910: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(A, c, m * sizeof(HALF));			/* Copy c[] to A[] */
data/calc-2.12.7.2/zfunc.c:924:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	else memcpy(B, d, n * sizeof(HALF));
data/calc-2.12.7.2/zfunc.c:962:4:  [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(gcd.v + o, b0, n * sizeof(HALF));
data/calc-2.12.7.2/zfunc.c:1157:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(gcd.v + o, b0, n * sizeof(HALF));
data/calc-2.12.7.2/zfunc.c:1769: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(A, z.v, m0 * sizeof(HALF));
data/calc-2.12.7.2/zfunc.c:1934:4:  [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(sqrt.v, a0, n * sizeof(HALF));
data/calc-2.12.7.2/zfunc.c:1990: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(sqrt.v, a0, n * sizeof(HALF));
data/calc-2.12.7.2/zio.c:137: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(&outbuf[outbufused], str, len);
data/calc-2.12.7.2/zio.c:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSIZ+1];
data/calc-2.12.7.2/zmath.c:205: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 popcnt[256] = {
data/calc-2.12.7.2/zmath.c:712:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(A, z1.v, m * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:720: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(A, z1.v, m * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:806:4:  [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(quo->v, a1, len * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:905: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(rem->v, A, m * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:915:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(quo->v, a1, len * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:998: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(A, z1.v + o, len * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:1293: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(A, c, m * sizeof(HALF));
data/calc-2.12.7.2/zmath.c:1531: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((char *) (ans.v + hc),
data/calc-2.12.7.2/zmath.h:565:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define zcopyval(z1,z2) memcpy((z2).v, (z1).v, (z1).len * sizeof(HALF))
data/calc-2.12.7.2/zmod.c:2059:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(a.v, ret.v, a.len*sizeof(HALF));
data/calc-2.12.7.2/zprime.c:69:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 CONST unsigned char topbit[256] = {
data/calc-2.12.7.2/zrand.c:1070:4:  [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(v64, seed.v, SHALFS*sizeof(HALF));
data/calc-2.12.7.2/zrand.c:1110:4:  [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(v64, chunk.v, SHALFS*sizeof(HALF));
data/calc-2.12.7.2/zrand.c:1131:4:  [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(res->v+(chunknum*SHALFS), c_val.v,
data/calc-2.12.7.2/zrand.c:1138:4:  [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(res->v+(chunknum*SHALFS), chunk.v,
data/calc-2.12.7.2/zrand.c:1227:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s100.slot, def_subtract, sizeof(def_subtract));
data/calc-2.12.7.2/zrand.c:2285: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(ret, state, sizeof(RAND));
data/calc-2.12.7.2/alloc.h:54: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).
E_FUNC size_t strlen();
data/calc-2.12.7.2/alloc.h:56:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
E_FUNC long strlen();
data/calc-2.12.7.2/alloc.h:65:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
E_FUNC char *strncpy();
data/calc-2.12.7.2/blkcpy.c:863:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(sstr);
data/calc-2.12.7.2/blkcpy.c:892:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;
data/calc-2.12.7.2/calc.c:393:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						len = strlen(cp);
data/calc-2.12.7.2/calc.c:408:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						strncpy(bp, cp, len+1);
data/calc-2.12.7.2/calc.c:474: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).
		cplen = strlen(cp);
data/calc-2.12.7.2/calc.c:482:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cmdbuf + cmdlen, cp, cplen+1);
data/calc-2.12.7.2/calc.c:618:30:  [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).
			(void) openstring(cmdbuf, strlen(cmdbuf));
data/calc-2.12.7.2/codegen.c:147:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						strncpy(name,
data/calc-2.12.7.2/codegen.c:2353:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(name, s->s_str, namelen-1);
data/calc-2.12.7.2/codegen.c:2391:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(name, symstr, namelen-1);
data/calc-2.12.7.2/codegen.c:2430:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(name, tokensymbol(), 4);
data/calc-2.12.7.2/codegen.c:2594:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, tokensymbol(), SYMBOLSIZE);
data/calc-2.12.7.2/config.c:760:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p, vp->v_str->s_str, vp->v_str->s_len + 1);
data/calc-2.12.7.2/config.c:775:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p, vp->v_str->s_str, vp->v_str->s_len + 1);
data/calc-2.12.7.2/custom.c:195:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf_len = sizeof("custhelp")+1+strlen(name)+1;
data/calc-2.12.7.2/custom/c_sysinfo.c:330:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf = (char *)malloc(strlen((char *)vals[0]->v_str->s_str)+1);
data/calc-2.12.7.2/file.c:153:6:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
					strcpy(files[idnum].mode, "r");
data/calc-2.12.7.2/file.c:158:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
						strcpy(files[idnum].mode, "w");
data/calc-2.12.7.2/file.c:214:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		namelen = strlen(name);
data/calc-2.12.7.2/file.c:224:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fiop->name, name, namelen+1);
data/calc-2.12.7.2/file.c:249:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(modestr, "r");
data/calc-2.12.7.2/file.c:254:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		    strcat(modestr, "b");
data/calc-2.12.7.2/file.c:260:4:  [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(modestr, "+");
data/calc-2.12.7.2/file.c:267:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(modestr, "w");
data/calc-2.12.7.2/file.c:272:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		    strcat(modestr, "b");
data/calc-2.12.7.2/file.c:278:4:  [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(modestr, "+");
data/calc-2.12.7.2/file.c:285:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(modestr, "a");
data/calc-2.12.7.2/file.c:291:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		    strcat(modestr, "b");
data/calc-2.12.7.2/file.c:297:4:  [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(modestr, "+");
data/calc-2.12.7.2/file.c:307:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(fiop->mode, modestr, sizeof(fiop->mode));
data/calc-2.12.7.2/file.c:789:22:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (isspace(c = fgetc(fp)));
data/calc-2.12.7.2/file.c:797:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(fp);
data/calc-2.12.7.2/file.c:865:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return fgetc(fiop->fp);
data/calc-2.12.7.2/file.c:1161: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(str);
data/calc-2.12.7.2/file.c:2058:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(fp);
data/calc-2.12.7.2/file.c:2137:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(fp);
data/calc-2.12.7.2/file.c:2209:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(fp);
data/calc-2.12.7.2/file.c:2395:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2399:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2430:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2433:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2437:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2445:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2520:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2530:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2544:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2554:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2567:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2569:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2571:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2573:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2575:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2577:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2580:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = fgetc(fp);
data/calc-2.12.7.2/file.c:2670:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((r = fgetc(fiop->fp)) != EOF) {
data/calc-2.12.7.2/file.c:2675:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				r = fgetc(fiop->fp);
data/calc-2.12.7.2/file.c:2784:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = fgetc(fiop->fp);
data/calc-2.12.7.2/file.c:2792:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				r = fgetc(fiop->fp);
data/calc-2.12.7.2/func.c:265:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cp);
data/calc-2.12.7.2/func.c:271:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newcp, cp, len+1);
data/calc-2.12.7.2/func.c:7447: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).
	cmdbuf_len = strlen(cmdbuf);
data/calc-2.12.7.2/func.c:7449:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newcp, cmdbuf, cmdbuf_len+1);
data/calc-2.12.7.2/func.c:7580:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = (long)strlen(s);
data/calc-2.12.7.2/func.c:7661:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(putenv_str, vals[0]->v_str->s_str,
data/calc-2.12.7.2/func.c:7760: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(time);
data/calc-2.12.7.2/func.c:9187:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (getchar() == 27)
data/calc-2.12.7.2/hash.c:610:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/calc-2.12.7.2/help.c:251: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).
		snprintf_len = sizeof(CUSTOMHELPDIR)+1+strlen(type) + 1;
data/calc-2.12.7.2/help.c:253:36:  [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).
		snprintf_len = sizeof(HELPDIR)+1+strlen(type) + 1;
data/calc-2.12.7.2/help.c:257:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf_len = sizeof(HELPDIR)+1+strlen(type) + 1;
data/calc-2.12.7.2/hist.c:286: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).
		return strlen(buf);
data/calc-2.12.7.2/hist.c:612:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (cp[strlen(cp) - 1] == '\n')
data/calc-2.12.7.2/hist.c:613: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).
			cp[strlen(cp) - 1] = '\0';
data/calc-2.12.7.2/hist.c:633:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	key = fgetc(stdin);
data/calc-2.12.7.2/hist.c:784:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (fgetc(stdin)) {
data/calc-2.12.7.2/hist.c:1344:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = fgetc(stdin);
data/calc-2.12.7.2/hist.c:1485:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, line, len - 1);
data/calc-2.12.7.2/hist.c:1487:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/calc-2.12.7.2/input.c:177: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).
	namelen = strlen(name);
data/calc-2.12.7.2/input.c:179: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).
	    extlen = strlen(extension);
data/calc-2.12.7.2/input.c:183: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).
	pathlen = strlen(pathlist);
data/calc-2.12.7.2/input.c:209:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp, name, namelen+1);
data/calc-2.12.7.2/input.c:332: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).
	namelen = strlen(name);
data/calc-2.12.7.2/input.c:333: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).
	pathlen = strlen(pathlist);
data/calc-2.12.7.2/input.c:351:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp, name, namelen+1);
data/calc-2.12.7.2/input.c:440: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).
			fullpath_len = strlen(ent->pw_dir);
data/calc-2.12.7.2/input.c:445:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fullpath, ent->pw_dir, fullpath_len+1);
data/calc-2.12.7.2/input.c:453:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(username, name+1, after-name-1);
data/calc-2.12.7.2/input.c:470:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf_len = strlen(home2)+strlen(after) + 1;
data/calc-2.12.7.2/input.c:470:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf_len = strlen(home2)+strlen(after) + 1;
data/calc-2.12.7.2/input.c:569: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).
	namelen = strlen(name);
data/calc-2.12.7.2/input.c:574:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cip->i_name, name, namelen+1);
data/calc-2.12.7.2/input.c:610:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cp, str, num);
data/calc-2.12.7.2/input.c:720:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(cip->i_fp);
data/calc-2.12.7.2/input.c:722:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(stdin);
data/calc-2.12.7.2/input.c:933:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path, cp, MAX_CALCRC+1);
data/calc-2.12.7.2/input.c:935:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path, cp, calcrc - cp);
data/calc-2.12.7.2/input.c:1111:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name_len = strlen(name);
data/calc-2.12.7.2/input.c:1116:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(readset[ret].name, name, name_len+1);
data/calc-2.12.7.2/input.c:1131:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	path_len = strlen(path);
data/calc-2.12.7.2/input.c:1136:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(readset[ret].path, path, path_len+1);
data/calc-2.12.7.2/lib_calc.c:490: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(calcrc) > MAX_CALCRC) {
data/calc-2.12.7.2/lib_calc.c:660: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).
	s1_len = strlen(s1);
data/calc-2.12.7.2/lib_calc.c:667:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ret, s1, s1_len+1);
data/calc-2.12.7.2/lib_util.c:146: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(str)+sizeof(HALF)-1)/sizeof(HALF);
data/calc-2.12.7.2/lib_util.c:157:33:  [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).
	memcpy((void *)v, (void *)str, strlen(str));
data/calc-2.12.7.2/lib_util.c:216:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	slen = strlen(hex);
data/calc-2.12.7.2/obj.c:237:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		namestr_len = strlen(namestr_ret);
data/calc-2.12.7.2/obj.c:238: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).
		opi_name_len = strlen(oip->name);
data/calc-2.12.7.2/obj.c:244:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(name, namestr_ret, namestr_len+1);
data/calc-2.12.7.2/obj.c:245: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(name, "_");
data/calc-2.12.7.2/obj.c:246:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(name, oip->name, opi_name_len+1);
data/calc-2.12.7.2/seed.c:386:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	sdata.urandom_ret = read(sdata.urandom_fd,
data/calc-2.12.7.2/size.c:299: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).
				strlen(vp->v_config->prompt1) +
data/calc-2.12.7.2/size.c:300: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).
				strlen(vp->v_config->prompt2) + 2;
data/calc-2.12.7.2/size.c:420: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).
				strlen(vp->v_config->prompt1) +
data/calc-2.12.7.2/size.c:421: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).
				strlen(vp->v_config->prompt2);
data/calc-2.12.7.2/size.c:432: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).
				strlen(vp->v_nblock->name) + 1;
data/calc-2.12.7.2/str.c:93:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;
data/calc-2.12.7.2/str.c:157:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/calc-2.12.7.2/str.c:161:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		testlen = strlen(test);
data/calc-2.12.7.2/str.c:191: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).
		str += (strlen(str) + 1);
data/calc-2.12.7.2/str.c:217: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).
	testlen = strlen(test);
data/calc-2.12.7.2/str.c:220: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(format);
data/calc-2.12.7.2/str.c:244:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/calc-2.12.7.2/str.c:1146:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/calc-2.12.7.2/str.c:1184:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/calc-2.12.7.2/symbol.c:104:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/calc-2.12.7.2/symbol.c:143:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/calc-2.12.7.2/symbol.c:498:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/calc-2.12.7.2/token.c:724: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(calc_err_msg);
data/calc-2.12.7.2/token.c:829: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(calc_warn_msg);
data/calc-2.12.7.2/value.c:3019: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 = 16 - strlen(cp->name);
data/calc-2.12.7.2/version.c:128:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(verbuf);
data/calc-2.12.7.2/version.c:134:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(stored_version, verbuf, len);
data/calc-2.12.7.2/zio.c:127:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/calc-2.12.7.2/zio.c:154: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).
		width -= (long)strlen(str);
data/calc-2.12.7.2/zio.c:159: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).
		width += (long)strlen(str);

ANALYSIS SUMMARY:

Hits = 325
Lines analyzed = 80061 in approximately 2.24 seconds (35694 lines/second)
Physical Source Lines of Code (SLOC) = 55103
Hits@level = [0] 530 [1] 141 [2] 142 [3]  15 [4]  27 [5]   0
Hits@level+ = [0+] 855 [1+] 325 [2+] 184 [3+]  42 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 15.5164 [1+] 5.89805 [2+] 3.3392 [3+] 0.762209 [4+] 0.489991 [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.