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/certmonger-0.79.13/src/cadata.c
Examining data/certmonger-0.79.13/src/cadata.h
Examining data/certmonger-0.79.13/src/canalyze.c
Examining data/certmonger-0.79.13/src/canalyze.h
Examining data/certmonger-0.79.13/src/casave.c
Examining data/certmonger-0.79.13/src/casave.h
Examining data/certmonger-0.79.13/src/certext-n.h
Examining data/certmonger-0.79.13/src/certext.c
Examining data/certmonger-0.79.13/src/certext.h
Examining data/certmonger-0.79.13/src/certmaster-getcert.c
Examining data/certmonger-0.79.13/src/certmaster.c
Examining data/certmonger-0.79.13/src/certread-int.h
Examining data/certmonger-0.79.13/src/certread-n.c
Examining data/certmonger-0.79.13/src/certread-o.c
Examining data/certmonger-0.79.13/src/certread.c
Examining data/certmonger-0.79.13/src/certread.h
Examining data/certmonger-0.79.13/src/certsave-int.h
Examining data/certmonger-0.79.13/src/certsave-n.c
Examining data/certmonger-0.79.13/src/certsave-o.c
Examining data/certmonger-0.79.13/src/certsave.c
Examining data/certmonger-0.79.13/src/certsave.h
Examining data/certmonger-0.79.13/src/cm.c
Examining data/certmonger-0.79.13/src/cm.h
Examining data/certmonger-0.79.13/src/csrgen-int.h
Examining data/certmonger-0.79.13/src/csrgen-n.c
Examining data/certmonger-0.79.13/src/csrgen-o.c
Examining data/certmonger-0.79.13/src/csrgen.c
Examining data/certmonger-0.79.13/src/csrgen.h
Examining data/certmonger-0.79.13/src/dogtag-ipa.c
Examining data/certmonger-0.79.13/src/dogtag-ipa.h
Examining data/certmonger-0.79.13/src/dogtag.c
Examining data/certmonger-0.79.13/src/env-session.c
Examining data/certmonger-0.79.13/src/env-shared.c
Examining data/certmonger-0.79.13/src/env-system.c
Examining data/certmonger-0.79.13/src/env.h
Examining data/certmonger-0.79.13/src/getcert.c
Examining data/certmonger-0.79.13/src/hook.c
Examining data/certmonger-0.79.13/src/hook.h
Examining data/certmonger-0.79.13/src/ipa-getcert.c
Examining data/certmonger-0.79.13/src/ipa.c
Examining data/certmonger-0.79.13/src/iterate.c
Examining data/certmonger-0.79.13/src/iterate.h
Examining data/certmonger-0.79.13/src/json.c
Examining data/certmonger-0.79.13/src/json.h
Examining data/certmonger-0.79.13/src/keygen-int.h
Examining data/certmonger-0.79.13/src/keygen-n.c
Examining data/certmonger-0.79.13/src/keygen-o.c
Examining data/certmonger-0.79.13/src/keygen.c
Examining data/certmonger-0.79.13/src/keygen.h
Examining data/certmonger-0.79.13/src/keyiread-int.h
Examining data/certmonger-0.79.13/src/keyiread-n.c
Examining data/certmonger-0.79.13/src/keyiread-n.h
Examining data/certmonger-0.79.13/src/keyiread-o.c
Examining data/certmonger-0.79.13/src/keyiread.c
Examining data/certmonger-0.79.13/src/keyiread.h
Examining data/certmonger-0.79.13/src/kudict.c
Examining data/certmonger-0.79.13/src/kudict.h
Examining data/certmonger-0.79.13/src/local-getcert.c
Examining data/certmonger-0.79.13/src/local.c
Examining data/certmonger-0.79.13/src/log.c
Examining data/certmonger-0.79.13/src/log.h
Examining data/certmonger-0.79.13/src/main.c
Examining data/certmonger-0.79.13/src/netlink.c
Examining data/certmonger-0.79.13/src/netlink.h
Examining data/certmonger-0.79.13/src/nl-check.c
Examining data/certmonger-0.79.13/src/notify.c
Examining data/certmonger-0.79.13/src/notify.h
Examining data/certmonger-0.79.13/src/oiddict.c
Examining data/certmonger-0.79.13/src/oiddict.h
Examining data/certmonger-0.79.13/src/pin.c
Examining data/certmonger-0.79.13/src/pin.h
Examining data/certmonger-0.79.13/src/pkcs7.c
Examining data/certmonger-0.79.13/src/pkcs7.h
Examining data/certmonger-0.79.13/src/prefs-n.c
Examining data/certmonger-0.79.13/src/prefs-n.h
Examining data/certmonger-0.79.13/src/prefs-o.c
Examining data/certmonger-0.79.13/src/prefs-o.h
Examining data/certmonger-0.79.13/src/prefs.c
Examining data/certmonger-0.79.13/src/prefs.h
Examining data/certmonger-0.79.13/src/scep-o.c
Examining data/certmonger-0.79.13/src/scep-o.h
Examining data/certmonger-0.79.13/src/scep.c
Examining data/certmonger-0.79.13/src/scep.h
Examining data/certmonger-0.79.13/src/scepgen-int.h
Examining data/certmonger-0.79.13/src/scepgen-n.c
Examining data/certmonger-0.79.13/src/scepgen-o.c
Examining data/certmonger-0.79.13/src/scepgen.c
Examining data/certmonger-0.79.13/src/scepgen.h
Examining data/certmonger-0.79.13/src/selfsign-getcert.c
Examining data/certmonger-0.79.13/src/serial-check.c
Examining data/certmonger-0.79.13/src/srvloc.c
Examining data/certmonger-0.79.13/src/srvloc.h
Examining data/certmonger-0.79.13/src/store-files.c
Examining data/certmonger-0.79.13/src/store-gen.c
Examining data/certmonger-0.79.13/src/store-int.h
Examining data/certmonger-0.79.13/src/store.h
Examining data/certmonger-0.79.13/src/submit-d.c
Examining data/certmonger-0.79.13/src/submit-d.h
Examining data/certmonger-0.79.13/src/submit-e.c
Examining data/certmonger-0.79.13/src/submit-e.h
Examining data/certmonger-0.79.13/src/submit-h.c
Examining data/certmonger-0.79.13/src/submit-h.h
Examining data/certmonger-0.79.13/src/submit-int.h
Examining data/certmonger-0.79.13/src/submit-n.c
Examining data/certmonger-0.79.13/src/submit-o.c
Examining data/certmonger-0.79.13/src/submit-o.h
Examining data/certmonger-0.79.13/src/submit-sn.c
Examining data/certmonger-0.79.13/src/submit-so.c
Examining data/certmonger-0.79.13/src/submit-u.c
Examining data/certmonger-0.79.13/src/submit-u.h
Examining data/certmonger-0.79.13/src/submit-x.c
Examining data/certmonger-0.79.13/src/submit-x.h
Examining data/certmonger-0.79.13/src/submit.c
Examining data/certmonger-0.79.13/src/submit.h
Examining data/certmonger-0.79.13/src/subproc.c
Examining data/certmonger-0.79.13/src/subproc.h
Examining data/certmonger-0.79.13/src/tdbus.c
Examining data/certmonger-0.79.13/src/tdbus.h
Examining data/certmonger-0.79.13/src/tdbush.c
Examining data/certmonger-0.79.13/src/tdbush.h
Examining data/certmonger-0.79.13/src/tdbusm-check.c
Examining data/certmonger-0.79.13/src/tdbusm.c
Examining data/certmonger-0.79.13/src/tdbusm.h
Examining data/certmonger-0.79.13/src/tm.c
Examining data/certmonger-0.79.13/src/tm.h
Examining data/certmonger-0.79.13/src/toklist.c
Examining data/certmonger-0.79.13/src/util-m.c
Examining data/certmonger-0.79.13/src/util-m.h
Examining data/certmonger-0.79.13/src/util-n.c
Examining data/certmonger-0.79.13/src/util-n.h
Examining data/certmonger-0.79.13/src/util-o.c
Examining data/certmonger-0.79.13/src/util-o.h
Examining data/certmonger-0.79.13/src/util.c
Examining data/certmonger-0.79.13/src/util.h
Examining data/certmonger-0.79.13/tests/tools/addcinfo.c
Examining data/certmonger-0.79.13/tests/tools/base2pem.c
Examining data/certmonger-0.79.13/tests/tools/base64.c
Examining data/certmonger-0.79.13/tests/tools/cadata.c
Examining data/certmonger-0.79.13/tests/tools/canon.c
Examining data/certmonger-0.79.13/tests/tools/casave.c
Examining data/certmonger-0.79.13/tests/tools/certread.c
Examining data/certmonger-0.79.13/tests/tools/certsave.c
Examining data/certmonger-0.79.13/tests/tools/checksig.c
Examining data/certmonger-0.79.13/tests/tools/citerate.c
Examining data/certmonger-0.79.13/tests/tools/csrgen.c
Examining data/certmonger-0.79.13/tests/tools/dates.c
Examining data/certmonger-0.79.13/tests/tools/dparse.c
Examining data/certmonger-0.79.13/tests/tools/fromfile.c
Examining data/certmonger-0.79.13/tests/tools/hooks.c
Examining data/certmonger-0.79.13/tests/tools/iterate.c
Examining data/certmonger-0.79.13/tests/tools/json-utf8.c
Examining data/certmonger-0.79.13/tests/tools/json.c
Examining data/certmonger-0.79.13/tests/tools/keygen.c
Examining data/certmonger-0.79.13/tests/tools/keyiread.c
Examining data/certmonger-0.79.13/tests/tools/libexecdir.c
Examining data/certmonger-0.79.13/tests/tools/listnicks.c
Examining data/certmonger-0.79.13/tests/tools/ls.c
Examining data/certmonger-0.79.13/tests/tools/name2oid.c
Examining data/certmonger-0.79.13/tests/tools/oid2name.c
Examining data/certmonger-0.79.13/tests/tools/payload.c
Examining data/certmonger-0.79.13/tests/tools/pem2base.c
Examining data/certmonger-0.79.13/tests/tools/pk7decrypt.c
Examining data/certmonger-0.79.13/tests/tools/pk7env.c
Examining data/certmonger-0.79.13/tests/tools/pk7parse.c
Examining data/certmonger-0.79.13/tests/tools/pk7verify.c
Examining data/certmonger-0.79.13/tests/tools/prefs.c
Examining data/certmonger-0.79.13/tests/tools/printenv.c
Examining data/certmonger-0.79.13/tests/tools/scepgen.c
Examining data/certmonger-0.79.13/tests/tools/srv.c
Examining data/certmonger-0.79.13/tests/tools/submit.c
Examining data/certmonger-0.79.13/tests/tools/tm.c
Examining data/certmonger-0.79.13/tests/tools/tools.c
Examining data/certmonger-0.79.13/tests/tools/tools.h

FINAL RESULTS:

data/certmonger-0.79.13/src/cadata.c:114:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(argv[0], argv);
data/certmonger-0.79.13/src/cm.c:763:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(argv[0], argv);
data/certmonger-0.79.13/src/env-session.c:70:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ret, home);
data/certmonger-0.79.13/src/env-session.c:73:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(ret, subdir);
data/certmonger-0.79.13/src/env-session.c:77:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(ret, subfile);
data/certmonger-0.79.13/src/env-shared.c:47:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ret, config);
data/certmonger-0.79.13/src/env-shared.c:50:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(ret, subdir);
data/certmonger-0.79.13/src/env-shared.c:54:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(ret, subfile);
data/certmonger-0.79.13/src/getcert.c:138:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(path, R_OK | W_OK) == 0) {
data/certmonger-0.79.13/src/getcert.c:345:2:  [4] (shell) execv:
  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.
	execv(nargv[0], nargv);
data/certmonger-0.79.13/src/getcert.c:3558:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(("'%s' is in an invalid state!\n"), s);
data/certmonger-0.79.13/src/getcert.c:5474:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					printf(_(msgs[i].msgs[j]), cmd);
data/certmonger-0.79.13/src/getcert.c:5478:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(_(msgs[i].brief), cmd);
data/certmonger-0.79.13/src/getcert.c:5484:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(_(msgs[i].msgs[j]), cmd);
data/certmonger-0.79.13/src/hook.c:123:6:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (execvp(argv[0], argv) == -1) {
data/certmonger-0.79.13/src/log.c:87:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				vfprintf(stream, p, args);
data/certmonger-0.79.13/src/log.h:43:23:  [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.
__attribute__((format(printf,2,3)))
data/certmonger-0.79.13/src/notify.c:329:3:  [4] (shell) execlp:
  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.
		execlp("mail", "mail", "-s", message, dest, NULL);
data/certmonger-0.79.13/src/notify.c:345:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (execvp(argv[0], argv) == -1) {
data/certmonger-0.79.13/src/pin.c:133:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(buf, pin);
data/certmonger-0.79.13/src/pin.c:167:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(ret, pin);
data/certmonger-0.79.13/src/prefs-o.c:70:10:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
		return EVP_des_cbc();
data/certmonger-0.79.13/src/store-gen.c:395:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(timestamp, "%04d-%02d-%02d %02d:%02d:%02d %s",
data/certmonger-0.79.13/src/store-gen.c:519: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(ret + 4, serial);
data/certmonger-0.79.13/src/submit-e.c:947:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(argv[0], argv);
data/certmonger-0.79.13/src/submit-u.c:237: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(p, dos ? "-----\r\n" : "-----\n");
data/certmonger-0.79.13/src/submit-x.c:195: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(tgs, KRB5_TGS_NAME);
data/certmonger-0.79.13/src/submit.c:193:6:  [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(ret, sep);
data/certmonger-0.79.13/src/submit.c:195:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(ret, s[i]);
data/certmonger-0.79.13/src/tdbush.c:234:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(path, R_OK | W_OK) == 0) {
data/certmonger-0.79.13/src/tdbush.c:260:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(path, R_OK | W_OK) == 0) {
data/certmonger-0.79.13/src/util-n.c:157:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pathname, "%s/%s", dbdir, filename);
data/certmonger-0.79.13/src/certmaster.c:70:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv(CM_SUBMIT_OPERATION_ENV) != NULL) {
data/certmonger-0.79.13/src/certmaster.c:71:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		mode = getenv(CM_SUBMIT_OPERATION_ENV);
data/certmonger-0.79.13/src/certmaster.c:149:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		csr = getenv(CM_SUBMIT_CSR_ENV);
data/certmonger-0.79.13/src/dogtag.c:186:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv(CM_SUBMIT_OPERATION_ENV) != NULL) {
data/certmonger-0.79.13/src/dogtag.c:187:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		mode = getenv(CM_SUBMIT_OPERATION_ENV);
data/certmonger-0.79.13/src/dogtag.c:213:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	savedstate = getenv(CM_SUBMIT_COOKIE_ENV);
data/certmonger-0.79.13/src/dogtag.c:363: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.
		template = getenv(CM_SUBMIT_PROFILE_ENV);
data/certmonger-0.79.13/src/dogtag.c:375:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		tmp = getenv(CM_SUBMIT_CERTIFICATE_ENV);
data/certmonger-0.79.13/src/dogtag.c:540: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.
				csr = getenv(CM_SUBMIT_CSR_ENV);
data/certmonger-0.79.13/src/env-session.c:48:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	home = getenv("HOME");
data/certmonger-0.79.13/src/env-session.c:57:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		home = realpath(home, NULL);
data/certmonger-0.79.13/src/env-session.c:140:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ret = getenv(CM_STORE_CONFIG_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-session.c:157:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ret = getenv(CM_STORE_REQUESTS_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-session.c:174:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ret = getenv(CM_STORE_CAS_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-session.c:192:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ret = getenv(CM_STORE_LOCAL_CA_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-session.c:208: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.
	ret = getenv(CM_TMPDIR_ENV);
data/certmonger-0.79.13/src/env-session.c:210:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ret = getenv("TMPDIR");
data/certmonger-0.79.13/src/env-system.c:42: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.
	ret = getenv(CM_STORE_CONFIG_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-system.c:53: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.
	ret = getenv(CM_STORE_REQUESTS_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-system.c:64: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.
	ret = getenv(CM_STORE_CAS_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-system.c:77:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ret = getenv(CM_STORE_LOCAL_CA_DIRECTORY_ENV);
data/certmonger-0.79.13/src/env-system.c:89: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.
	ret = getenv(CM_TMPDIR_ENV);
data/certmonger-0.79.13/src/env-system.c:93:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			ret = getenv("TMPDIR");
data/certmonger-0.79.13/src/env-system.c:130: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.
	ret = getenv(CM_STORE_SYSTEM_LOCK_FILE_ENV);
data/certmonger-0.79.13/src/getcert.c:365: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.
			busaddr = getenv(CERTMONGER_PVT_ADDRESS_ENV);
data/certmonger-0.79.13/src/getcert.c:837:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:838: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:1933:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:1934: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:2593:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:2594: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3163:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:3164: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3418:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:3419: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3954:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:3955: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4115:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:4116: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4353:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:4354: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4449:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:4450: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4548:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:4549: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4683:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:4684: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4771:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv(CERTMONGER_PVT_ADDRESS_ENV) != NULL) &&
data/certmonger-0.79.13/src/getcert.c:4772: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.
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/ipa.c:996:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv(CM_SUBMIT_OPERATION_ENV) != NULL) {
data/certmonger-0.79.13/src/ipa.c:997:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		mode = getenv(CM_SUBMIT_OPERATION_ENV);
data/certmonger-0.79.13/src/ipa.c:1137: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.
		    (getenv(CM_SUBMIT_REQ_PRINCIPAL_ENV) != NULL)) {
data/certmonger-0.79.13/src/ipa.c:1139:22:  [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.
			reqprinc = strdup(getenv(CM_SUBMIT_REQ_PRINCIPAL_ENV));
data/certmonger-0.79.13/src/ipa.c:1152: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.
		    (getenv(CM_SUBMIT_PROFILE_ENV) != NULL)) {
data/certmonger-0.79.13/src/ipa.c:1153:21:  [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.
			profile = strdup(getenv(CM_SUBMIT_PROFILE_ENV));
data/certmonger-0.79.13/src/ipa.c:1156: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.
		    (getenv(CM_SUBMIT_ISSUER_ENV) != NULL)) {
data/certmonger-0.79.13/src/ipa.c:1157:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			issuer = strdup(getenv(CM_SUBMIT_ISSUER_ENV));
data/certmonger-0.79.13/src/ipa.c:1186:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			csr = getenv(CM_SUBMIT_CSR_ENV);
data/certmonger-0.79.13/src/local.c:446:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv(CM_SUBMIT_OPERATION_ENV) != NULL) {
data/certmonger-0.79.13/src/local.c:447:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		mode = getenv(CM_SUBMIT_OPERATION_ENV);
data/certmonger-0.79.13/src/local.c:468: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.
	localdir = getenv(CM_STORE_LOCAL_CA_DIRECTORY_ENV);
data/certmonger-0.79.13/src/local.c:553:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			csr = getenv(CM_SUBMIT_CSR_ENV);
data/certmonger-0.79.13/src/scep.c:248:7:  [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.
	id = getenv(CM_SUBMIT_SCEP_CA_IDENTIFIER_ENV);
data/certmonger-0.79.13/src/scep.c:252: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.
	racert = getenv(CM_SUBMIT_SCEP_RA_CERTIFICATE_ENV);
data/certmonger-0.79.13/src/scep.c:253: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.
	cacert = getenv(CM_SUBMIT_SCEP_CA_CERTIFICATE_ENV);
data/certmonger-0.79.13/src/scep.c:254:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	certs = getenv(CM_SUBMIT_SCEP_CERTIFICATES_ENV);
data/certmonger-0.79.13/src/scep.c:256:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	mode = getenv(CM_SUBMIT_OPERATION_ENV);
data/certmonger-0.79.13/src/scep.c:260: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.
			message = getenv(CM_SUBMIT_SCEP_PKCSREQ_REKEY_ENV);
data/certmonger-0.79.13/src/scep.c:262:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				message = getenv(CM_SUBMIT_SCEP_PKCSREQ_ENV);
data/certmonger-0.79.13/src/scep.c:264:21:  [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.
				rekey_message = getenv(CM_SUBMIT_SCEP_PKCSREQ_ENV);
data/certmonger-0.79.13/src/scep.c:269: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.
			message = getenv(CM_SUBMIT_SCEP_PKCSREQ_REKEY_ENV);
data/certmonger-0.79.13/src/scep.c:271:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				message = getenv(CM_SUBMIT_SCEP_PKCSREQ_ENV);
data/certmonger-0.79.13/src/scep.c:273:21:  [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.
				rekey_message = getenv(CM_SUBMIT_SCEP_PKCSREQ_ENV);
data/certmonger-0.79.13/src/submit-x.c:855: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.
	csr = getenv(CM_SUBMIT_CSR_ENV);
data/certmonger-0.79.13/src/subproc.c:137: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.
				tmp = getenv(CM_STORE_CONFIG_DIRECTORY_ENV);
data/certmonger-0.79.13/src/subproc.c:139: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.
				tmp = getenv("TMPDIR");
data/certmonger-0.79.13/tests/tools/printenv.c:32: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.
		value = getenv(argv[i]);
data/certmonger-0.79.13/tests/tools/tm.c:29:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CM_FORCE_TIME") != NULL) {
data/certmonger-0.79.13/tests/tools/tm.c:30: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.
		t = atol(getenv("CM_FORCE_TIME"));
data/certmonger-0.79.13/tests/tools/tools.c:30:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((getenv("CERTMONGER_FORCE_FIPS") != NULL) &&
data/certmonger-0.79.13/tests/tools/tools.c:31: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.
	    (atoi(getenv("CERTMONGER_FORCE_FIPS")) != 0)) {
data/certmonger-0.79.13/src/canalyze.c:283:19:  [2] (integer) atol:
  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).
			state->delay = atol(p);
data/certmonger-0.79.13/src/casave.c:273: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).
		bundle = fopen(state->file, "w");
data/certmonger-0.79.13/src/casave.c:338: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, *dest, sizeof(tmp[0]) * i);
data/certmonger-0.79.13/src/casave.c:377: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, *dest, sizeof(tmp[0]) * i);
data/certmonger-0.79.13/src/certext.c:314:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(entry->cm_cert_ku + i, "%.*u", 1, bit);
data/certmonger-0.79.13/src/certext.c:425: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(p, oid, n);
data/certmonger-0.79.13/src/certext.c:553: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(tmp, oids, sizeof(SECItem *) * i);
data/certmonger-0.79.13/src/certext.c:693: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(p, name, length);
data/certmonger-0.79.13/src/certext.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(comps, krb5_princ_name(ctx, princ),
data/certmonger-0.79.13/src/certext.c:717: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(comps[i].data, name, length);
data/certmonger-0.79.13/src/certext.c:728: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(comps, princ->name.name_string.val, sizeof(char *) * i);
data/certmonger-0.79.13/src/certext.c:770: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.
						     (char *) comps[j]->data,
data/certmonger-0.79.13/src/certext.c:846: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(names, entry->cm_cert_principal,
data/certmonger-0.79.13/src/certext.c:869: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(names, entry->cm_cert_principal,
data/certmonger-0.79.13/src/certext.c:888: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(names, entry->cm_cert_principal,
data/certmonger-0.79.13/src/certext.c:909: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 **s, abuf[64];
data/certmonger-0.79.13/src/certext.c:932: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, entry->cm_cert_hostname,
data/certmonger-0.79.13/src/certext.c:959: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, entry->cm_cert_ipaddress,
data/certmonger-0.79.13/src/certext.c:976: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, entry->cm_cert_email,
data/certmonger-0.79.13/src/certext.c:1151:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			next->name.other.data = (unsigned char *) email[i];
data/certmonger-0.79.13/src/certext.c:1280:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[CM_DIGEST_MAX];
data/certmonger-0.79.13/src/certext.c:1318: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(pubkey.data,
data/certmonger-0.79.13/src/certext.c:1353:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[CM_DIGEST_MAX];
data/certmonger-0.79.13/src/certext.c:1391: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(pubkey.data,
data/certmonger-0.79.13/src/certext.c:1461: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.
		tmp = (unsigned char *) ocsp_location[i];
data/certmonger-0.79.13/src/certext.c:1513:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		location[j].name.other.data = (unsigned char *) crldp[i];
data/certmonger-0.79.13/src/certext.c:2181:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tmp + i, "%.*u", 1, bit);
data/certmonger-0.79.13/src/certmaster.c:56: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 *csr, *p, uri[LINE_MAX], *s1, *s2, *config;
data/certmonger-0.79.13/src/certread-o.c:62: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[LINE_MAX];
data/certmonger-0.79.13/src/certread-o.c:80: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).
	pem = fopen(entry->cm_cert_storage_location, "r");
data/certmonger-0.79.13/src/certread.c:244:32:  [2] (integer) atol:
  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).
			entry->cm_cert_not_before = atol(s);
data/certmonger-0.79.13/src/certread.c:249:31:  [2] (integer) atol:
  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).
			entry->cm_cert_not_after = atol(s);
data/certmonger-0.79.13/src/certread.c:349: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).
			entry->cm_cert_is_ca = (p != q) ? (atoi(p) != 0) : 0;
data/certmonger-0.79.13/src/certread.c:352:47:  [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).
			entry->cm_cert_ca_path_length = (p != q) ? atoi(p) : -1;
data/certmonger-0.79.13/src/certread.c:430:47:  [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).
			entry->cm_cert_no_ocsp_check = (p != q) ? (atoi(p) != 0) : 0;
data/certmonger-0.79.13/src/certsave-n.c:76: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(newlist, list, sizeof(newlist[0]) * i);
data/certmonger-0.79.13/src/certsave-o.c:63:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "r");
data/certmonger-0.79.13/src/certsave-o.c:129:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "w");
data/certmonger-0.79.13/src/certsave-o.c:306:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			pem = fopen(entry->cm_cert_storage_location, "w");
data/certmonger-0.79.13/src/cm.c:363: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[0x10000];
data/certmonger-0.79.13/src/cm.c:604: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 timestamp[15];
data/certmonger-0.79.13/src/cm.c:1008: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 timestamp[15];
data/certmonger-0.79.13/src/csrgen-n.c:261:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char spkidigest[CM_DIGEST_MAX + 1];
data/certmonger-0.79.13/src/csrgen-o.c:182: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[LINE_MAX], *s, *nickname, *pin, *password, *filename;
data/certmonger-0.79.13/src/csrgen-o.c:183:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *extensions, *upassword, *bmp, *name, *up, *uq, md[CM_DIGEST_MAX];
data/certmonger-0.79.13/src/csrgen-o.c:211:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	keyfp = fopen(filename, "r");
data/certmonger-0.79.13/src/csrgen.c:51:8:  [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).
		fd = open(filename, O_RDONLY);
data/certmonger-0.79.13/src/dogtag.c:79: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(q, p, len);
data/certmonger-0.79.13/src/getcert.c:109: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[PATH_MAX + 1], *ret;
data/certmonger-0.79.13/src/getcert.c:295: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, *dest, sizeof(tmp[0]) * i);
data/certmonger-0.79.13/src/getcert.c:308: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 *nargv[7] = {
data/certmonger-0.79.13/src/getcert.c:744: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 subject_default[LINE_MAX];
data/certmonger-0.79.13/src/getcert.c:818:2:  [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(subject_default, "CN=");
data/certmonger-0.79.13/src/getcert.c:821:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(subject_default, "CN=localhost");
data/certmonger-0.79.13/src/getcert.c:908: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).
			keysize = atoi(poptarg);
data/certmonger-0.79.13/src/getcert.c:2679: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).
			keysize = atoi(poptarg);
data/certmonger-0.79.13/src/getcert.c:3393: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 **as, **as1, **as2, **as3, **as4, **as5, t[25];
data/certmonger-0.79.13/src/getcert.c:3396: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 key_usages[LINE_MAX];
data/certmonger-0.79.13/src/getcert.c:4054:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[CM_DIGEST_MAX], *u = NULL;
data/certmonger-0.79.13/src/getcert.c:5495: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 poptname[LINE_MAX];
data/certmonger-0.79.13/src/ipa.c:136: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, data->data, data->length);
data/certmonger-0.79.13/src/ipa.c:382: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 *lncattrs[2] = {"defaultNamingContext", NULL};
data/certmonger-0.79.13/src/ipa.c:412: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(*basedn,
data/certmonger-0.79.13/src/ipa.c:437: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 *lattrs[2] = {"cn", NULL};
data/certmonger-0.79.13/src/ipa.c:440: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 ldn[LINE_MAX], lfilter[LINE_MAX], uri[LINE_MAX] = "", **list;
data/certmonger-0.79.13/src/ipa.c:872: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 *lattrs[2] = {"caCertificate;binary", NULL};
data/certmonger-0.79.13/src/ipa.c:875: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 ldn[LINE_MAX], lfilter[LINE_MAX], uri[LINE_MAX] = "", *kerr = NULL;
data/certmonger-0.79.13/src/ipa.c:960: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 *csr, *p, uri[LINE_MAX], *reqprinc = NULL, *ipaconfig, *kerr;
data/certmonger-0.79.13/src/ipa.c:966: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 ldn[LINE_MAX], *basedn = NULL, *profile = NULL, *issuer = NULL;
data/certmonger-0.79.13/src/ipa.c:1173:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(uri, "json");
data/certmonger-0.79.13/src/iterate.c:571:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tstr[25], nowstr[25];
data/certmonger-0.79.13/src/json.c:92: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(json->s.s, string, length);
data/certmonger-0.79.13/src/json.c:463:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(q, "\\u%04X", uni);
data/certmonger-0.79.13/src/json.c:467:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(q, "\\u%04X\\u%04X", (uni >> 10) | 0xd800, (uni & 0x3ff) | 0xdc00);
data/certmonger-0.79.13/src/keygen-n.c:85:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char suffix[6];
data/certmonger-0.79.13/src/keygen-o.c:66:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char suffix[6];
data/certmonger-0.79.13/src/keygen-o.c:102: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[LINE_MAX], *pin, *pubhex, *pubihex, *oldfile;
data/certmonger-0.79.13/src/keygen-o.c:248:10:  [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).
	keyfd = open(filename, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
data/certmonger-0.79.13/src/keygen-o.c:255:12:  [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).
			keyfd = open(filename, O_RDWR, S_IRUSR | S_IWUSR);
data/certmonger-0.79.13/src/keygen-o.c:279:12:  [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).
			keyfd = open(filename, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
data/certmonger-0.79.13/src/keyiread-o.c:62: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[LINE_MAX];
data/certmonger-0.79.13/src/keyiread-o.c:77: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).
	pem = fopen(entry->cm_key_storage_location, "r");
data/certmonger-0.79.13/src/keyiread-o.c:111:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			pem = fopen(nextfile, "r");
data/certmonger-0.79.13/src/keyiread.c:151:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			size = atoi(p);
data/certmonger-0.79.13/src/keyiread.c:212:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			size = atoi(p);
data/certmonger-0.79.13/src/local.c:71: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.
static unsigned char uuid[16];
data/certmonger-0.79.13/src/local.c:81:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *p, *q, md[CM_DIGEST_MAX];
data/certmonger-0.79.13/src/local.c:213:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(creds, "r");
data/certmonger-0.79.13/src/local.c:275: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(serial, "r");
data/certmonger-0.79.13/src/local.c:352: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(serial, "w");
data/certmonger-0.79.13/src/local.c:368: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(creds, "w");
data/certmonger-0.79.13/src/local.c:408:8:  [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).
	lfd = open(lockfile, O_RDWR | O_CREAT,
data/certmonger-0.79.13/src/local.c:578: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(serial, "r");
data/certmonger-0.79.13/src/local.c:619: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).
			fp = fopen(serial, "w");
data/certmonger-0.79.13/src/main.c:155: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).
			bustime = atoi(poptGetOptArg(pctx));
data/certmonger-0.79.13/src/main.c:161:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			dlevel = atoi(poptGetOptArg(pctx));
data/certmonger-0.79.13/src/main.c:258:8:  [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).
	lfd = open(cm_env_lock_file(), O_RDWR | O_CREAT,
data/certmonger-0.79.13/src/main.c:322:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		pfd = open(pidfile, O_RDWR | O_CREAT,
data/certmonger-0.79.13/src/nl-check.c:145:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[0x10000];
data/certmonger-0.79.13/src/notify.c:56: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 *tok, t[15], **argv, *ltime;
data/certmonger-0.79.13/src/pin.c:73:8:  [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).
		fd = open(pinfile, O_RDONLY);
data/certmonger-0.79.13/src/pkcs7.c:257: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, buffer, length);
data/certmonger-0.79.13/src/pkcs7.c:281:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINE_MAX] = "";
data/certmonger-0.79.13/src/pkcs7.c:761: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(*ias, encoded.data, encoded.len);
data/certmonger-0.79.13/src/pkcs7.c:840: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(ret, s, len);
data/certmonger-0.79.13/src/pkcs7.c:884: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(*ret, s, len);
data/certmonger-0.79.13/src/pkcs7.c:933: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 *s, buf[LINE_MAX], *p, *q;
data/certmonger-0.79.13/src/pkcs7.c:1174: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(*payload, s, *payload_length);
data/certmonger-0.79.13/src/scep.c:180: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(tmp, capability, q - p);
data/certmonger-0.79.13/src/scep.c:214: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[LINE_MAX] = "";
data/certmonger-0.79.13/src/scep.c:217:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *root[3], **othercerts;
data/certmonger-0.79.13/src/scepgen-n.c:131:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char nonce[16];
data/certmonger-0.79.13/src/scepgen-o.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[LINE_MAX];
data/certmonger-0.79.13/src/scepgen-o.c:76:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	keyfp = fopen(filename, "r");
data/certmonger-0.79.13/src/scepgen-o.c:298: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[LINE_MAX];
data/certmonger-0.79.13/src/scepgen-o.c:381: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[LINE_MAX];
data/certmonger-0.79.13/src/scepgen-o.c:718:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char nonce[16];
data/certmonger-0.79.13/src/srvloc.c:159: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(&res[j], &res[k], sizeof(tmp));
data/certmonger-0.79.13/src/srvloc.c:160: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(&res[k], &tmp, sizeof(tmp));
data/certmonger-0.79.13/src/srvloc.c:231: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(res[j].host, rr.rdata + 6, rr.rdlength - 6);
data/certmonger-0.79.13/src/store-files.c:712:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
cm_store_make_uuid_string(char out[37])
data/certmonger-0.79.13/src/store-files.c:714:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char uuid[16];
data/certmonger-0.79.13/src/store-files.c:746:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
cm_store_make_uuid_string_underscore(char out[37])
data/certmonger-0.79.13/src/store-files.c:870: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).
				ret->cm_key_type.cm_key_size = atoi(p);
data/certmonger-0.79.13/src/store-files.c:874: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).
				ret->cm_key_type.cm_key_gen_size = atoi(p);
data/certmonger-0.79.13/src/store-files.c:924: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).
				ret->cm_key_next_type.cm_key_size = atoi(p);
data/certmonger-0.79.13/src/store-files.c:928:45:  [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).
				ret->cm_key_next_type.cm_key_gen_size = atoi(p);
data/certmonger-0.79.13/src/store-files.c:932:28:  [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).
				ret->cm_key_preserve = atoi(p) != 0;
data/certmonger-0.79.13/src/store-files.c:1014:35:  [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).
				ret->cm_key_requested_count = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1018: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).
				ret->cm_key_next_requested_count = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1022: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).
				ret->cm_key_issued_count = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1116: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).
				ret->cm_cert_is_ca = atoi(p) != 0;
data/certmonger-0.79.13/src/store-files.c:1120:35:  [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).
				ret->cm_cert_ca_path_length = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1142:34:  [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).
				ret->cm_cert_no_ocsp_check = atoi(p) != 0;
data/certmonger-0.79.13/src/store-files.c:1196:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ret->cm_template_is_ca = atoi(p) != 0;
data/certmonger-0.79.13/src/store-files.c:1200: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).
				ret->cm_template_ca_path_length = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1228: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).
				ret->cm_template_no_ocsp_check = atoi(p) != 0;
data/certmonger-0.79.13/src/store-files.c:1275:25:  [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).
				ret->cm_autorenew = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1279:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ret->cm_monitor = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1357: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(filename, "r");
data/certmonger-0.79.13/src/store-files.c:1518:29:  [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).
				ret->cm_ca_is_default = atoi(p);
data/certmonger-0.79.13/src/store-files.c:1537:38:  [2] (integer) atol:
  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).
				ret->cm_ca_internal_issue_time = atol(p);
data/certmonger-0.79.13/src/store-files.c:1652: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(filename, "r");
data/certmonger-0.79.13/src/store-files.c:1794: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 timestamp[15];
data/certmonger-0.79.13/src/store-files.c:2194: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 dir[PATH_MAX];
data/certmonger-0.79.13/src/store-files.c:2220: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 timestamp[15], path[PATH_MAX];
data/certmonger-0.79.13/src/store-files.c:2230:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(path,
data/certmonger-0.79.13/src/store-files.c:2235:10:  [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).
				fd = open(path,
data/certmonger-0.79.13/src/store-files.c:2252:11:  [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).
					fd = open(path,
data/certmonger-0.79.13/src/store-files.c:2278:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(path, "w");
data/certmonger-0.79.13/src/store-files.c:2311: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[PATH_MAX + 1], *p;
data/certmonger-0.79.13/src/store-files.c:2327:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				fp = fopen(globs.gl_pathv[i], "r");
data/certmonger-0.79.13/src/store-files.c:2366: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 timestamp[15];
data/certmonger-0.79.13/src/store-files.c:2481: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 timestamp[15], path[PATH_MAX];
data/certmonger-0.79.13/src/store-files.c:2490:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(path,
data/certmonger-0.79.13/src/store-files.c:2495:10:  [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).
				fd = open(path,
data/certmonger-0.79.13/src/store-files.c:2511:12:  [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).
						fd = open(path,
data/certmonger-0.79.13/src/store-files.c:2538:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(path, "w");
data/certmonger-0.79.13/src/store-files.c:2571: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[PATH_MAX + 1], *p;
data/certmonger-0.79.13/src/store-files.c:2589: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).
			fp = fopen(globs.gl_pathv[i], "r");
data/certmonger-0.79.13/src/store-gen.c:324: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[5];
data/certmonger-0.79.13/src/store-gen.c:332: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(buf, timestamp, 4);
data/certmonger-0.79.13/src/store-gen.c:335:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		stamp.tm_year = atoi(buf) - 1900;
data/certmonger-0.79.13/src/store-gen.c:338: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(buf, timestamp, 2);
data/certmonger-0.79.13/src/store-gen.c:341:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			stamp.tm_year = atoi(buf);
data/certmonger-0.79.13/src/store-gen.c:349: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(buf, timestamp + i, 2);
data/certmonger-0.79.13/src/store-gen.c:352:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	stamp.tm_mon = atoi(buf) - 1;
data/certmonger-0.79.13/src/store-gen.c:353: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(buf, timestamp + i, 2);
data/certmonger-0.79.13/src/store-gen.c:356:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	stamp.tm_mday = atoi(buf);
data/certmonger-0.79.13/src/store-gen.c:357: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(buf, timestamp + i, 2);
data/certmonger-0.79.13/src/store-gen.c:360:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	stamp.tm_hour = atoi(buf);
data/certmonger-0.79.13/src/store-gen.c:361: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(buf, timestamp + i, 2);
data/certmonger-0.79.13/src/store-gen.c:364:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	stamp.tm_min = atoi(buf);
data/certmonger-0.79.13/src/store-gen.c:365: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(buf, timestamp + i, 2);
data/certmonger-0.79.13/src/store-gen.c:367:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	stamp.tm_sec = atoi(buf);
data/certmonger-0.79.13/src/store-gen.c:372: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 *
data/certmonger-0.79.13/src/store-gen.c:373:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
cm_store_timestamp_from_time(time_t when, char timestamp[15])
data/certmonger-0.79.13/src/store-gen.c:377:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(timestamp, "%04d%02d%02d%02d%02d%02d",
data/certmonger-0.79.13/src/store-gen.c:381:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(timestamp, "19700101000000");
data/certmonger-0.79.13/src/store-gen.c:402:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(timestamp, "1970-01-01 00:00:00 UTC");
data/certmonger-0.79.13/src/store-gen.c:408: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 *
data/certmonger-0.79.13/src/store-gen.c:409:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
cm_store_timestamp_from_time_for_display(time_t when, char timestamp[25])
data/certmonger-0.79.13/src/store-gen.c:413:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(timestamp, "%04d-%02d-%02d %02d:%02d:%02d UTC",
data/certmonger-0.79.13/src/store-gen.c:417:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(timestamp, "1970-01-01 00:00:00 UTC");
data/certmonger-0.79.13/src/store.h:44: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 *cm_store_timestamp_from_time(time_t when, char timestamp[15]);
data/certmonger-0.79.13/src/store.h:44:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *cm_store_timestamp_from_time(time_t when, char timestamp[15]);
data/certmonger-0.79.13/src/store.h:45:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int cm_store_make_uuid_string(char out[37]);
data/certmonger-0.79.13/src/store.h:46:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int cm_store_make_uuid_string_underscore(char out[37]);
data/certmonger-0.79.13/src/store.h: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 *cm_store_timestamp_from_time_for_display(time_t when, char timestamp[24]);
data/certmonger-0.79.13/src/store.h:47:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *cm_store_timestamp_from_time_for_display(time_t when, char timestamp[24]);
data/certmonger-0.79.13/src/submit-d.c:433: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.
									memcpy(tmp, ret, sizeof(char *) * n);
data/certmonger-0.79.13/src/submit-e.c:225:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(tmp, msg, length);
data/certmonger-0.79.13/src/submit-e.c:267: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.
							memcpy(tmp, msg, length);
data/certmonger-0.79.13/src/submit-h.c:123: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(data + ctx->result_length, in + n * size, size);
data/certmonger-0.79.13/src/submit-h.c:383:10:  [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).
				fd = open(pinfile, O_RDONLY);
data/certmonger-0.79.13/src/submit-n.c:99: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];
data/certmonger-0.79.13/src/submit-n.c:148: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(param_data, util_ASN1_STRING_get0_data(params), param.len);
data/certmonger-0.79.13/src/submit-n.c:160: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(enc_key, util_ASN1_STRING_get0_data(p7i->enc_key), enc_key_len);
data/certmonger-0.79.13/src/submit-n.c:246: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(ret->data, u, l + 1);
data/certmonger-0.79.13/src/submit-n.c:464: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(*payload, plain->data, plain->len);
data/certmonger-0.79.13/src/submit-o.c:61:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
cm_submit_o_set_things(X509 **cert, X509 *signer, unsigned char uuid[16], unsigned int uuid_len,
data/certmonger-0.79.13/src/submit-o.c:209:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *seriald, *basicd, md[CM_DIGEST_MAX];
data/certmonger-0.79.13/src/submit-o.c:214:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char uuid[16];
data/certmonger-0.79.13/src/submit-o.c:325: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[LINE_MAX], *pin, *filename, *p;
data/certmonger-0.79.13/src/submit-o.c:334:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		keyfp_next = fopen(filename, "r");
data/certmonger-0.79.13/src/submit-o.c:339:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	keyfp = fopen(args->entry->cm_key_storage_location, "r");
data/certmonger-0.79.13/src/submit-o.c:393: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(*payload, p, l + 1);
data/certmonger-0.79.13/src/submit-sn.c:263: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(extensions, ucert->extensions,
data/certmonger-0.79.13/src/submit-so.c:65: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[LINE_MAX];
data/certmonger-0.79.13/src/submit-so.c:89: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).
			keyfp = fopen(filename, "r");
data/certmonger-0.79.13/src/submit-so.c:93: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).
		keyfp = fopen(filename, "r");
data/certmonger-0.79.13/src/submit-u.c:53: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(dest, src, len);
data/certmonger-0.79.13/src/submit-u.c:63: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 *csr, *p, buf[BUFSIZ];
data/certmonger-0.79.13/src/submit-u.c:67: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(filename, "r");
data/certmonger-0.79.13/src/submit-u.c:93: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(my_stpcpy(p, csr), buf, sizeof(buf));
data/certmonger-0.79.13/src/submit-u.c:226: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(p, q, width);
data/certmonger-0.79.13/src/submit-u.c:297:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
cm_submit_uuid_new(unsigned char uuid[16])
data/certmonger-0.79.13/src/submit-u.c:317: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(uuid, res, 16);
data/certmonger-0.79.13/src/submit-u.h:32:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int cm_submit_uuid_new(unsigned char uuid[16]);
data/certmonger-0.79.13/src/submit-x.c:121: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, data->data, data->length);
data/certmonger-0.79.13/src/submit-x.c:136: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 tgs[LINE_MAX], *ret;
data/certmonger-0.79.13/src/subproc.c:471:7:  [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).
		i = open("/dev/null", O_RDONLY);
data/certmonger-0.79.13/src/subproc.c:484:7:  [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).
		i = open("/dev/null", O_WRONLY);
data/certmonger-0.79.13/src/subproc.c:497:7:  [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).
		i = open("/dev/null", O_WRONLY);
data/certmonger-0.79.13/src/tdbus.c:143: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 flags[20] = "";
data/certmonger-0.79.13/src/tdbus.c:157:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(flags, "Read");
data/certmonger-0.79.13/src/tdbus.c:163:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(flags, "Write");
data/certmonger-0.79.13/src/tdbus.c:183: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 flags[20] = "";
data/certmonger-0.79.13/src/tdbus.c:188:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(flags, "Read");
data/certmonger-0.79.13/src/tdbus.c:194:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(flags, "Write");
data/certmonger-0.79.13/src/tdbus.c:257: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 flags[20] = "";
data/certmonger-0.79.13/src/tdbus.c:262:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(flags, "Read");
data/certmonger-0.79.13/src/tdbus.c:268:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(flags, "Write");
data/certmonger-0.79.13/src/tdbus.c:856:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char uuid[16];
data/certmonger-0.79.13/src/tdbush.c:2200:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2], *path;
data/certmonger-0.79.13/src/tdbush.c:2260:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2], *path;
data/certmonger-0.79.13/src/tdbush.c:2310:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2], *path;
data/certmonger-0.79.13/src/tdbush.c:2360:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2], *path;
data/certmonger-0.79.13/src/tdbush.c:2410:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2], *path;
data/certmonger-0.79.13/src/tdbush.c:2643: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 local_output[33];
data/certmonger-0.79.13/src/tdbush.c:3171:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[sizeof(*entry)];
data/certmonger-0.79.13/src/tdbush.c:3705:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2];
data/certmonger-0.79.13/src/tdbush.c:3797:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *propname[2];
data/certmonger-0.79.13/src/tdbush.c:4160:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *properties[2];
data/certmonger-0.79.13/src/tdbush.c:4190:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *properties[2];
data/certmonger-0.79.13/src/tdbush.c:4230:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *properties[2];
data/certmonger-0.79.13/src/tdbush.c:4264:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *properties[2];
data/certmonger-0.79.13/src/tdbush.c:5446:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *properties[2];
data/certmonger-0.79.13/src/tdbusm.c:1275: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(tmp + n_dicts,
data/certmonger-0.79.13/src/tdbusm.c:1345: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(tmp + n_dicts,
data/certmonger-0.79.13/src/util-n.c:60: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[LINE_MAX];
data/certmonger-0.79.13/src/util-n.c:64: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(NODE, "r");
data/certmonger-0.79.13/src/util-n.c:71: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).
					if (atoi(buf) == 1) {
data/certmonger-0.79.13/src/util-n.c:158:7:  [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).
	fd = open(pathname, O_RDWR);
data/certmonger-0.79.13/src/util.c:53:10:  [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).
    fd = open(filename, O_RDONLY);
data/certmonger-0.79.13/tests/tools/addcinfo.c:81: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(buffer + n, buf, i);
data/certmonger-0.79.13/tests/tools/base2pem.c:37: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[LINE_MAX], *p = NULL, *q, *type = "CERTIFICATE";
data/certmonger-0.79.13/tests/tools/base64.c:37:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[LINE_MAX], *p = NULL, *q;
data/certmonger-0.79.13/tests/tools/base64.c:74: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(q + length, buf, l);
data/certmonger-0.79.13/tests/tools/checksig.c:50:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *p, *q, buf[LINE_MAX];
data/certmonger-0.79.13/tests/tools/checksig.c:75: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(p + len, buf, i);
data/certmonger-0.79.13/tests/tools/dates.c:43:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			when.tm_year = atoi(argv[1]) - 1900;
data/certmonger-0.79.13/tests/tools/hooks.c:126: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(tmpcas, ca,
data/certmonger-0.79.13/tests/tools/hooks.c:150: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(tmpentries, entry,
data/certmonger-0.79.13/tests/tools/json-utf8.c:38: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[7];
data/certmonger-0.79.13/tests/tools/json.c:66:8:  [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).
		fd = open(filename, O_RDONLY);
data/certmonger-0.79.13/tests/tools/ls.c:35: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 name[LINE_MAX];
data/certmonger-0.79.13/tests/tools/ls.c:52: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 name[LINE_MAX];
data/certmonger-0.79.13/tests/tools/payload.c:45:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *p, *q, buf[LINE_MAX];
data/certmonger-0.79.13/tests/tools/payload.c:61: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(p + len, buf, i);
data/certmonger-0.79.13/tests/tools/pem2base.c:35: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[LINE_MAX], *p = NULL, *q;
data/certmonger-0.79.13/tests/tools/pk7decrypt.c:84: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(data + len, buf, i);
data/certmonger-0.79.13/tests/tools/pk7env.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p[3];
data/certmonger-0.79.13/tests/tools/pk7env.c:53:8:  [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).
		fd = open(argv[i], O_RDONLY);
data/certmonger-0.79.13/tests/tools/pk7env.c:86:8:  [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).
		fd = open(argv[i], O_RDONLY);
data/certmonger-0.79.13/tests/tools/pk7env.c:133:8:  [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).
		fd = open(argv[i], O_RDONLY);
data/certmonger-0.79.13/tests/tools/pk7parse.c:51:8:  [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).
		fd = open(argv[i], O_RDONLY);
data/certmonger-0.79.13/tests/tools/pk7verify.c:56:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *data, buf[BUFSIZ];
data/certmonger-0.79.13/tests/tools/pk7verify.c:70:8:  [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).
		fd = open(argv[i], O_RDONLY);
data/certmonger-0.79.13/tests/tools/pk7verify.c:116: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(data + len, buf, i);
data/certmonger-0.79.13/tests/tools/tm.c:30:7:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		t = atol(getenv("CM_FORCE_TIME"));
data/certmonger-0.79.13/tests/tools/tools.c:31:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    (atoi(getenv("CERTMONGER_FORCE_FIPS")) != 0)) {
data/certmonger-0.79.13/src/cadata.c:87:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(ca->cm_nickname) > 0)) {
data/certmonger-0.79.13/src/cadata.c:245:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(s, s + 1, strlen(s));
data/certmonger-0.79.13/src/cadata.c:472: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).
			if ((reqs[i] != NULL) && (strlen(reqs[i]) > 0)) {
data/certmonger-0.79.13/src/cadata.c:480: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(dict[j]);
data/certmonger-0.79.13/src/cadata.c:486: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).
					    (strlen(reqs[i]) > 0)) {
data/certmonger-0.79.13/src/cadata.c:673:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(ca->cm_ca_encryption_cert)) {
data/certmonger-0.79.13/src/cadata.c:679:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(ca->cm_ca_encryption_issuer_cert)) {
data/certmonger-0.79.13/src/cadata.c:685:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(ca->cm_ca_encryption_cert_pool)) {
data/certmonger-0.79.13/src/cadata.c:771:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(error_fd[0], &u, 1) == 1) {
data/certmonger-0.79.13/src/canalyze.c:69: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).
		q = p + strlen(p);
data/certmonger-0.79.13/src/canalyze.c:161:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(p);
data/certmonger-0.79.13/src/canalyze.c:162: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).
	if (write(fd, p, strlen(p)) != i) {
data/certmonger-0.79.13/src/canalyze.c:232:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(p);
data/certmonger-0.79.13/src/canalyze.c:233: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).
	if (write(fd, p, strlen(p)) != i) {
data/certmonger-0.79.13/src/casave.c:174: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).
							     strlen(package));
data/certmonger-0.79.13/src/certext.c:328: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).
	if ((bitstring == NULL) || (strlen(bitstring) == 0)) {
data/certmonger-0.79.13/src/certext.c:332: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(bitstring) + 1;
data/certmonger-0.79.13/src/certext.c:417:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(oid);
data/certmonger-0.79.13/src/certext.c:540: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).
	if ((eku_value == NULL) || (strlen(eku_value) == 0)) {
data/certmonger-0.79.13/src/certext.c:615: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(princ->realm);
data/certmonger-0.79.13/src/certext.c:621: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(princ->name.name_string.val[i]);
data/certmonger-0.79.13/src/certext.c:1012: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).
	if ((principal == NULL) || (strlen(principal) == 0)) {
data/certmonger-0.79.13/src/certext.c:1017: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).
	princ.len = strlen(principal);
data/certmonger-0.79.13/src/certext.c:1039: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).
	if ((principal == NULL) || (strlen(principal) == 0)) {
data/certmonger-0.79.13/src/certext.c:1113: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(hostname[i]) == 0) {
data/certmonger-0.79.13/src/certext.c:1130:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			next->name.other.len = strlen(p);
data/certmonger-0.79.13/src/certext.c:1144: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(email[i]) == 0) {
data/certmonger-0.79.13/src/certext.c:1150:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			next->name.other.len = strlen(email[i]);
data/certmonger-0.79.13/src/certext.c:1163: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(principal[i]) == 0) {
data/certmonger-0.79.13/src/certext.c:1208: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(ipaddress[i]) == 0) {
data/certmonger-0.79.13/src/certext.c:1286:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pubkey.len = strlen(entry->cm_key_pubkey) / 2;
data/certmonger-0.79.13/src/certext.c:1302:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pubkeyinfo.len = strlen(pubkey_info) / 2;
data/certmonger-0.79.13/src/certext.c:1359:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pubkey.len = strlen(entry->cm_key_pubkey) / 2;
data/certmonger-0.79.13/src/certext.c:1375:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pubkeyinfo.len = strlen(pubkey_info) / 2;
data/certmonger-0.79.13/src/certext.c:1457: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(ocsp_location[i]) == 0) {
data/certmonger-0.79.13/src/certext.c:1463:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		location[j].name.other.len = strlen(ocsp_location[i]);
data/certmonger-0.79.13/src/certext.c:1509: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(crldp[i]) == 0) {
data/certmonger-0.79.13/src/certext.c:1514:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		location[j].name.other.len = strlen(crldp[i]);
data/certmonger-0.79.13/src/certext.c:1539: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(comment) == 0) {
data/certmonger-0.79.13/src/certext.c:1544: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).
	value.len = strlen(comment);
data/certmonger-0.79.13/src/certext.c:1584: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(profile) == 0) {
data/certmonger-0.79.13/src/certext.c:1697: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(certtype) == 0) {
data/certmonger-0.79.13/src/certext.c:2190: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).
	if ((tmp != NULL) && (strlen(tmp) > 0)) {
data/certmonger-0.79.13/src/certext.c:2195: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).
	if ((tmp != NULL) && (strlen(tmp) > 1)) {
data/certmonger-0.79.13/src/certext.c:2200: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).
	if ((tmp != NULL) && (strlen(tmp) > 2)) {
data/certmonger-0.79.13/src/certext.c:2205: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).
	if ((tmp != NULL) && (strlen(tmp) > 3)) {
data/certmonger-0.79.13/src/certext.c:2210: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).
	if ((tmp != NULL) && (strlen(tmp) > 4)) {
data/certmonger-0.79.13/src/certext.c:2215: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).
	if ((tmp != NULL) && (strlen(tmp) > 5)) {
data/certmonger-0.79.13/src/certext.c:2220: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).
	if ((tmp != NULL) && (strlen(tmp) > 6)) {
data/certmonger-0.79.13/src/certext.c:2225: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).
	if ((tmp != NULL) && (strlen(tmp) > 7)) {
data/certmonger-0.79.13/src/certext.c:2230: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(t) > 0) {
data/certmonger-0.79.13/src/certmaster.c:110:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IRWXG | S_IRWXO);
data/certmonger-0.79.13/src/certmaster.c:154: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).
	if ((csr == NULL) || (strlen(csr) == 0)) {
data/certmonger-0.79.13/src/certmaster.c:173:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(p, p + 4, strlen(p + 4) + 1);
data/certmonger-0.79.13/src/certmaster.c:180: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).
		 ((port != NULL) && (strlen(port) > 0)) ? ":" : "",
data/certmonger-0.79.13/src/certread-n.c:253: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).
		    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/certread-n.c:420: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).
		i = strlen(p);
data/certmonger-0.79.13/src/certsave-n.c:317: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).
			    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/certsave-n.c:632: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).
				    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/certsave-n.c:775:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(state->entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/certsave-o.c:150: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(contents);
data/certmonger-0.79.13/src/certsave-o.c:191:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/certsave-o.c:235: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).
			    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/certsave-o.c:439:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(state->entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/cm.c:626:6:  [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/certmonger-0.79.13/src/cm.c:1031:6:  [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/certmonger-0.79.13/src/csrgen-n.c:190:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			plain.len = strlen(challenge_password);
data/certmonger-0.79.13/src/csrgen-n.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).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/csrgen-n.c:296:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_template_subject_der) != 0)) {
data/certmonger-0.79.13/src/csrgen-n.c:298: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).
		item.len = strlen(entry->cm_template_subject_der) / 2;
data/certmonger-0.79.13/src/csrgen-n.c:319:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_template_subject) != 0)) {
data/certmonger-0.79.13/src/csrgen-n.c:325: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).
			item.len = strlen(entry->cm_template_subject);
data/certmonger-0.79.13/src/csrgen-n.c:565:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pkac.challenge.len = challenge_password ? strlen(challenge_password) : 0;
data/certmonger-0.79.13/src/csrgen-n.c:783: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).
	nowe.len = strlen(now);
data/certmonger-0.79.13/src/csrgen-n.c:791: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).
	nowe.len = strlen(now);
data/certmonger-0.79.13/src/csrgen-o.c:73:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(p);
data/certmonger-0.79.13/src/csrgen-o.c:200:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/csrgen-o.c:252: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).
		    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/csrgen-o.c:270: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).
			    (strlen(entry->cm_template_subject_der) != 0)) {
data/certmonger-0.79.13/src/csrgen-o.c:271:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				i = strlen(entry->cm_template_subject_der);
data/certmonger-0.79.13/src/csrgen-o.c:282: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).
			    (strlen(entry->cm_template_subject) != 0)) {
data/certmonger-0.79.13/src/csrgen-o.c:346: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).
							  strlen(password));
data/certmonger-0.79.13/src/csrgen-o.c:355: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).
						password, strlen(password));
data/certmonger-0.79.13/src/csrgen.c:50:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((filename != NULL) && (strlen(filename) > 0)) {
data/certmonger-0.79.13/src/csrgen.c:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if (read(fd, *password, st.st_size) != -1) {
data/certmonger-0.79.13/src/dogtag.c:72: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(what);
data/certmonger-0.79.13/src/dogtag.c:98:25:  [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 ((cert != NULL) && (strlen(cert) > 0)) {
data/certmonger-0.79.13/src/dogtag.c:101:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			c = CERT_DecodeCertFromPackage(pem, strlen(pem));
data/certmonger-0.79.13/src/dogtag.c:311:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IRWXG | S_IRWXO);
data/certmonger-0.79.13/src/dogtag.c:417:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((sslcert != NULL) && (strlen(sslcert) > 0)) {
data/certmonger-0.79.13/src/dogtag.c:522:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((serial != NULL) && (strlen(serial) > 0) && !force_new) {
data/certmonger-0.79.13/src/dogtag.c:545:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((csr == NULL) || (strlen(csr) == 0)) {
data/certmonger-0.79.13/src/dogtag.c:630:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((sslcert == NULL) || (strlen(sslcert) == 0)) {
data/certmonger-0.79.13/src/dogtag.c:667: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(params) > 0) {
data/certmonger-0.79.13/src/env-session.c:61: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(home);
data/certmonger-0.79.13/src/env-session.c:63:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += (strlen(subdir) + 1);
data/certmonger-0.79.13/src/env-session.c:66:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += (strlen(subfile) + 1);
data/certmonger-0.79.13/src/env-session.c:72:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(ret, "/");
data/certmonger-0.79.13/src/env-session.c:76:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(ret, "/");
data/certmonger-0.79.13/src/env-session.c:104: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).
			p = tmp + strlen(tmp);
data/certmonger-0.79.13/src/env-session.c:209: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).
	if ((ret == NULL) || (strlen(ret) == 0)) {
data/certmonger-0.79.13/src/env-session.c:211:25:  [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 ((ret == NULL) || (strlen(ret) == 0)) {
data/certmonger-0.79.13/src/env-shared.c:38: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(config);
data/certmonger-0.79.13/src/env-shared.c:40:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += (strlen(subdir) + 1);
data/certmonger-0.79.13/src/env-shared.c:43:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += (strlen(subfile) + 1);
data/certmonger-0.79.13/src/env-shared.c:49:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(ret, "/");
data/certmonger-0.79.13/src/env-shared.c:53:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(ret, "/");
data/certmonger-0.79.13/src/env-system.c:90: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).
	if ((ret == NULL) || (strlen(ret) == 0)) {
data/certmonger-0.79.13/src/env-system.c:92:25:  [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 ((ret == NULL) || (strlen(ret) == 0)) {
data/certmonger-0.79.13/src/env-system.c:94:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((ret == NULL) || (strlen(ret) == 0)) {
data/certmonger-0.79.13/src/getcert.c:267:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = talloc_size(parent, strlen(s) * 2 + 1);
data/certmonger-0.79.13/src/getcert.c:452: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).
		     strlen(CM_DBUS_ERROR_BASE)) == 0)) {
data/certmonger-0.79.13/src/getcert.c:727: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(125000);
data/certmonger-0.79.13/src/getcert.c:838:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:946:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    (strspn(oid, "0123456789.") != strlen(oid))) {
data/certmonger-0.79.13/src/getcert.c:955: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(poptarg) > 0) {
data/certmonger-0.79.13/src/getcert.c:1934:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:2029:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    (strspn(oid, "0123456789.") != strlen(oid))) {
data/certmonger-0.79.13/src/getcert.c:2038: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(poptarg) > 0) {
data/certmonger-0.79.13/src/getcert.c:2594:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:2696:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    (strspn(oid, "0123456789.") != strlen(oid))) {
data/certmonger-0.79.13/src/getcert.c:2705: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(poptarg) > 0) {
data/certmonger-0.79.13/src/getcert.c:3164:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3367:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3373:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3419:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3695: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).
		if ((s5 != NULL) && (strlen(s5) == 0)) {
data/certmonger-0.79.13/src/getcert.c:3700: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).
		if ((s6 != NULL) && (strlen(s6) == 0)) {
data/certmonger-0.79.13/src/getcert.c:3741:25:  [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 ((s1 != NULL) && (strlen(s1) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3743:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((s2 != NULL) && (strlen(s2) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3748:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((s2 != NULL) && (strlen(s2) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3818: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).
						 strlen(key_usages),
data/certmonger-0.79.13/src/getcert.c:3820: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).
						 strlen(key_usages),
data/certmonger-0.79.13/src/getcert.c:3822: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).
						 strlen(key_usages) ? "," : "",
data/certmonger-0.79.13/src/getcert.c:3837: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).
		if ((s1 != NULL) && (strlen(s1) > 0)) {
data/certmonger-0.79.13/src/getcert.c:3896:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (s1 != NULL && strlen(s1) > 0) {
data/certmonger-0.79.13/src/getcert.c:3902:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (s1 != NULL && strlen(s1) > 0) {
data/certmonger-0.79.13/src/getcert.c:3907:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (s1 != NULL && strlen(s1) > 0) {
data/certmonger-0.79.13/src/getcert.c:3955:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4064: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).
	length = strlen(t);
data/certmonger-0.79.13/src/getcert.c:4116:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4179: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).
			if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4277:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4285: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).
			if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4291: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).
			if ((s == NULL) || (strlen(s) == 0)) {
data/certmonger-0.79.13/src/getcert.c:4296: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).
			if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4298:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((thumb != NULL) && (strlen(thumb) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4304:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((thumb != NULL) && (strlen(thumb) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4314:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4320:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4354:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4450:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4549:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4684:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/getcert.c:4772:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(getenv(CERTMONGER_PVT_ADDRESS_ENV)) > 0)) {
data/certmonger-0.79.13/src/ipa.c:345: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(uri) != 0) {
data/certmonger-0.79.13/src/ipa.c:365: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(uri) == 0) {
data/certmonger-0.79.13/src/ipa.c:652: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).
	if ((uri == NULL) || (strlen(uri) == 0)) {
data/certmonger-0.79.13/src/ipa.c:1069:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IRWXG | S_IRWXO);
data/certmonger-0.79.13/src/ipa.c:1144: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).
		if ((reqprinc == NULL) || (strlen(reqprinc) == 0)) {
data/certmonger-0.79.13/src/ipa.c:1168: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(xmlrpc_uri) + 1) > sizeof(uri)) {
data/certmonger-0.79.13/src/ipa.c:1172: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).
			snprintf(uri, strlen(xmlrpc_uri) - 2, "%s", xmlrpc_uri);
data/certmonger-0.79.13/src/ipa.c:1191:25:  [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 ((csr == NULL) || (strlen(csr) == 0)) {
data/certmonger-0.79.13/src/ipa.c:1216:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(csr, p, strlen(p) + 1);
data/certmonger-0.79.13/src/ipa.c:1223:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p, p + 1, strlen(p));
data/certmonger-0.79.13/src/ipa.c:1226:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p, p + 1, strlen(p));
data/certmonger-0.79.13/src/json.c:88:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			json->s.l = strlen(json->s.s);
data/certmonger-0.79.13/src/json.c:406:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(s);
data/certmonger-0.79.13/src/json.c:789: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).
		length = strlen(encoded);
data/certmonger-0.79.13/src/json.c:1038:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strcspn(tmp, "Ee.") == strlen(tmp)) {
data/certmonger-0.79.13/src/keygen-n.c:101:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while ((l = strcspn(*marker, "+/")) != strlen(*marker)) {
data/certmonger-0.79.13/src/keygen-n.c:309: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).
		    (strlen(entry->cm_key_token) == 0) ||
data/certmonger-0.79.13/src/keygen-n.c:376:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((pin != NULL) && (strlen(pin) > 0)) {
data/certmonger-0.79.13/src/keygen-n.c:415:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/keygen-n.c:644:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((marker == NULL) || (strlen(marker) == 0)) {
data/certmonger-0.79.13/src/keygen-n.c:738:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/keygen-n.c:870:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((marker != NULL) && (strlen(marker) > 0)) {
data/certmonger-0.79.13/src/keygen-o.c:81:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while ((l = strcspn(*marker, "+/")) != strlen(*marker)) {
data/certmonger-0.79.13/src/keygen-o.c:378:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/keygen-o.c:481:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((marker != NULL) && (strlen(marker) > 0)) {
data/certmonger-0.79.13/src/keyiread-n.c:195: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).
		    (strlen(entry->cm_key_token) > 0) &&
data/certmonger-0.79.13/src/keyiread-n.c:233:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((pin != NULL) && (strlen(pin) > 0)) {
data/certmonger-0.79.13/src/keyiread-n.c:264: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).
		    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/keyiread-n.c:279: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).
		    (strlen(entry->cm_key_next_marker) != 0)) {
data/certmonger-0.79.13/src/keyiread-n.c:420: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).
			item.len = strlen(pubhex) / 2;
data/certmonger-0.79.13/src/keyiread-n.c:448: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).
	     (strlen(entry->cm_key_next_marker) != 0) &&
data/certmonger-0.79.13/src/keyiread-n.c:478:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_token) > 0)) {
data/certmonger-0.79.13/src/keyiread-n.c:533:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((name != NULL) && (strlen(name) == 0)) {
data/certmonger-0.79.13/src/keyiread-n.c:542: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(alg) > 0) {
data/certmonger-0.79.13/src/keyiread-n.c:566: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).
		    (strlen(entry->cm_key_next_marker) != 0)) {
data/certmonger-0.79.13/src/keyiread-o.c:95: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).
			    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/keyiread-o.c:109: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).
		    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/keyiread-o.c:122: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).
					    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/keyiread.c:129: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).
	if (((q - p) == strlen("RSA")) &&
data/certmonger-0.79.13/src/keyiread.c:134: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).
	if (((q - p) == strlen("DSA")) &&
data/certmonger-0.79.13/src/keyiread.c:140: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).
	if (((q - p) == strlen("EC")) &&
data/certmonger-0.79.13/src/keyiread.c:190: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).
	if (((q - p) == strlen("RSA")) &&
data/certmonger-0.79.13/src/keyiread.c:195: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).
	if (((q - p) == strlen("DSA")) &&
data/certmonger-0.79.13/src/keyiread.c:201: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).
	if (((q - p) == strlen("EC")) &&
data/certmonger-0.79.13/src/local.c:136: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).
							   strlen(CONSTANTCN),
data/certmonger-0.79.13/src/local.c:162: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).
							   strlen(cn), -1, 0);
data/certmonger-0.79.13/src/local.c:489:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IRWXG | S_IRWXO);
data/certmonger-0.79.13/src/local.c:558:25:  [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 ((csr == NULL) || (strlen(csr) == 0)) {
data/certmonger-0.79.13/src/main.c:210:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		env_tmpdir = malloc(8 + strlen(tmpdir));
data/certmonger-0.79.13/src/main.c:215:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		snprintf(env_tmpdir, 8 + strlen(tmpdir), "TMPDIR=%s", tmpdir);
data/certmonger-0.79.13/src/main.c:231:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IRWXG | S_IRWXO);
data/certmonger-0.79.13/src/oiddict.c:76: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(possible_prefix);
data/certmonger-0.79.13/src/oiddict.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(value) < len) {
data/certmonger-0.79.13/src/oiddict.c:96: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).
			len = strlen(cm_named_oids[i].oidish);
data/certmonger-0.79.13/src/oiddict.c:117: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).
			len = strlen(cm_named_oids[i].name);
data/certmonger-0.79.13/src/oiddict.c:125:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strspn(p, "0123456789.") != strlen(p)) {
data/certmonger-0.79.13/src/pin.c:72:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((pinfile != NULL) && (strlen(pinfile) > 0)) {
data/certmonger-0.79.13/src/pin.c:78:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if (read(fd, *pin, st.st_size) != -1) {
data/certmonger-0.79.13/src/pin.c:131: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).
			ret = strlen(pin);
data/certmonger-0.79.13/src/pin.c:165:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ret = PR_Malloc(strlen(pin) + 1);
data/certmonger-0.79.13/src/pkcs7.c:202: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).
		length = strlen((const char *) buffer);
data/certmonger-0.79.13/src/pkcs7.c:792:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((cacert == NULL) || (strlen(cacert) == 0)) {
data/certmonger-0.79.13/src/prefs.c:46: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).
		path = malloc(strlen(dir) + strlen(base) + 1);
data/certmonger-0.79.13/src/prefs.c:46: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).
		path = malloc(strlen(dir) + strlen(base) + 1);
data/certmonger-0.79.13/src/prefs.c:48: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).
			snprintf(path, strlen(dir) + strlen(base) + 1,
data/certmonger-0.79.13/src/prefs.c:48: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).
			snprintf(path, strlen(dir) + strlen(base) + 1,
data/certmonger-0.79.13/src/prefs.c:185:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			*config = malloc(strlen(confttls) * sizeof((*config)[0]));
data/certmonger-0.79.13/src/scep.c:177:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (((size_t)(q - p)) == strlen(capability)) {
data/certmonger-0.79.13/src/scep.c:346:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IRWXG | S_IRWXO);
data/certmonger-0.79.13/src/scep.c:379:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((racert == NULL) || (strlen(racert) == 0)) {
data/certmonger-0.79.13/src/scep.c:384: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).
			if ((message == NULL) || (strlen(message) == 0)) {
data/certmonger-0.79.13/src/scep.c:387:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if ((message == NULL) || (strlen(message) == 0)) {
data/certmonger-0.79.13/src/scep.c:402:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((racert == NULL) || (strlen(racert) == 0)) {
data/certmonger-0.79.13/src/scep.c:407: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).
			if ((message == NULL) || (strlen(message) == 0)) {
data/certmonger-0.79.13/src/scep.c:410:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if ((message == NULL) || (strlen(message) == 0)) {
data/certmonger-0.79.13/src/scep.c:434:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((rekey_message != NULL) && (strlen(rekey_message) != 0)) {
data/certmonger-0.79.13/src/scep.c:464:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((message != NULL) && (strlen(message) != 0)) {
data/certmonger-0.79.13/src/scep.c:557:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((tmp2 == NULL) || (strlen(tmp2) == 0)) {
data/certmonger-0.79.13/src/scep.c:583:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((tmp2 == NULL) || (strlen(tmp2) == 0)) {
data/certmonger-0.79.13/src/scep.c:731:25:  [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).
			lengths[n_buffers] = strlen(racert);
data/certmonger-0.79.13/src/scep.c:749:25:  [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).
			lengths[n_buffers] = strlen(cacert);
data/certmonger-0.79.13/src/scep.c:942: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).
					    strlen(certs), NULL) == 0)) {
data/certmonger-0.79.13/src/scepgen-o.c:105: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).
		    (strlen(pin) > 0) &&
data/certmonger-0.79.13/src/scepgen-o.c:127: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).
	if ((pem != NULL) && (strlen(pem) > 0)) {
data/certmonger-0.79.13/src/scepgen-o.c:155: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).
		if ((this->cm_cert != NULL) && (strlen(this->cm_cert) > 0)) {
data/certmonger-0.79.13/src/scepgen-o.c:222:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ASN1_STRING_set(t, tx, strlen(tx));
data/certmonger-0.79.13/src/scepgen-o.c:232: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).
		ASN1_STRING_set(m, msgtype, strlen(msgtype));
data/certmonger-0.79.13/src/scepgen-o.c:242: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).
		ASN1_STRING_set(p, pkistatus, strlen(pkistatus));
data/certmonger-0.79.13/src/scepgen-o.c:252:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ASN1_STRING_set(f, failinfo, strlen(failinfo));
data/certmonger-0.79.13/src/scepgen-o.c:742:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/srvloc.c:177:25:  [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 ((name == NULL) || (strlen(name) == 0) ||
data/certmonger-0.79.13/src/srvloc.c:178:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (udomain == NULL) || (strlen(udomain) == 0)) {
data/certmonger-0.79.13/src/store-files.c:423: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(entry->name);
data/certmonger-0.79.13/src/store-files.c:429:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p, p + len + 1, strlen(p + len));
data/certmonger-0.79.13/src/store-files.c:460: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(filename);
data/certmonger-0.79.13/src/store-files.c:462: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).
		ilen = strlen(ignore[i]);
data/certmonger-0.79.13/src/store-files.c:484: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).
		used += strlen(ret + used);
data/certmonger-0.79.13/src/store-files.c:584:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((s != NULL) && (strlen(s) == 0)) {
data/certmonger-0.79.13/src/store-files.c:596:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((p == NULL) || (strlen(p) == 0)) {
data/certmonger-0.79.13/src/store-files.c:602:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = talloc_zero_array(parent, char *, strlen(p) + 2);
data/certmonger-0.79.13/src/store-files.c:613: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).
					strlen(p + j));
data/certmonger-0.79.13/src/store-files.c:667: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).
					strlen(nc->cm_nickname + j));
data/certmonger-0.79.13/src/store-files.c:984: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(p) > 0) {
data/certmonger-0.79.13/src/store-files.c:1058: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(p) > 0) {
data/certmonger-0.79.13/src/store-files.c:1954:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/store-files.c:1962:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/store-files.c:2196: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(path) >= sizeof(dir)) {
data/certmonger-0.79.13/src/store-gen.c:271:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((s != NULL) && (strlen(s) > 0)) {
data/certmonger-0.79.13/src/store-gen.c:327: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(timestamp) < 12) {
data/certmonger-0.79.13/src/store-gen.c:331: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(timestamp) == 14) || (strlen(timestamp) == 15)){
data/certmonger-0.79.13/src/store-gen.c:331: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).
	if ((strlen(timestamp) == 14) || (strlen(timestamp) == 15)){
data/certmonger-0.79.13/src/store-gen.c:337: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(timestamp) == 12) || (strlen(timestamp) == 13)) {
data/certmonger-0.79.13/src/store-gen.c:337:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(timestamp) == 12) || (strlen(timestamp) == 13)) {
data/certmonger-0.79.13/src/store-gen.c:393:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		timestamp = malloc(24 + strlen(tm.tm_zone));
data/certmonger-0.79.13/src/store-gen.c:427: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).
	if ((old_serial == NULL) || (strlen(old_serial) < 2)) {
data/certmonger-0.79.13/src/store-gen.c:431: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(tmp);
data/certmonger-0.79.13/src/store-gen.c:494: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).
		length = strlen((const char *) serial);
data/certmonger-0.79.13/src/store-gen.c:513: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).
	length = strlen(serial);
data/certmonger-0.79.13/src/store-gen.c:581:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(path);
data/certmonger-0.79.13/src/store-gen.c:600:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				memmove(p, p + 1, strlen(p + 1) + 1);
data/certmonger-0.79.13/src/store-gen.c:606:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				memmove(p, p + 2, strlen(p + 2) + 1);
data/certmonger-0.79.13/src/store-gen.c:617: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).
					memmove(q, p + 3, strlen(p + 3) + 1);
data/certmonger-0.79.13/src/store-gen.c:633:43:  [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 ((*dest == NULL) && (src != NULL) && (strlen(src) > 0)) {
data/certmonger-0.79.13/src/store-gen.c:685: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).
		space = strlen(s) * 4;
data/certmonger-0.79.13/src/store-gen.c:693: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).
		inleft = strlen(s);
data/certmonger-0.79.13/src/store-gen.c:708: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).
		u16 = malloc((strlen(s) + 1) * 2);
data/certmonger-0.79.13/src/store-gen.c:765: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).
		length = strlen((const char *) buf);
data/certmonger-0.79.13/src/store-gen.c:821: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).
		insize = strlen(serial);
data/certmonger-0.79.13/src/store-gen.c:883: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).
		size = strlen(serial);
data/certmonger-0.79.13/src/store-gen.c:904: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).
	length = strlen(s) / 2;
data/certmonger-0.79.13/src/submit-d.c:57:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(value);
data/certmonger-0.79.13/src/submit-d.c:109: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).
		i = strlen(content);
data/certmonger-0.79.13/src/submit-d.c:189:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	doc = xmlParseMemory(xml, strlen(xml));
data/certmonger-0.79.13/src/submit-d.c:244:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	doc = xmlParseMemory(xml, strlen(xml));
data/certmonger-0.79.13/src/submit-d.c:274:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				i = strlen(content) - 1;
data/certmonger-0.79.13/src/submit-d.c:315: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).
		i = strlen(content) - 1;
data/certmonger-0.79.13/src/submit-d.c:361:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((v == NULL) || (strlen(v) == 0)) {
data/certmonger-0.79.13/src/submit-d.c:404:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	doc = xmlParseMemory(xml, strlen(xml));
data/certmonger-0.79.13/src/submit-d.c:478:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((*cert != NULL) && (strlen(*cert) > 0)) {
data/certmonger-0.79.13/src/submit-e.c:134:25:  [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 ((msg != NULL) && (strlen(msg) > 0)) {
data/certmonger-0.79.13/src/submit-e.c:191: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).
					if (strcspn(msg, "\n") >= (strlen(msg) - 2)) {
data/certmonger-0.79.13/src/submit-e.c:792: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).
		    (strlen(entry->cm_key_next_pubkey_info) > 0)) {
data/certmonger-0.79.13/src/submit-e.c:839:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((var == NULL) || (val == NULL) || (strlen(val) == 0)) {
data/certmonger-0.79.13/src/submit-e.c:1016:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					nread = read(errorfds[0], &u, 1);
data/certmonger-0.79.13/src/submit-e.c:1065:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_ca_cookie) > 0)) {
data/certmonger-0.79.13/src/submit-e.c:1070: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).
		    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/submit-h.c:178:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((ctx->args != NULL) && (strlen(ctx->args) > 0)) {
data/certmonger-0.79.13/src/submit-h.c:388:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							if (read(fd, sslpass, st.st_size) != -1) {
data/certmonger-0.79.13/src/submit-n.c:389: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).
		    (strlen(args->entry->cm_key_token) > 0) &&
data/certmonger-0.79.13/src/submit-o.c:245: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).
				seriall = strlen(serial) / 2;
data/certmonger-0.79.13/src/submit-o.c:267: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).
					basicl = strlen(CM_BASIC_CONSTRAINT_NOT_CA) / 2;
data/certmonger-0.79.13/src/submit-o.c:331:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(args->entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/submit-sn.c:85:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/submit-sn.c:187: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).
		serial_length = strlen(serial) / 2;
data/certmonger-0.79.13/src/submit-sn.c:279: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).
		basic_length = strlen(CM_BASIC_CONSTRAINT_NOT_CA) / 2;
data/certmonger-0.79.13/src/submit-sn.c:490:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/submit-so.c:81:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/submit-so.c:284: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).
		    (strlen(entry->cm_key_next_marker) > 0)) {
data/certmonger-0.79.13/src/submit-u.c:52: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(src);
data/certmonger-0.79.13/src/submit-u.c:85:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			p = malloc(strlen(csr) + sizeof(buf));
data/certmonger-0.79.13/src/submit-u.c:104:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int length = strlen(csr);
data/certmonger-0.79.13/src/submit-u.c:137: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).
			memmove(p, q, strlen(q) + 1);
data/certmonger-0.79.13/src/submit-u.c:182:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = malloc(strlen(p) + 1);
data/certmonger-0.79.13/src/submit-u.c:214:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen("-----BEGIN -----\r\n"
data/certmonger-0.79.13/src/submit-u.c:216: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).
		   strlen(what) * 2 +
data/certmonger-0.79.13/src/submit-u.c:217: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).
		   strlen(tmp) +
data/certmonger-0.79.13/src/submit-u.c:218: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).
		   howmany(strlen(tmp), width) * 2;
data/certmonger-0.79.13/src/submit-u.c:225: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).
		while (strlen(q) > width) {
data/certmonger-0.79.13/src/submit-u.c:231: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(q) > 0) {
data/certmonger-0.79.13/src/submit-u.c:259: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).
	return strlen(princ->realm);
data/certmonger-0.79.13/src/submit-u.c:270:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *ret = malloc(strlen(plain) * 3 + 1);
data/certmonger-0.79.13/src/submit-u.c:333: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(deltas) == 0) {
data/certmonger-0.79.13/src/submit-x.c:196: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(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "/%.*s",
data/certmonger-0.79.13/src/submit-x.c:196:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "/%.*s",
data/certmonger-0.79.13/src/submit-x.c:199: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(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "@%.*s",
data/certmonger-0.79.13/src/submit-x.c:199:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "@%.*s",
data/certmonger-0.79.13/src/submit-x.c:333:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(uid) > 0) && (strlen(pwd) > 0)) {
data/certmonger-0.79.13/src/submit-x.c:333:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(uid) > 0) && (strlen(pwd) > 0)) {
data/certmonger-0.79.13/src/submit-x.c:755: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(tmp) == length) {
data/certmonger-0.79.13/src/submit-x.c:873:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p, p + 4, strlen(p + 4) + 1);
data/certmonger-0.79.13/src/submit-x.c:884:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(csr, p, strlen(p) + 1);
data/certmonger-0.79.13/src/submit-x.c:891:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p, p + 1, strlen(p));
data/certmonger-0.79.13/src/submit-x.c:894:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p, p + 1, strlen(p));
data/certmonger-0.79.13/src/submit.c:186: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).
		l += i ? strlen(sep) + strlen(s[i]) : strlen(s[i]);
data/certmonger-0.79.13/src/submit.c:186:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l += i ? strlen(sep) + strlen(s[i]) : strlen(s[i]);
data/certmonger-0.79.13/src/submit.c:186:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l += i ? strlen(sep) + strlen(s[i]) : strlen(s[i]);
data/certmonger-0.79.13/src/subproc.c:68:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	size_t equal;
data/certmonger-0.79.13/src/subproc.c:70: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("DBUS_SESSION_BUS_ADDRESS") == equal) &&
data/certmonger-0.79.13/src/subproc.c:70:45:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ((strlen("DBUS_SESSION_BUS_ADDRESS") == equal) &&
data/certmonger-0.79.13/src/subproc.c:71:46:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	    (strncmp(p, "DBUS_SESSION_BUS_ADDRESS", equal) == 0)) {
data/certmonger-0.79.13/src/subproc.c:72:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return equal;
data/certmonger-0.79.13/src/subproc.c:74: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(CERTMONGER_PVT_ADDRESS_ENV) == equal) &&
data/certmonger-0.79.13/src/subproc.c:74:45:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ((strlen(CERTMONGER_PVT_ADDRESS_ENV) == equal) &&
data/certmonger-0.79.13/src/subproc.c:75:46:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	    (strncmp(p, CERTMONGER_PVT_ADDRESS_ENV, equal) == 0)) {
data/certmonger-0.79.13/src/subproc.c:76:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return equal;
data/certmonger-0.79.13/src/subproc.c:78: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("LANG") == equal) && (strncmp(p, "LANG", equal) == 0)) {
data/certmonger-0.79.13/src/subproc.c:78:25:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ((strlen("LANG") == equal) && (strncmp(p, "LANG", equal) == 0)) {
data/certmonger-0.79.13/src/subproc.c:78:55:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ((strlen("LANG") == equal) && (strncmp(p, "LANG", equal) == 0)) {
data/certmonger-0.79.13/src/subproc.c:79:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return equal;
data/certmonger-0.79.13/src/subproc.c:81:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ((equal > 4) &&
data/certmonger-0.79.13/src/subproc.c:83:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return equal;
data/certmonger-0.79.13/src/subproc.c:85:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ((equal > 6) &&
data/certmonger-0.79.13/src/subproc.c:88:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return equal;
data/certmonger-0.79.13/src/subproc.c:282:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(state->fd, state->msg + state->count, remainder);
data/certmonger-0.79.13/src/subproc.c:315: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).
	buffersize = strlen(cmdline) * 3;
data/certmonger-0.79.13/src/tdbus.c:160: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(flags) > 0) {
data/certmonger-0.79.13/src/tdbus.c:161:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(flags, "-");
data/certmonger-0.79.13/src/tdbus.c:191: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(flags) > 0) {
data/certmonger-0.79.13/src/tdbus.c:192: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(flags, "-");
data/certmonger-0.79.13/src/tdbus.c:265: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(flags) > 0) {
data/certmonger-0.79.13/src/tdbus.c:266: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(flags, "-");
data/certmonger-0.79.13/src/tdbush.c:63: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).
		initial = strlen(CM_DBUS_REQUEST_PATH);
data/certmonger-0.79.13/src/tdbush.c:85: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).
		initial = strlen(CM_DBUS_CA_PATH);
data/certmonger-0.79.13/src/tdbush.c:469:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(param->value.s) == 0)) {
data/certmonger-0.79.13/src/tdbush.c:483:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(param->value.s) == 0)) {
data/certmonger-0.79.13/src/tdbush.c:1577: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).
		    && strlen(param->value.s) > 0
data/certmonger-0.79.13/src/tdbush.c:1596:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(param->value.s) != 0)) {
data/certmonger-0.79.13/src/tdbush.c:1607:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(param->value.s) != 0)) {
data/certmonger-0.79.13/src/tdbush.c:2669: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).
	if ((eku != NULL) && (strlen(eku) > 0)) {
data/certmonger-0.79.13/src/tdbush.c:2670:43:  [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).
		ret = talloc_array_ptrtype(parent, ret, strlen(eku) + 1);
data/certmonger-0.79.13/src/tdbush.c:3063: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).
		    (strlen(entry->cm_ca_nickname) > 0)) {
data/certmonger-0.79.13/src/tdbush.c:3067: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).
			    (strlen(ca->cm_busname) > 0)) {
data/certmonger-0.79.13/src/tdbush.c:3099: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).
		    (strlen(entry->cm_ca_error) > 0)) {
data/certmonger-0.79.13/src/tdbush.c:3369: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).
				    (strlen(param->value.s) != 0) &&
data/certmonger-0.79.13/src/tdbush.c:3508: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).
				    && strlen(param->value.s) > 0
data/certmonger-0.79.13/src/tdbush.c:3540: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).
				    (strlen(param->value.s) != 0) &&
data/certmonger-0.79.13/src/tdbush.c:4941:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p = CM_DBUS_BASE_PATH + strlen(path);
data/certmonger-0.79.13/src/tdbush.c:4949: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).
		p = CM_DBUS_REQUEST_PATH + strlen(path);
data/certmonger-0.79.13/src/tdbush.c:4953:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p = CM_DBUS_CA_PATH + strlen(path);
data/certmonger-0.79.13/src/tdbush.c:4962:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p = CM_DBUS_CA_PATH + strlen(path);
data/certmonger-0.79.13/src/tdbush.c:4985: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).
		p = CM_DBUS_REQUEST_PATH + strlen(path);
data/certmonger-0.79.13/src/tdbush.c:5258: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).
		    (strlen(interface) > 0) &&
data/certmonger-0.79.13/src/tdbush.c:5387:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((value.s != NULL) && (strlen(value.s) > 0)) {
data/certmonger-0.79.13/src/tdbush.c:5507: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).
		    (strlen(interface) > 0) &&
data/certmonger-0.79.13/src/tdbush.c:5901: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).
		    (strlen(interface) > 0) &&
data/certmonger-0.79.13/src/tdbush.c:6002: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).
					    (strlen(dict[n].value.s) == 0)) {
data/certmonger-0.79.13/src/tdbush.c:6136:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if ((p == NULL) || (strlen(p) == 0)) {
data/certmonger-0.79.13/src/tdbush.c:7908:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int basepathlen = strlen(CM_DBUS_BASE_PATH);
data/certmonger-0.79.13/src/tdbush.c:7909: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).
	int capathlen = strlen(CM_DBUS_CA_PATH);
data/certmonger-0.79.13/src/tdbush.c:7910: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).
	int reqpathlen = strlen(CM_DBUS_REQUEST_PATH);
data/certmonger-0.79.13/src/tdbush.c:7911:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int pathlen = strlen(path);
data/certmonger-0.79.13/src/util-m.c:67: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(hex) > 0) {
data/certmonger-0.79.13/src/util-n.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(buf) > 0) {
data/certmonger-0.79.13/src/util-n.c:116: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(prefix) + strlen(marker) + sizeof("%s (candidate %s)");
data/certmonger-0.79.13/src/util-n.c:116:25:  [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(prefix) + strlen(marker) + sizeof("%s (candidate %s)");
data/certmonger-0.79.13/src/util-n.c:130: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(prefix) + strlen(serial) + sizeof("%s (serial %s)");
data/certmonger-0.79.13/src/util-n.c:130:25:  [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(prefix) + strlen(serial) + sizeof("%s (serial %s)");
data/certmonger-0.79.13/src/util-n.c:153:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pathname = malloc(strlen(dbdir) + strlen(filename) + 2);
data/certmonger-0.79.13/src/util-n.c:153: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).
	pathname = malloc(strlen(dbdir) + strlen(filename) + 2);
data/certmonger-0.79.13/src/util-n.c:184: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(group) == 0) {
data/certmonger-0.79.13/src/util-o.c:64: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(prefix) + strlen(marker) + sizeof("%s.%s.key");
data/certmonger-0.79.13/src/util-o.c:64:25:  [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(prefix) + strlen(marker) + sizeof("%s.%s.key");
data/certmonger-0.79.13/src/util-o.c:78: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(prefix) + strlen(serial) + sizeof("%s.%s.key");
data/certmonger-0.79.13/src/util-o.c:78:25:  [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(prefix) + strlen(serial) + sizeof("%s.%s.key");
data/certmonger-0.79.13/src/util-o.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).
			if (strlen(group) == 0) {
data/certmonger-0.79.13/src/util.c:80:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        res = read(fd, dest, left);
data/certmonger-0.79.13/tests/tools/addcinfo.c:75:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
data/certmonger-0.79.13/tests/tools/base2pem.c:70: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).
			q = malloc(strlen(p) + strlen(buf) + 1);
data/certmonger-0.79.13/tests/tools/base2pem.c:70:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			q = malloc(strlen(p) + strlen(buf) + 1);
data/certmonger-0.79.13/tests/tools/base64.c:67:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((l = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
data/certmonger-0.79.13/tests/tools/checksig.c:67:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
data/certmonger-0.79.13/tests/tools/citerate.c:132:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((argc > 6) && (strlen(argv[6]) > 0)) {
data/certmonger-0.79.13/tests/tools/citerate.c:134: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(continue_states) == 0) {
data/certmonger-0.79.13/tests/tools/csrgen.c:89: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).
			while (strlen(entry->cm_csr) > 0) {
data/certmonger-0.79.13/tests/tools/csrgen.c:90:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				i = strlen(entry->cm_csr) - 1;
data/certmonger-0.79.13/tests/tools/fromfile.c:43: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).
		else if (cert[strlen(cert) - 1] != '\n') {
data/certmonger-0.79.13/tests/tools/iterate.c:134:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((argc > 4) && (strlen(argv[4]) > 0)) {
data/certmonger-0.79.13/tests/tools/iterate.c:136: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(continue_states) == 0) {
data/certmonger-0.79.13/tests/tools/json.c:87:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fd, e + r, st.st_size - r);
data/certmonger-0.79.13/tests/tools/json.c:136:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		st.st_size = strlen(e2);
data/certmonger-0.79.13/tests/tools/payload.c:53:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
data/certmonger-0.79.13/tests/tools/pem2base.c:40: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).
			q = malloc(strlen(p) + strlen(buf) + 1);
data/certmonger-0.79.13/tests/tools/pem2base.c:40:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			q = malloc(strlen(p) + strlen(buf) + 1);
data/certmonger-0.79.13/tests/tools/pk7decrypt.c:78:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
data/certmonger-0.79.13/tests/tools/pk7env.c:72:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			j = read(fd, p[0] + len, st.st_size - len);
data/certmonger-0.79.13/tests/tools/pk7env.c:105:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			j = read(fd, p[1] + len, st.st_size - len);
data/certmonger-0.79.13/tests/tools/pk7env.c:117:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strncmp(p[1], CSR1, strlen(CSR1)) == 0) ||
data/certmonger-0.79.13/tests/tools/pk7env.c:118:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (strncmp(p[1], CSR2, strlen(CSR2)) == 0)) {
data/certmonger-0.79.13/tests/tools/pk7env.c:152:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			j = read(fd, p[2] + len, st.st_size - len);
data/certmonger-0.79.13/tests/tools/pk7env.c:163:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strncmp(p[1], CERT, strlen(CERT)) == 0) &&
data/certmonger-0.79.13/tests/tools/pk7env.c:164:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (strncmp(p[2], CERT, strlen(CERT)) == 0)) {
data/certmonger-0.79.13/tests/tools/pk7parse.c:70:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			j = read(fd, p + len, st.st_size - len);
data/certmonger-0.79.13/tests/tools/pk7verify.c:89:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			j = read(fd, p + len, st.st_size - len);
data/certmonger-0.79.13/tests/tools/pk7verify.c:110:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((i = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
data/certmonger-0.79.13/tests/tools/submit.c:101: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).
			while (strlen(entry->cm_cert) > 0) {
data/certmonger-0.79.13/tests/tools/submit.c:102:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				i = strlen(entry->cm_cert) - 1;

ANALYSIS SUMMARY:

Hits = 836
Lines analyzed = 65888 in approximately 1.67 seconds (39420 lines/second)
Physical Source Lines of Code (SLOC) = 57619
Hits@level = [0] 1160 [1] 441 [2] 282 [3]  81 [4]  32 [5]   0
Hits@level+ = [0+] 1996 [1+] 836 [2+] 395 [3+] 113 [4+]  32 [5+]   0
Hits/KSLOC@level+ = [0+] 34.6414 [1+] 14.5091 [2+] 6.85538 [3+] 1.96116 [4+] 0.555372 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.