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/myproxy-6.2.6/safe_id_range_list.c
Examining data/myproxy-6.2.6/vomsclient.c
Examining data/myproxy-6.2.6/myproxy_ocsp_aia.h
Examining data/myproxy-6.2.6/port_getopt.h
Examining data/myproxy-6.2.6/myproxy_log.h
Examining data/myproxy-6.2.6/myproxy_sasl_client.h
Examining data/myproxy-6.2.6/certauth_resolveuser.h
Examining data/myproxy-6.2.6/myproxy_get_trustroots.c
Examining data/myproxy-6.2.6/vomsclient.h
Examining data/myproxy-6.2.6/myproxy_authorization.c
Examining data/myproxy-6.2.6/voms_utils.c
Examining data/myproxy-6.2.6/myproxy_read_pass.c
Examining data/myproxy-6.2.6/gsi_socket_priv.h
Examining data/myproxy-6.2.6/myproxy_delegation.c
Examining data/myproxy-6.2.6/myproxy_protocol.h
Examining data/myproxy-6.2.6/myproxy_server.h
Examining data/myproxy-6.2.6/safe_is_path_trusted.h
Examining data/myproxy-6.2.6/myproxy_server_config.c
Examining data/myproxy-6.2.6/myproxy_popen.c
Examining data/myproxy-6.2.6/accept_credmap.h
Examining data/myproxy-6.2.6/myproxy_constants.h
Examining data/myproxy-6.2.6/myproxy_store.c
Examining data/myproxy-6.2.6/auth_pam.h
Examining data/myproxy-6.2.6/gsi_socket_voms.c
Examining data/myproxy-6.2.6/plugin_common.h
Examining data/myproxy-6.2.6/myproxy_destroy.c
Examining data/myproxy-6.2.6/myproxy_ocsp_aia.c
Examining data/myproxy-6.2.6/myproxy_creds.c
Examining data/myproxy-6.2.6/safe_is_path_trusted.c
Examining data/myproxy-6.2.6/myproxy_extensions.c
Examining data/myproxy-6.2.6/myproxy_info.c
Examining data/myproxy-6.2.6/getopt_long.c
Examining data/myproxy-6.2.6/ssl_utils.c
Examining data/myproxy-6.2.6/myproxy_server.c
Examining data/myproxy-6.2.6/certauth_extensions.c
Examining data/myproxy-6.2.6/myproxy_creds.h
Examining data/myproxy-6.2.6/string_funcs.c
Examining data/myproxy-6.2.6/auth_pam.c
Examining data/myproxy-6.2.6/myproxy_cp.c
Examining data/myproxy-6.2.6/certauth_extensions.h
Examining data/myproxy-6.2.6/pidfile.c
Examining data/myproxy-6.2.6/myproxy_common.h
Examining data/myproxy-6.2.6/gsi_socket.h
Examining data/myproxy-6.2.6/voms_utils.h
Examining data/myproxy-6.2.6/gssapi.c
Examining data/myproxy-6.2.6/myproxy_get_delegation.c
Examining data/myproxy-6.2.6/myproxy_init.c
Examining data/myproxy-6.2.6/string_funcs.h
Examining data/myproxy-6.2.6/myproxy_extensions.h
Examining data/myproxy-6.2.6/verror.h
Examining data/myproxy-6.2.6/accept_credmap.c
Examining data/myproxy-6.2.6/safe_id_range_list.h
Examining data/myproxy-6.2.6/myproxy_arq.c
Examining data/myproxy-6.2.6/myproxy_read_pass.h
Examining data/myproxy-6.2.6/myproxy.c
Examining data/myproxy-6.2.6/vparse.c
Examining data/myproxy-6.2.6/certauth_resolveuser.c
Examining data/myproxy-6.2.6/myproxy_delegation.h
Examining data/myproxy-6.2.6/myproxy_authorization.h
Examining data/myproxy-6.2.6/ssl_utils.h
Examining data/myproxy-6.2.6/myproxy_sasl_server.c
Examining data/myproxy-6.2.6/verror.c
Examining data/myproxy-6.2.6/myproxy_ocsp.h
Examining data/myproxy-6.2.6/myproxy_popen.h
Examining data/myproxy-6.2.6/myproxy_get_credential.c
Examining data/myproxy-6.2.6/myproxy_acp.c
Examining data/myproxy-6.2.6/myproxy_sasl_server.h
Examining data/myproxy-6.2.6/plugin_common.c
Examining data/myproxy-6.2.6/myproxy_ocsp.c
Examining data/myproxy-6.2.6/vparse.h
Examining data/myproxy-6.2.6/myproxy_log.c
Examining data/myproxy-6.2.6/myproxy_alcf.c
Examining data/myproxy-6.2.6/gsi_socket.c
Examining data/myproxy-6.2.6/myproxy_sasl_client.c

FINAL RESULTS:

data/myproxy-6.2.6/safe_is_path_trusted.c:734:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	    readlink_len = readlink(path, link_path, link_path_len + 1);
data/myproxy-6.2.6/safe_is_path_trusted.c:1290:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	    readlink_len = readlink(path, link_path, link_path_len + 1);
data/myproxy-6.2.6/accept_credmap.c:105:13:  [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(server_context->accepted_credentials_mapapp, X_OK) < 0) {
data/myproxy-6.2.6/accept_credmap.c:124:13:  [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(server_context->accepted_credentials_mapfile, R_OK) < 0) {
data/myproxy-6.2.6/certauth_extensions.c:100:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat( buffer, key );
data/myproxy-6.2.6/certauth_extensions.c:105: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( buffer, value );
data/myproxy-6.2.6/certauth_extensions.c:305:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(serialfile, "%s/serial", sdir);
data/myproxy-6.2.6/certauth_extensions.c:442:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s/%s.pem", dir, serial);
data/myproxy-6.2.6/certauth_extensions.c:696:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(email, "email:%s@%s", client_request->username,
data/myproxy-6.2.6/certauth_resolveuser.c:275:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(searchfilter, "(%s=%s)", server_context->ca_ldap_uid_attribute,
data/myproxy-6.2.6/certauth_resolveuser.c:503:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(cached_username, username);
data/myproxy-6.2.6/certauth_resolveuser.c:504:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(cached_dn, userdn);
data/myproxy-6.2.6/getopt_long.c:253:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, illoptchar, optchar);
data/myproxy-6.2.6/getopt_long.c:265:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, recargchar, optchar);
data/myproxy-6.2.6/getopt_long.c:288:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(stderr, recargchar, optchar);
data/myproxy-6.2.6/getopt_long.c:364:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(stderr, ambig, (int)current_argv_len,
data/myproxy-6.2.6/getopt_long.c:374:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(stderr, noarg, (int)current_argv_len,
data/myproxy-6.2.6/getopt_long.c:406:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(stderr, recargstring, current_argv);
data/myproxy-6.2.6/getopt_long.c:420:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, illoptstring, current_argv);
data/myproxy-6.2.6/gssapi.c:268:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(saslerr, "%s: %s", errmsg, dlerr);
data/myproxy-6.2.6/gssapi.c:301: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(out, prefix);
data/myproxy-6.2.6/gssapi.c:329:2:  [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(out, msg.value);
data/myproxy-6.2.6/gssapi.c:374:2:  [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(out, msg.value);
data/myproxy-6.2.6/gssapi.c:723:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(name_token.value,"%s@%s", params->service, params->serverFQDN);
data/myproxy-6.2.6/gssapi.c:861: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(name_without_realm.value, name_token.value);
data/myproxy-6.2.6/gssapi.c:1208:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(keytab, R_OK) != 0) {
data/myproxy-6.2.6/gssapi.c:1338:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(name_token.value,"%s@%s", params->service, params->serverFQDN);
data/myproxy-6.2.6/myproxy.c:430:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(hostlist,tok);
data/myproxy-6.2.6/myproxy.c:528:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(cert_dir, X_OK) == 0) {
data/myproxy-6.2.6/myproxy.c:3245: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(data->server_data, str);
data/myproxy-6.2.6/myproxy_alcf.c:128:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(proxyfile, "%s.%u.%u", MYPROXY_DEFAULT_PROXY,
data/myproxy-6.2.6/myproxy_alcf.c:245:26:  [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).
		my_creds->retrievers = strcat(my_creds->retrievers,
data/myproxy-6.2.6/myproxy_alcf.c:262:34:  [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).
		my_creds->trusted_retrievers = strcat(my_creds->trusted_retrievers,
data/myproxy-6.2.6/myproxy_alcf.c:283:24:  [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).
		my_creds->renewers = strcat (my_creds->renewers,optarg);
data/myproxy-6.2.6/myproxy_alcf.c:333:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(my_creds->keyretrieve, optarg);
data/myproxy-6.2.6/myproxy_cp.c:99: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 (client_request->version, MYPROXY_VERSION);
data/myproxy-6.2.6/myproxy_creds.c:183:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(gl_storage_dir, "%s/var/myproxy", GL);
data/myproxy-6.2.6/myproxy_creds.c:2229:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s/tmp.XXXXXX", storage_dir);
data/myproxy-6.2.6/myproxy_delegation.c:55:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tmp_request.passphrase, client_request->passphrase);
data/myproxy-6.2.6/myproxy_destroy.c:87: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(client_request->version, MYPROXY_VERSION);
data/myproxy-6.2.6/myproxy_get_credential.c:179:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(certfile, F_OK) == 0) {
data/myproxy-6.2.6/myproxy_get_credential.c:184:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(keyfile, F_OK) == 0) {
data/myproxy-6.2.6/myproxy_get_delegation.c:502:9:  [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(command, (char *const *)argv);
data/myproxy-6.2.6/myproxy_info.c:88: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(client_request->version, MYPROXY_VERSION);
data/myproxy-6.2.6/myproxy_init.c:156: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(client_request->version, MYPROXY_VERSION);
data/myproxy-6.2.6/myproxy_init.c:191:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(proxyfile, "%s.%u.%u", MYPROXY_DEFAULT_PROXY,
data/myproxy-6.2.6/myproxy_init.c:406:25:  [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).
		request->retrievers = strcat (request->retrievers,optarg);
data/myproxy-6.2.6/myproxy_init.c:423:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat (request->trusted_retrievers,optarg);
data/myproxy-6.2.6/myproxy_init.c:440:23:  [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).
		request->renewers = strcat (request->renewers,optarg);
data/myproxy-6.2.6/myproxy_init.c:600:9:  [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(command, (char *const *)argv);
data/myproxy-6.2.6/myproxy_popen.c:13:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(path, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_popen.c:49: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(path, (char *const *)argv);
data/myproxy-6.2.6/myproxy_sasl_client.c:134: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((char *)(*psecret)->data, password);
data/myproxy-6.2.6/myproxy_sasl_client.c:235:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(prompt, "%s@%s's password: ", client_request->username, fqdn);
data/myproxy-6.2.6/myproxy_sasl_client.c:286: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(server_buffer, chosenmech);
data/myproxy-6.2.6/myproxy_server.c:745: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(error, msg);
data/myproxy-6.2.6/myproxy_server.c:746: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(error, client_creds->lockmsg);
data/myproxy-6.2.6/myproxy_server.c:981:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(context->config_file, optarg);   
data/myproxy-6.2.6/myproxy_server.c:1212:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(response->version, "%s", MYPROXY_VERSION);
data/myproxy-6.2.6/myproxy_server_config.c:978:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(context->passphrase_policy_pgm, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1025:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(context->certificate_issuer_program, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1035:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(context->certificate_issuer_cert, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1048:10:  [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(context->certificate_issuer_key, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1061:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->certificate_extfile, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1068:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->certificate_extapp, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1075:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->certificate_mapfile, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1082:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->certificate_mapapp, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1107:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->certificate_out_dir, W_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1135:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        access(context->certificate_request_checker, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1142:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        access(context->certificate_issuer_checker, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1150:13:  [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(context->accepted_credentials_mapfile, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1161:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->accepted_credentials_mapapp, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1177:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->proxy_extfile, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1184:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    access(context->proxy_extapp, X_OK) < 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1226:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(default_config_file, R_OK) == 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1245:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(conf, "%s%s", GL, default_config_file);
data/myproxy-6.2.6/myproxy_server_config.c:1246:10:  [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(conf, R_OK) < 0) {
data/myproxy-6.2.6/myproxy_store.c:142: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(client_request->version, MYPROXY_VERSION);
data/myproxy-6.2.6/myproxy_store.c:358:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(request->retrievers, optarg);
data/myproxy-6.2.6/myproxy_store.c:385:23:  [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).
		request->renewers = strcat(request->renewers, optarg);
data/myproxy-6.2.6/myproxy_store.c:407:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(request->trusted_retrievers, optarg);
data/myproxy-6.2.6/myproxy_store.c:422:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(request->keyretrieve, optarg);
data/myproxy-6.2.6/plugin_common.c:270: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((char *) *out, in);
data/myproxy-6.2.6/plugin_common.c:779: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 (*fulluser, useronly);
data/myproxy-6.2.6/plugin_common.c:781: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 (*fulluser, realm);
data/myproxy-6.2.6/string_funcs.c:70:2:  [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(*dest, src);
data/myproxy-6.2.6/string_funcs.c:96: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(destination, source);
data/myproxy-6.2.6/string_funcs.c:138:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	string_len = vsnprintf(buffer, buffer_len,
data/myproxy-6.2.6/string_funcs.c:753:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(envstr, "%s=%s", var, value);
data/myproxy-6.2.6/verror.c:92:2:  [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(new_string, string);
data/myproxy-6.2.6/verror.c:99: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(new_string, my_context.string);
data/myproxy-6.2.6/verror.c:108: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(new_string, my_context.string);
data/myproxy-6.2.6/verror.c:110:2:  [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(new_string, string);
data/myproxy-6.2.6/voms_utils.c:139: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(result, array->elements[0]);
data/myproxy-6.2.6/voms_utils.c:141:9:  [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(result, delim);
data/myproxy-6.2.6/voms_utils.c:142:9:  [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(result, array->elements[i]);
data/myproxy-6.2.6/accept_credmap.c:14: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.
    oldenv = (char*)getenv("GRIDMAP");
data/myproxy-6.2.6/getopt_long.c:66:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
__weak_alias(getopt_long,_getopt_long)
data/myproxy-6.2.6/getopt_long.c:73:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
data/myproxy-6.2.6/getopt_long.c:306:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(int nargc, char * const *nargv, const char *options,
data/myproxy-6.2.6/gssapi.c:1206:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    utils->getopt(utils->getopt_context, "GSSAPI", "keytab", &keytab, &rl);
data/myproxy-6.2.6/myproxy.c:116:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SOCKET_TIMEOUT")) {
data/myproxy-6.2.6/myproxy.c:117: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.
        timeoutStr = getenv("MYPROXY_SOCKET_TIMEOUT");
data/myproxy-6.2.6/myproxy.c:151:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((port_range = getenv("MYPROXY_TCP_PORT_RANGE")) ||
data/myproxy-6.2.6/myproxy.c:152:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        (port_range = getenv("GLOBUS_TCP_PORT_RANGE"))) {
data/myproxy-6.2.6/myproxy.c:781: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.
   compat = getenv("GLOBUS_GSSAPI_NAME_COMPATIBILITY");
data/myproxy-6.2.6/myproxy.c:814:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   server_dn = getenv("MYPROXY_SERVER_DN");
data/myproxy-6.2.6/myproxy_acp.c:71:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!(cred.username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_acp.c:122:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_alcf.c:149:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    if (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_alcf.c:191:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_arq.c:175:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_authorization.c:241:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   unsigned char random[CHALLENGE_SIZE];
data/myproxy-6.2.6/myproxy_authorization.c:247:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   if (RAND_bytes(random, sizeof(random)) == 0) {
data/myproxy-6.2.6/myproxy_authorization.c:247:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   if (RAND_bytes(random, sizeof(random)) == 0) {
data/myproxy-6.2.6/myproxy_authorization.c:261:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      int     dd = random[i] & 0x0f;
data/myproxy-6.2.6/myproxy_authorization.c:263:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      dd = random[i] >> 4;
data/myproxy-6.2.6/myproxy_cp.c:102:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    pshost = getenv ("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_cp.c:110:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_cp.c:111:30:  [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.
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_cp.c:171:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    if (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_cp.c:238:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_creds.c:164: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.
        GL = getenv("GLOBUS_LOCATION");
data/myproxy-6.2.6/myproxy_creds.c:262:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("MYPROXY_CREDS_MAX_NAMELEN")) {
data/myproxy-6.2.6/myproxy_creds.c:263:32:  [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.
            max_namelen = atoi(getenv("MYPROXY_CREDS_MAX_NAMELEN"));
data/myproxy-6.2.6/myproxy_delegation.c:12: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_delegation.c:19:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_delegation.c:20:30:  [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.
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_destroy.c:90: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_destroy.c:97:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_destroy.c:98:30:  [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.
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_destroy.c:137:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    if (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_destroy.c:207:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_get_credential.c:143: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_get_credential.c:150:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_get_credential.c:151:37:  [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.
        socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_get_credential.c:278:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    if (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_get_credential.c:384:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_get_delegation.c:189:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    if (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_get_delegation.c:260:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_get_delegation.c:372:25:  [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.
        voms_userconf = getenv("VOMS_USERCONF");
data/myproxy-6.2.6/myproxy_get_delegation.c:446:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((keybitsenv = getenv("MYPROXY_KEYBITS")) != NULL) {
data/myproxy-6.2.6/myproxy_get_trustroots.c:71: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_get_trustroots.c:76:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_get_trustroots.c:77:37:  [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.
        socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_get_trustroots.c:230:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_info.c:91: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_info.c:96:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_info.c:97:30:  [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.
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_info.c:135:30:  [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 (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_info.c:202:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_init.c:159: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_init.c:170:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_init.c:171:30:  [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.
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_init.c:176:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    x509_user_proxy = getenv("X509_USER_PROXY"); /* for create_local_proxy */
data/myproxy-6.2.6/myproxy_init.c:223:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    if (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_init.c:342:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_init.c:543:18:  [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.
    proxy_mode = getenv("GT_PROXY_MODE");
data/myproxy-6.2.6/myproxy_init.c:556:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((keybitsenv = getenv("MYPROXY_KEYBITS")) != NULL) {
data/myproxy-6.2.6/myproxy_log.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.
    if (getenv("GLOBUS_GSI_CRED_DEBUG_LEVEL") != NULL)
data/myproxy-6.2.6/myproxy_log.c:211:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	gsi_level = atoi(getenv("GLOBUS_GSI_CRED_DEBUG_LEVEL"));
data/myproxy-6.2.6/myproxy_sasl_client.c:218:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("SASL_PATH")) {
data/myproxy-6.2.6/myproxy_sasl_client.c:219:43:  [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.
        myproxy_debug("$SASL_PATH is %s", getenv("SASL_PATH"));
data/myproxy-6.2.6/myproxy_sasl_server.c:166:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("SASL_PATH")) {
data/myproxy-6.2.6/myproxy_sasl_server.c:167:36:  [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.
	myproxy_debug("$SASL_PATH is %s", getenv("SASL_PATH"));
data/myproxy-6.2.6/myproxy_server.c:940:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_server.c:941:30:  [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.
        attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_server.c:958:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((arg = getopt_long(argc, argv, short_options, 
data/myproxy-6.2.6/myproxy_server_config.c:1234: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.
	    GL = getenv("GLOBUS_LOCATION");
data/myproxy-6.2.6/myproxy_store.c:145: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.
    pshost = getenv("MYPROXY_SERVER");
data/myproxy-6.2.6/myproxy_store.c:151:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("MYPROXY_SERVER_PORT")) {
data/myproxy-6.2.6/myproxy_store.c:152:30:  [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.
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_store.c:209:30:  [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 (!(username = getenv("LOGNAME"))) {
data/myproxy-6.2.6/myproxy_store.c:284:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((arg = getopt_long(argc,
data/myproxy-6.2.6/port_getopt.h:76:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int, char * const *, const char *,
data/myproxy-6.2.6/ssl_utils.c:1381:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((keybitsenv = getenv("MYPROXY_KEYBITS")) != NULL) {
data/myproxy-6.2.6/ssl_utils.c:1401: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.
    GT_PROXY_MODE = getenv("GT_PROXY_MODE");
data/myproxy-6.2.6/ssl_utils.c:2339: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.
   tz = getenv("TZ");
data/myproxy-6.2.6/string_funcs.c:496:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("HOME"))
data/myproxy-6.2.6/string_funcs.c:498:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        home = getenv("HOME");
data/myproxy-6.2.6/string_funcs.c:540:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("X509_CERT_DIR"))
data/myproxy-6.2.6/string_funcs.c:542:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        path = strdup(getenv("X509_CERT_DIR"));
data/myproxy-6.2.6/string_funcs.c:647: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("X509_USER_CERT")) {
data/myproxy-6.2.6/string_funcs.c:648:25:  [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.
	    *certfile = strdup(getenv("X509_USER_CERT"));
data/myproxy-6.2.6/string_funcs.c:658: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("X509_USER_KEY")) {
data/myproxy-6.2.6/string_funcs.c:659:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    *keyfile = strdup(getenv("X509_USER_KEY"));
data/myproxy-6.2.6/string_funcs.c:677: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("X509_USER_CERT")) {
data/myproxy-6.2.6/string_funcs.c:678:25:  [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.
	    *certfile = strdup(getenv("X509_USER_CERT"));
data/myproxy-6.2.6/string_funcs.c:684: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("X509_USER_KEY")) {
data/myproxy-6.2.6/string_funcs.c:685:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    *keyfile = strdup(getenv("X509_USER_KEY"));
data/myproxy-6.2.6/string_funcs.c:743: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.
    if (!override && getenv(var))
data/myproxy-6.2.6/vomsclient.c:662:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    old_ucert = getenv("X509_USER_CERT");
data/myproxy-6.2.6/vomsclient.c:663:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    old_ukey  = getenv("X509_USER_KEY");
data/myproxy-6.2.6/accept_credmap.c:58: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.
        char buf[100];
data/myproxy-6.2.6/auth_pam.c:205: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 result[200];
data/myproxy-6.2.6/certauth_extensions.c:103:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat( buffer, "NULL" );
data/myproxy-6.2.6/certauth_extensions.c:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUF_SIZE];
data/myproxy-6.2.6/certauth_extensions.c:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char intbuf[128];
data/myproxy-6.2.6/certauth_extensions.c:152: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( intbuf, "%d", client_request->proxy_lifetime );
data/myproxy-6.2.6/certauth_extensions.c:165: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( intbuf, "%d", server_context->max_cert_lifetime );
data/myproxy-6.2.6/certauth_extensions.c:276:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/myproxy-6.2.6/certauth_extensions.c:310: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( serialfile, O_RDWR|O_CREAT, 0600 );
data/myproxy-6.2.6/certauth_extensions.c:443:15:  [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).
    if ((fd = open(path, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
data/myproxy-6.2.6/certauth_extensions.c:557:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  issuer_cert_file = fopen(server_context->certificate_issuer_cert, "r");
data/myproxy-6.2.6/certauth_extensions.c:647:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char buf[100];
data/myproxy-6.2.6/certauth_extensions.c:706:20:  [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).
          lockfd = open(server_context->certificate_openssl_engine_lockfile,
data/myproxy-6.2.6/certauth_extensions.c:732:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      inkey = fopen( server_context->certificate_issuer_key, "r");
data/myproxy-6.2.6/certauth_extensions.c:993: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 buffer[BUF_SIZE];
data/myproxy-6.2.6/certauth_extensions.c:1069:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char md[SHA_DIGEST_LENGTH];
data/myproxy-6.2.6/certauth_resolveuser.c:68:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[100];
data/myproxy-6.2.6/certauth_resolveuser.c:466:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char cached_username[USERNAME_BUFFER_SIZE] = "";
data/myproxy-6.2.6/certauth_resolveuser.c:467:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char cached_dn[DN_BUFFER_SIZE] = "";
data/myproxy-6.2.6/getopt_long.c:157:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char **) nargv)[pos] = nargv[cstart];
data/myproxy-6.2.6/getopt_long.c:159:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char **)nargv)[cstart] = swap;
data/myproxy-6.2.6/gsi_socket.c:179: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 header[5];
data/myproxy-6.2.6/gsi_socket.c:234: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(bufferp, header, sizeof(header));
data/myproxy-6.2.6/gsi_socket.c:766:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char error_string[1050];
data/myproxy-6.2.6/gsi_socket.c:980: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 host			[NI_MAXHOST];
data/myproxy-6.2.6/gsi_socket.c:1019: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.
        char buf[MAXHOSTNAMELEN];
data/myproxy-6.2.6/gsi_socket.c:1248: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(buffer, old_buffer, token_len);
data/myproxy-6.2.6/gsi_socket.c:1250: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(saved_buffer, old_buffer+token_len, saved_buffer_len);
data/myproxy-6.2.6/gsi_socket.c:1583:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(filename);
data/myproxy-6.2.6/gsi_socket.c:1694:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(filename);
data/myproxy-6.2.6/gssapi.c:346:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(out, " (");
data/myproxy-6.2.6/gssapi.c:463: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(text->encode_buf, &len, 4);
data/myproxy-6.2.6/gssapi.c:464: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(text->encode_buf + 4, output_token->value, output_token->length);
data/myproxy-6.2.6/gssapi.c:546: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(*output, output_token->value, *outputlen);
data/myproxy-6.2.6/gssapi.c:800: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(text->out_buf, output_token->value, *serveroutlen);
data/myproxy-6.2.6/gssapi.c:819: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 sasldata[4];
data/myproxy-6.2.6/gssapi.c:1005: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(text->out_buf, output_token->value, *serveroutlen);
data/myproxy-6.2.6/gssapi.c:1192: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 keytab_path[1024];
data/myproxy-6.2.6/gssapi.c:1417: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(text->out_buf, output_token->value, *clientoutlen);
data/myproxy-6.2.6/gssapi.c:1595: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((char *)input_token->value+4,oparams->user,alen);
data/myproxy-6.2.6/gssapi.c:1643: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(text->out_buf, output_token->value, *clientoutlen);
data/myproxy-6.2.6/myproxy.c:118: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).
        timeout = atoi(timeoutStr);
data/myproxy-6.2.6/myproxy.c:325: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 service[6];
data/myproxy-6.2.6/myproxy.c:349: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 straddr[INET6_ADDRSTRLEN];
data/myproxy-6.2.6/myproxy.c:506: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[BUFSIZ], buf2[BUFSIZ];
data/myproxy-6.2.6/myproxy.c:563: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 chport[6];
data/myproxy-6.2.6/myproxy.c:579: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.
        char path[MAXPATHLEN], tmppath[MAXPATHLEN];
data/myproxy-6.2.6/myproxy.c:794:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char error_string[1024];
data/myproxy-6.2.6/myproxy.c:795:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char peer_name[1024] = "";
data/myproxy-6.2.6/myproxy.c:979: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 error_string[1024];
data/myproxy-6.2.6/myproxy.c:1023:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[1024];
data/myproxy-6.2.6/myproxy.c:1045:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[1024];
data/myproxy-6.2.6/myproxy.c:1064:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[1024];
data/myproxy-6.2.6/myproxy.c:1115: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(data, buf, len);
data/myproxy-6.2.6/myproxy.c:1124: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 lifetime_string[64];
data/myproxy-6.2.6/myproxy.c:1313: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(new_data, data, datalen);
data/myproxy-6.2.6/myproxy.c:1682: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(data, buf, len);
data/myproxy-6.2.6/myproxy.c:1735: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 date[40];
data/myproxy-6.2.6/myproxy.c:1763:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(date, "%lu",  cred->start_time);
data/myproxy-6.2.6/myproxy.c:1776:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(date, "%lu", cred->end_time);
data/myproxy-6.2.6/myproxy.c:2005: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(new_data, data, datalen);
data/myproxy-6.2.6/myproxy.c:2451: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 error_string[1024];
data/myproxy-6.2.6/myproxy.c:2470: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 error_string[1024];
data/myproxy-6.2.6/myproxy.c:2483: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(data, buffer, datalen);
data/myproxy-6.2.6/myproxy.c:2488: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(data, buffer, readlen);
data/myproxy-6.2.6/myproxy.c:2497: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 error_string[1024];
data/myproxy-6.2.6/myproxy.c:2640: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(buffer + sizeof(int), d->client_data, d->client_data_len);
data/myproxy-6.2.6/myproxy.c:3061: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 buffer[20];
data/myproxy-6.2.6/myproxy.c:3065:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer, "%d", value);
data/myproxy-6.2.6/myproxy.c:3318:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[1024];
data/myproxy-6.2.6/myproxy.c:3344:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[1024];
data/myproxy-6.2.6/myproxy.c:3369:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[1024];
data/myproxy-6.2.6/myproxy_acp.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char passphrase[MAX_PASS_LEN+1] = {0};
data/myproxy-6.2.6/myproxy_acp.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char new_passphrase[MAX_PASS_LEN+1] = {0};
data/myproxy-6.2.6/myproxy_alcf.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char proxyfile[64] = "";
data/myproxy-6.2.6/myproxy_alcf.c:212:46:  [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).
	    my_creds->lifetime = SECONDS_PER_HOUR * atoi(optarg);
data/myproxy-6.2.6/myproxy_alcf.c:244: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 (my_creds->retrievers, "*/CN=");
data/myproxy-6.2.6/myproxy_alcf.c:261: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 (my_creds->trusted_retrievers, "*/CN=");
data/myproxy-6.2.6/myproxy_alcf.c:282: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 (my_creds->renewers, "*/CN=");
data/myproxy-6.2.6/myproxy_alcf.c:331: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(my_creds->keyretrieve, "*/CN=");
data/myproxy-6.2.6/myproxy_alcf.c:394:15:  [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).
    if ((fd = open(proxyfile, O_CREAT | O_EXCL | O_WRONLY,
data/myproxy-6.2.6/myproxy_arq.c:199:42:  [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).
	    cred.end_time = (SECONDS_PER_HOUR * atoi(optarg)) + time(0);
data/myproxy-6.2.6/myproxy_arq.c:205:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    cred.start_time = (SECONDS_PER_HOUR * atoi(optarg)) + time(0);
data/myproxy-6.2.6/myproxy_authorization.c:75: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(tmp, extra_data, extra_data_len);
data/myproxy-6.2.6/myproxy_authorization.c:241: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.
   unsigned char random[CHALLENGE_SIZE];
data/myproxy-6.2.6/myproxy_authorization.c:320: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, signature, signature_len);
data/myproxy-6.2.6/myproxy_authorization.c:323: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, creds_buf, creds_buf_len);
data/myproxy-6.2.6/myproxy_authorization.c:479: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(tmp, extra_data, extra_data_len);
data/myproxy-6.2.6/myproxy_authorization.c:607: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(d->client_data, buffer, bufferlen);
data/myproxy-6.2.6/myproxy_cp.c:111: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).
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_cp.c:262: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_creds.c:263:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            max_namelen = atoi(getenv("MYPROXY_CREDS_MAX_NAMELEN"));
data/myproxy-6.2.6/myproxy_creds.c:287:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char   d[16];
data/myproxy-6.2.6/myproxy_creds.c:289: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 mbuf[33];
data/myproxy-6.2.6/myproxy_creds.c:296: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(digest,d,sizeof(d));
data/myproxy-6.2.6/myproxy_creds.c:481:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    data_fd = mkstemp(tmpfilename);
data/myproxy-6.2.6/myproxy_creds.c:585:19:  [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).
    data_stream = fopen(datafile_path, data_stream_mode);
data/myproxy-6.2.6/myproxy_creds.c:815:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    lock_fd = mkstemp(tmpfilename);
data/myproxy-6.2.6/myproxy_creds.c:1044:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((lockfile = fopen(lock_path, "r")) != NULL) {
data/myproxy-6.2.6/myproxy_creds.c:1821: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 path[MAXPATHLEN];
data/myproxy-6.2.6/myproxy_creds.c:1859: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 path[MAXPATHLEN];
data/myproxy-6.2.6/myproxy_creds.c:1944: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).
    log_file = fopen(log_file_name, "w");
data/myproxy-6.2.6/myproxy_creds.c:1981: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).
        file = fopen(tmp_path, "w");
data/myproxy-6.2.6/myproxy_creds.c:2098: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 path[MAXPATHLEN];
data/myproxy-6.2.6/myproxy_delegation.c:20: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).
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_delegation.c:129: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).
	if ((fd = open(outfile, O_CREAT | O_EXCL | O_WRONLY,
data/myproxy-6.2.6/myproxy_destroy.c:98: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).
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_destroy.c:216: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_extensions.c:61: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.
        char buf[100];
data/myproxy-6.2.6/myproxy_get_credential.c:111: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                    delegfile[MAXPATHLEN];
data/myproxy-6.2.6/myproxy_get_credential.c:151: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).
        socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_get_credential.c:393: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_get_credential.c:512:15:  [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).
    if ((fd = open(path, O_CREAT | O_EXCL | O_WRONLY,
data/myproxy-6.2.6/myproxy_get_credential.c:595:15:  [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).
    if ((fd = open(path, O_CREAT | O_EXCL | O_WRONLY,
data/myproxy-6.2.6/myproxy_get_delegation.c:266: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).
	  request->proxy_lifetime = 60*60*atoi(optarg);
data/myproxy-6.2.6/myproxy_get_delegation.c:276: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_get_delegation.c:391: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.
    const char *argv[40];
data/myproxy-6.2.6/myproxy_get_delegation.c:392:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bits[11], vomslife[14];
data/myproxy-6.2.6/myproxy_get_delegation.c:423:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    cert_file = fopen(outputfile, "r");
data/myproxy-6.2.6/myproxy_get_delegation.c:447: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).
        keybits = atoi(keybitsenv);
data/myproxy-6.2.6/myproxy_get_trustroots.c:77: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).
        socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_get_trustroots.c:239: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_info.c:97: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).
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_info.c:211: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_init.c:124: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 proxyfile[MAXPATHLEN];
data/myproxy-6.2.6/myproxy_init.c:171: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).
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_init.c:352:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    *cred_lifetime  = SECONDS_PER_HOUR * atoi(optarg);
data/myproxy-6.2.6/myproxy_init.c:355:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    request->proxy_lifetime = SECONDS_PER_HOUR * atoi(optarg);
data/myproxy-6.2.6/myproxy_init.c:365:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_init.c:405: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 (request->retrievers, "*/CN=");
data/myproxy-6.2.6/myproxy_init.c:421: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 (request->trusted_retrievers, "*/CN=");
data/myproxy-6.2.6/myproxy_init.c:439: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 (request->renewers, "*/CN=");
data/myproxy-6.2.6/myproxy_init.c:524: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.
    const char *argv[40];
data/myproxy-6.2.6/myproxy_init.c:525: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 hours[11], bits[11], vomslife[14];
data/myproxy-6.2.6/myproxy_init.c:557: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).
        keybits = atoi(keybitsenv);
data/myproxy-6.2.6/myproxy_log.c:206: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 txt_level[12];
data/myproxy-6.2.6/myproxy_log.c:211: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).
	gsi_level = atoi(getenv("GLOBUS_GSI_CRED_DEBUG_LEVEL"));
data/myproxy-6.2.6/myproxy_ocsp.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                  name[256];
data/myproxy-6.2.6/myproxy_ocsp.c:210:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char chport[6];
data/myproxy-6.2.6/myproxy_ocsp.c:237:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char chport[6];
data/myproxy-6.2.6/myproxy_ocsp.c:337: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).
  if (!(bio = my_connect(host, atoi(port), ssl, &ctx))) {
data/myproxy-6.2.6/myproxy_popen.c:33: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 *argv[MAXARGS];
data/myproxy-6.2.6/myproxy_protocol.h:47: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                         passphrase[MAX_PASS_LEN+1];
data/myproxy-6.2.6/myproxy_protocol.h:48: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                         new_passphrase[MAX_PASS_LEN+1];
data/myproxy-6.2.6/myproxy_read_pass.c:210: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[100];
data/myproxy-6.2.6/myproxy_sasl_client.c:13: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 client_buffer[SASL_BUFFER_SIZE], buf[SASL_BUFFER_SIZE];
data/myproxy-6.2.6/myproxy_sasl_client.c:48: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(client_buffer + sizeof(int), auth_data->client_data,
data/myproxy-6.2.6/myproxy_sasl_client.c:113: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 password[MAX_PASS_LEN];
data/myproxy-6.2.6/myproxy_sasl_client.c:150: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 input[MAX_PASS_LEN];
data/myproxy-6.2.6/myproxy_sasl_client.c:192: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 server_buffer[SASL_BUFFER_SIZE];
data/myproxy-6.2.6/myproxy_sasl_client.c:293:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(server_buffer + strlen(server_buffer) + 1, data, len);
data/myproxy-6.2.6/myproxy_sasl_server.c:62: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[SASL_BUFFER_SIZE];
data/myproxy-6.2.6/myproxy_sasl_server.c:109:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  buf[SASL_BUFFER_SIZE];
data/myproxy-6.2.6/myproxy_sasl_server.c:148:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  client_buffer[SASL_BUFFER_SIZE];
data/myproxy-6.2.6/myproxy_server.c:245:16:  [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).
        (void) open("/dev/null",O_WRONLY);
data/myproxy-6.2.6/myproxy_server.c:941: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).
        attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_server.c:967: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).
            attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_server.c:1024: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 portstr[6]={0}, *portstrp=NULL;
data/myproxy-6.2.6/myproxy_server.c:1047: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.
        char chosenhost[NI_MAXHOST] = { 0 };
data/myproxy-6.2.6/myproxy_server.c:1048: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.
        char chosenport[NI_MAXSERV] = { 0 };
data/myproxy-6.2.6/myproxy_server.c:1108: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.
        char error_string[1024] = { 0 };
data/myproxy-6.2.6/myproxy_server.c:1313: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 delegfile[MAXPATHLEN] = { 0 };
data/myproxy-6.2.6/myproxy_server.c:1334: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 delegfile[MAXPATHLEN] = { 0 };
data/myproxy-6.2.6/myproxy_server.c:1384: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 errstr[200];
data/myproxy-6.2.6/myproxy_server.c:1560: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).
    (void)open("/dev/null", O_RDWR);
data/myproxy-6.2.6/myproxy_server.c:1564: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("/dev/tty", O_RDWR);
data/myproxy-6.2.6/myproxy_server.c:1643: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).
    f = fopen(path, "wb");
data/myproxy-6.2.6/myproxy_server.c:2153: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(auth_data->client_data, client_auth_data->client_data, 
data/myproxy-6.2.6/myproxy_server.h:24: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  client_ip[256];
data/myproxy-6.2.6/myproxy_server.h:99:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1024];	/* shouldn't be allocated dynamicaly? */
data/myproxy-6.2.6/myproxy_server_config.c:197: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.
        char expl[1024];
data/myproxy-6.2.6/myproxy_server_config.c:311: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).
        return (atoi(name));
data/myproxy-6.2.6/myproxy_server_config.c:455: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).
	context->max_proxy_lifetime = 60*60*atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:458:37:  [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).
	context->max_cred_lifetime = 60*60*atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:576:37:  [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).
	context->max_cert_lifetime = 60*60*atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:579:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	context->min_keylen = atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:585:37:  [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).
	context->certificate_serial_skip = atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:677: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).
	context->request_timeout = atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:681: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).
	context->request_size_limit = atoi(tokens[1]);
data/myproxy-6.2.6/myproxy_server_config.c:1090:14:  [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(context->certificate_serialfile, O_RDWR|O_CREAT, 0600);
data/myproxy-6.2.6/myproxy_server_config.c:1254:21:  [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).
    config_stream = fopen(context->config_file, config_open_mode);
data/myproxy-6.2.6/myproxy_store.c:152: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).
	socket_attrs->psport = atoi(getenv("MYPROXY_SERVER_PORT"));
data/myproxy-6.2.6/myproxy_store.c:294:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    attrs->psport = atoi(optarg);
data/myproxy-6.2.6/myproxy_store.c:313:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    request->proxy_lifetime = SECONDS_PER_HOUR * atoi(optarg);
data/myproxy-6.2.6/myproxy_store.c:354: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(request->retrievers, "*/CN=");
data/myproxy-6.2.6/myproxy_store.c:383: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(request->renewers, "*/CN=");
data/myproxy-6.2.6/myproxy_store.c:403: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(request->trusted_retrievers, "*/CN=");
data/myproxy-6.2.6/myproxy_store.c:418: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(request->keyretrieve, "*/CN=");
data/myproxy-6.2.6/pidfile.c:44: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	pf_path[MAXPATHLEN + 1];
data/myproxy-6.2.6/pidfile.c:71: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[16], *endptr;
data/myproxy-6.2.6/pidfile.c:74: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(path, O_RDONLY);
data/myproxy-6.2.6/pidfile.c:138: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(pfh->pf_path, O_WRONLY | O_CREAT, mode);
data/myproxy-6.2.6/pidfile.c:174: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 pidstr[16];
data/myproxy-6.2.6/plugin_common.c:122: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 hbuf[NI_MAXHOST];
data/myproxy-6.2.6/plugin_common.c:159: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(&ss, ai->ai_addr, len);
data/myproxy-6.2.6/plugin_common.c:167: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(out, &ss, len);
data/myproxy-6.2.6/plugin_common.c:211: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(pos, vec[i].iov_base, vec[i].iov_len);
data/myproxy-6.2.6/plugin_common.c:401: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((*password)->data, prompt->result, prompt->len);
data/myproxy-6.2.6/plugin_common.c:648: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(text->sizebuf + 4 - text->needsize, input, tocopy);
data/myproxy-6.2.6/plugin_common.c:655: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(&(text->size), text->sizebuf, 4);
data/myproxy-6.2.6/plugin_common.c:683: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(text->buffer + text->cursize, input, inputlen);
data/myproxy-6.2.6/plugin_common.c:689: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(text->buffer + text->cursize, input, diff);
data/myproxy-6.2.6/plugin_common.c:702: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(*output + *outputlen, tmp, tmplen);
data/myproxy-6.2.6/plugin_common.h:180: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 sizebuf[4];		/* Buffer to accumulate the 4-byte size */
data/myproxy-6.2.6/safe_id_range_list.c:133: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(new_list, list->list, list->count * sizeof(new_list[0]));
data/myproxy-6.2.6/safe_id_range_list.c:414: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 small_buf[16];	/* should be big enough to hold most names */
data/myproxy-6.2.6/safe_id_range_list.c:448: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(id_name, id_begin, id_len);
data/myproxy-6.2.6/safe_is_path_trusted.c:199:17:  [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).
    saved_dir = open(".", O_RDONLY);
data/myproxy-6.2.6/safe_is_path_trusted.c:237:18:  [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).
	parent_dir_fd = open("..", O_RDONLY);
data/myproxy-6.2.6/safe_is_path_trusted.c:325: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 path[PATH_MAX] = ".";
data/myproxy-6.2.6/safe_is_path_trusted.c:632:17:  [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).
    saved_dir = open(".", O_RDONLY);
data/myproxy-6.2.6/safe_is_path_trusted.c:1180: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		path[PATH_MAX];
data/myproxy-6.2.6/ssl_utils.c:540: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(proxyfile, "r+");
data/myproxy-6.2.6/ssl_utils.c:612:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    cert_file = fopen(path, "r");
data/myproxy-6.2.6/ssl_utils.c:734: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).
    key_file = fopen(path, "r");
data/myproxy-6.2.6/ssl_utils.c:857: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).
    key_file = fopen(path, "r");
data/myproxy-6.2.6/ssl_utils.c:1242: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, open_flags, file_mode);
data/myproxy-6.2.6/ssl_utils.c:1382: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).
        keybits = atoi(keybitsenv);
data/myproxy-6.2.6/ssl_utils.c:1933:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char			path[MAXPATHLEN];
data/myproxy-6.2.6/ssl_utils.c:1972:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char       client[1024];
data/myproxy-6.2.6/ssl_utils.c:2327: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).
   cert_file = fopen(path, "r");
data/myproxy-6.2.6/string_funcs.c:190: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 buffer[2048];
data/myproxy-6.2.6/string_funcs.c:199:14:  [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).
    src_fd = open(source, src_flags);
data/myproxy-6.2.6/string_funcs.c:212:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    dst_fd = mkstemp(tmpfilename);
data/myproxy-6.2.6/string_funcs.c:308: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, open_flags);
data/myproxy-6.2.6/string_funcs.c:440: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(*output, outbuf, outlen);
data/myproxy-6.2.6/voms_utils.c:214: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 token[TOKEN_SIZE];
data/myproxy-6.2.6/voms_utils.c:315: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 buffer[LINE_BUFF_SIZE];
data/myproxy-6.2.6/voms_utils.c:324:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "r")) == NULL ) {
data/myproxy-6.2.6/voms_utils.c:404: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).
    certfile = fopen(filepath, "r");
data/myproxy-6.2.6/vomsclient.c:93:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(template);
data/myproxy-6.2.6/vomsclient.c:139:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(template);
data/myproxy-6.2.6/vomsclient.c:787: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(ac_DER_string->data, acseq, acseq_length);
data/myproxy-6.2.6/vomsclient.c:869: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 error_string[1024];
data/myproxy-6.2.6/vparse.c:221: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 buffer[1024];
data/myproxy-6.2.6/certauth_extensions.c:101:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat( buffer, "=" );
data/myproxy-6.2.6/certauth_extensions.c:107:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat( buffer, "\n" );
data/myproxy-6.2.6/certauth_extensions.c:194:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ( read( fds[2], buffer, BUF_SIZE ) > 0 ) {
data/myproxy-6.2.6/certauth_extensions.c:304: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).
      serialfile = malloc(strlen(sdir)+strlen("/serial")+1);
data/myproxy-6.2.6/certauth_extensions.c:304: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).
      serialfile = malloc(strlen(sdir)+strlen("/serial")+1);
data/myproxy-6.2.6/certauth_extensions.c:441: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).
    path = malloc(strlen(dir)+strlen(serial)+strlen("/.pem")+1);
data/myproxy-6.2.6/certauth_extensions.c:441: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(serial)+strlen("/.pem")+1);
data/myproxy-6.2.6/certauth_extensions.c:441:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    path = malloc(strlen(dir)+strlen(serial)+strlen("/.pem")+1);
data/myproxy-6.2.6/certauth_extensions.c:524:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      globus_gsi_cert_utils_get_x509_name(userdn, strlen(userdn), subject);
data/myproxy-6.2.6/certauth_extensions.c:694: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).
      email = malloc(strlen(client_request->username)+strlen("email:@")+1+
data/myproxy-6.2.6/certauth_extensions.c:694:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      email = malloc(strlen(client_request->username)+strlen("email:@")+1+
data/myproxy-6.2.6/certauth_extensions.c:695: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(server_context->certificate_issuer_email_domain));
data/myproxy-6.2.6/certauth_extensions.c:1031:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( read( fds[2], buffer, BUF_SIZE ) > 0 ) {
data/myproxy-6.2.6/certauth_resolveuser.c:106: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).
  if (userdn[strlen(userdn) - 1] == '\n') {
data/myproxy-6.2.6/certauth_resolveuser.c:107: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).
    userdn[strlen(userdn) - 1] = '\0';
data/myproxy-6.2.6/certauth_resolveuser.c:110: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(userdn) == 0) {
data/myproxy-6.2.6/certauth_resolveuser.c:238: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).
    cred.bv_len = strlen(server_context->ca_ldap_connect_passphrase);
data/myproxy-6.2.6/certauth_resolveuser.c:269: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).
  filterlen = strlen( server_context->ca_ldap_uid_attribute ) \
data/myproxy-6.2.6/certauth_resolveuser.c:270: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( username ) + 4;
data/myproxy-6.2.6/certauth_resolveuser.c:501: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 (username && strlen(username) < USERNAME_BUFFER_SIZE &&
data/myproxy-6.2.6/certauth_resolveuser.c:502: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).
      userdn && strlen(userdn) < DN_BUFFER_SIZE) {
data/myproxy-6.2.6/getopt_long.c:345: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).
			current_argv_len = strlen(current_argv);
data/myproxy-6.2.6/getopt_long.c:353: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(long_options[i].name) ==
data/myproxy-6.2.6/gsi_socket.c:96:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes_read = read(sock, &buffer[total_bytes_read], 
data/myproxy-6.2.6/gsi_socket.c:771:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(error_string, errbuf.value, sizeof error_string);
data/myproxy-6.2.6/gsi_socket.c:777:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(error_string, "gss_compare_name failed",
data/myproxy-6.2.6/gsi_socket.c:1236:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp((const char *)buffer, "VERSION", strlen("VERSION")) == 0) {
data/myproxy-6.2.6/gsi_socket.c:1340: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).
                strlen("VERSION")) == 0) {
data/myproxy-6.2.6/gsi_socket.c:1494: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).
                strlen("VERSION")) == 0) {
data/myproxy-6.2.6/gsi_socket.c:1512: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).
    for (i=0; i < input_buffer_len-strlen("VERSION"); i++, fmsg++) {
data/myproxy-6.2.6/gsi_socket.c:1513:45:  [1] (buffer) strlen:
  Does not handle 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((const char *)fmsg, "VERSION", strlen("VERSION")) == 0) {
data/myproxy-6.2.6/gsi_socket.c:1680: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).
    for (i=0; i < input_buffer_length-strlen("VERSION"); i++, fmsg++) {
data/myproxy-6.2.6/gsi_socket.c:1681:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strncmp((const char *)fmsg, "VERSION", strlen("VERSION")) == 0) {
data/myproxy-6.2.6/gsi_socket.c:1702: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).
    size = strlen( (char *)input_buffer );
data/myproxy-6.2.6/gsi_socket.c:1784: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).
                                strlen(source_credentials)+1)
data/myproxy-6.2.6/gsi_socket_voms.c:139: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).
         err_str = (char *)malloc(strlen(err_msg)+50);
data/myproxy-6.2.6/gsi_socket_voms.c:140: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(err_str, strlen(err_msg)+50,
data/myproxy-6.2.6/gssapi.c:267: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).
	saslerr = malloc(strlen(errmsg)+strlen(dlerr)+3);
data/myproxy-6.2.6/gssapi.c:267: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).
	saslerr = malloc(strlen(errmsg)+strlen(dlerr)+3);
data/myproxy-6.2.6/gssapi.c:389: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(out, ")");
data/myproxy-6.2.6/gssapi.c:716: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).
	    name_token.length = strlen(params->service) + 1 + strlen(params->serverFQDN);
data/myproxy-6.2.6/gssapi.c:716:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    name_token.length = strlen(params->service) + 1 + strlen(params->serverFQDN);
data/myproxy-6.2.6/gssapi.c:823:6:  [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.
	int equal;
data/myproxy-6.2.6/gssapi.c:855: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).
	    name_without_realm.value = malloc(strlen(name_token.value)+1);
data/myproxy-6.2.6/gssapi.c:866:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    name_without_realm.length = strlen( (char *) name_without_realm.value );
data/myproxy-6.2.6/gssapi.c:893: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.
					&equal);
data/myproxy-6.2.6/gssapi.c:911:6:  [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) {
data/myproxy-6.2.6/gssapi.c:1215:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(keytab) > 1024) {
data/myproxy-6.2.6/gssapi.c:1221:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(keytab_path, keytab, 1024);
data/myproxy-6.2.6/gssapi.c:1326: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).
	    name_token.length = strlen(params->service) + 1 + strlen(params->serverFQDN);
data/myproxy-6.2.6/gssapi.c:1326:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    name_token.length = strlen(params->service) + 1 + strlen(params->serverFQDN);
data/myproxy-6.2.6/gssapi.c:1333: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(params->serverFQDN) == 0) {
data/myproxy-6.2.6/gssapi.c:1582: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).
	    alen = strlen(oparams->user);
data/myproxy-6.2.6/myproxy.c:76: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).
			slen = strlen (p+len);
data/myproxy-6.2.6/myproxy.c:78:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			if (strncpy (strs[idx], p+len, slen) == NULL)
data/myproxy-6.2.6/myproxy.c:86:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			if (strncpy (strs[idx], p+len, tmp) == NULL)
data/myproxy-6.2.6/myproxy.c:521:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    prev_umask = umask(S_IWGRP|S_IWOTH);
data/myproxy-6.2.6/myproxy.c:533: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 (tmp_cert_dir[strlen(tmp_cert_dir)-1] == '/') {
data/myproxy-6.2.6/myproxy.c:534: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).
            tmp_cert_dir[strlen(tmp_cert_dir)-1] = '\0';
data/myproxy-6.2.6/myproxy.c:654:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    if (prev_umask) umask(prev_umask);          /* restore umask */
data/myproxy-6.2.6/myproxy.c:822: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).
       server_dn_buffer.length = strlen(server_dn);
data/myproxy-6.2.6/myproxy.c:866: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).
           hostip.length = strlen(hostip.value);
data/myproxy-6.2.6/myproxy.c:920:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               name_buf.length = strlen(name_buf.value);
data/myproxy-6.2.6/myproxy.c:1387:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(request->passphrase, buf, sizeof(request->passphrase)-1);
data/myproxy-6.2.6/myproxy.c:1404:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (request->new_passphrase, buf,
data/myproxy-6.2.6/myproxy.c:2608: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(client_request->authzcreds) + 1);
data/myproxy-6.2.6/myproxy.c:2624: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(client_request->passphrase) + 1);
data/myproxy-6.2.6/myproxy.c:2864: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).
	value_start = &varname_start[strlen(varname)];
data/myproxy-6.2.6/myproxy.c:2871:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((*line)+line_index, value_start, value_length);
data/myproxy-6.2.6/myproxy.c:2893: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).
    return_value = strlen(*line);
data/myproxy-6.2.6/myproxy.c:3177: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(string) == 0)
data/myproxy-6.2.6/myproxy.c:3240: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).
   data->server_data = malloc(strlen(str) + 1);
data/myproxy-6.2.6/myproxy.c:3250: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).
   return str + strlen(str);
data/myproxy-6.2.6/myproxy.c:3274: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).
   buffer_end = buffer + strlen(buffer);
data/myproxy-6.2.6/myproxy_alcf.c:243: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).
		my_creds->retrievers = (char *)malloc(strlen(optarg)+6);
data/myproxy-6.2.6/myproxy_alcf.c:260:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		my_creds->trusted_retrievers = (char *)malloc(strlen(optarg)+6);
data/myproxy-6.2.6/myproxy_alcf.c:281: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).
		my_creds->renewers = (char *)malloc(strlen(optarg)+6);
data/myproxy-6.2.6/myproxy_alcf.c:330: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).
		    (char *) malloc(strlen(optarg) + 6);
data/myproxy-6.2.6/myproxy_alcf.c:410: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).
    certend += strlen(ENDCERT);
data/myproxy-6.2.6/myproxy_alcf.c:436: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).
	keyend += strlen(ENDKEY1);
data/myproxy-6.2.6/myproxy_alcf.c:438: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).
	keyend += strlen(ENDKEY2);
data/myproxy-6.2.6/myproxy_alcf.c:440: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).
	keyend += strlen(ENDKEY3);
data/myproxy-6.2.6/myproxy_alcf.c:470: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).
	certend += strlen(ENDCERT);
data/myproxy-6.2.6/myproxy_authorization.c:177:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(auth_pam_result) > 3 
data/myproxy-6.2.6/myproxy_authorization.c:296:3:  [1] (buffer) strlen:
  Does not handle 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(data->server_data), proxy,
data/myproxy-6.2.6/myproxy_authorization.c:371: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(auth_data->server_data), 
data/myproxy-6.2.6/myproxy_cp.c:98:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    client_request->version = malloc(strlen(MYPROXY_VERSION) +1);
data/myproxy-6.2.6/myproxy_creds.c:177: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).
                (char *)malloc(strlen(GL)+strlen("/var/myproxy")+1);
data/myproxy-6.2.6/myproxy_creds.c:177: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).
                (char *)malloc(strlen(GL)+strlen("/var/myproxy")+1);
data/myproxy-6.2.6/myproxy_creds.c:292: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).
    MD5_Update(&md5,s,strlen(s));
data/myproxy-6.2.6/myproxy_creds.c:342: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(username) > max_namelen) {
data/myproxy-6.2.6/myproxy_creds.c:392: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).
        if (strlen(credname) > max_namelen) {
data/myproxy-6.2.6/myproxy_creds.c:477: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).
    bufsiz = strlen(data_file_path)+15;
data/myproxy-6.2.6/myproxy_creds.c:621: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).
        len = strlen(line_buffer);
data/myproxy-6.2.6/myproxy_creds.c:633: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).
            len = strlen(line_buffer);
data/myproxy-6.2.6/myproxy_creds.c:811: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).
    bufsiz = strlen(filename)+15;
data/myproxy-6.2.6/myproxy_creds.c:958:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(path_prefix, creds_path, strlen(path_prefix)) == 0) {
data/myproxy-6.2.6/myproxy_creds.c:1153: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).
        sterile_username_len = strlen(sterile_username);
data/myproxy-6.2.6/myproxy_creds.c:1213: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 (!strncmp(de->d_name+strlen(de->d_name)-5, ".data", 5)) {
data/myproxy-6.2.6/myproxy_creds.c:1695: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(passphrase) >= MIN_PASS_PHRASE_LEN &&
data/myproxy-6.2.6/myproxy_creds.c:1697: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).
		   &creds->owner_name[strlen(creds->owner_name)-3])) != NULL &&
data/myproxy-6.2.6/myproxy_creds.c:1927:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(S_IWGRP|S_IWOTH);
data/myproxy-6.2.6/myproxy_creds.c:1975: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).
        tmp_len = strlen(file_path)+strlen(".tmp")+1;
data/myproxy-6.2.6/myproxy_creds.c:1975: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).
        tmp_len = strlen(file_path)+strlen(".tmp")+1;
data/myproxy-6.2.6/myproxy_creds.c:2228: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).
        path = malloc(strlen(storage_dir)+12);
data/myproxy-6.2.6/myproxy_destroy.c:86:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    client_request->version = malloc(strlen(MYPROXY_VERSION) + 1);
data/myproxy-6.2.6/myproxy_destroy.c:112:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(client_request->passphrase, "DUMMY-PASSPHRASE",
data/myproxy-6.2.6/myproxy_get_credential.c:536: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).
    certend += strlen(ENDCERT);
data/myproxy-6.2.6/myproxy_get_credential.c:554: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).
        certend += strlen(ENDCERT);
data/myproxy-6.2.6/myproxy_get_credential.c:619: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).
	keyend += strlen(ENDKEY1);
data/myproxy-6.2.6/myproxy_get_credential.c:621: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).
	keyend += strlen(ENDKEY2);
data/myproxy-6.2.6/myproxy_get_credential.c:623: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).
	keyend += strlen(ENDKEY3);
data/myproxy-6.2.6/myproxy_info.c:87:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    client_request->version = malloc(strlen(MYPROXY_VERSION) + 1);
data/myproxy-6.2.6/myproxy_info.c:111:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(client_request->passphrase, "DUMMY-PASSPHRASE",
data/myproxy-6.2.6/myproxy_init.c:155:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    client_request->version = malloc(strlen(MYPROXY_VERSION) + 1);
data/myproxy-6.2.6/myproxy_init.c:404:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		request->retrievers = (char *) malloc (strlen (optarg) + 6);
data/myproxy-6.2.6/myproxy_init.c:420: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).
		    (char *) malloc (strlen (optarg) + 6);
data/myproxy-6.2.6/myproxy_init.c:438: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).
		request->renewers = (char *) malloc (strlen (optarg) + 6);
data/myproxy-6.2.6/myproxy_log.c:70: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).
    for (i=0, len = strlen(string); i < len; i++) {
data/myproxy-6.2.6/myproxy_read_pass.c:69: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).
	return_code = strlen(buffer);
data/myproxy-6.2.6/myproxy_read_pass.c:101: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(buffer)-1;
data/myproxy-6.2.6/myproxy_read_pass.c:166: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).
	passphrase_len = strlen(passphrase);
data/myproxy-6.2.6/myproxy_sasl_client.c:77: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).
    result = sasl_decode64(response_data, strlen(response_data), 
data/myproxy-6.2.6/myproxy_sasl_client.c:101: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).
        *len = value ? strlen(value) : 0;
data/myproxy-6.2.6/myproxy_sasl_client.c:124:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(password);
data/myproxy-6.2.6/myproxy_sasl_client.c:177: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).
    memset(input, 0L, strlen(input));
data/myproxy-6.2.6/myproxy_sasl_client.c:182: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(*result);
data/myproxy-6.2.6/myproxy_sasl_client.c:229: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).
    prompt = malloc(strlen(client_request->username)+strlen(fqdn)+15);
data/myproxy-6.2.6/myproxy_sasl_client.c:229:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    prompt = malloc(strlen(client_request->username)+strlen(fqdn)+15);
data/myproxy-6.2.6/myproxy_sasl_client.c:288: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 (SASL_BUFFER_SIZE - strlen(server_buffer) - 1 < len) {
data/myproxy-6.2.6/myproxy_sasl_client.c:293: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).
        memcpy(server_buffer + strlen(server_buffer) + 1, data, len);
data/myproxy-6.2.6/myproxy_sasl_client.c:294: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).
        len += strlen(server_buffer) + 1;
data/myproxy-6.2.6/myproxy_sasl_client.c:297: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).
        len = strlen(server_buffer);
data/myproxy-6.2.6/myproxy_sasl_server.c:211:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       len = strlen(data);
data/myproxy-6.2.6/myproxy_sasl_server.c:246: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(client_buffer) < len) {
data/myproxy-6.2.6/myproxy_sasl_server.c:247: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).
        data = client_buffer + strlen(client_buffer) + 1;
data/myproxy-6.2.6/myproxy_sasl_server.c:248: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).
        len = len - strlen(client_buffer) - 1;
data/myproxy-6.2.6/myproxy_sasl_server.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).
       len = strlen(client_request->username)+
data/myproxy-6.2.6/myproxy_sasl_server.c:299: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(myproxy_sasl_user_realm)+2;
data/myproxy-6.2.6/myproxy_server.c:621: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).
            (strlen(client_request->username) == 0)) 
data/myproxy-6.2.6/myproxy_server.c:744: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).
	    error = malloc(strlen(msg)+strlen(client_creds->lockmsg)+1);
data/myproxy-6.2.6/myproxy_server.c:744: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).
	    error = malloc(strlen(msg)+strlen(client_creds->lockmsg)+1);
data/myproxy-6.2.6/myproxy_server.c:980: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).
            context->config_file =  malloc(strlen(optarg) + 1);
data/myproxy-6.2.6/myproxy_server.c:1211: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).
    response->version = malloc(strlen(MYPROXY_VERSION) + 1);
data/myproxy-6.2.6/myproxy_server.c:1552:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(0077);
data/myproxy-6.2.6/myproxy_server.c:1599:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      read(startup_pipe[0], &byte, 1); /* wait for child to signal */
data/myproxy-6.2.6/myproxy_server.c:2094: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).
      memset(creds.passphrase, 0, strlen(creds.passphrase));
data/myproxy-6.2.6/myproxy_server.c:2191:2:  [1] (buffer) strlen:
  Does not handle 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(client_request->passphrase) + 1;
data/myproxy-6.2.6/myproxy_server_config.c:758: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).
    buf = (char *) malloc(2 * strlen(regex) + 5);
data/myproxy-6.2.6/myproxy_server_config.c:1240: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).
	    conf = (char *)malloc(strlen(GL)+strlen(default_config_file)+1);
data/myproxy-6.2.6/myproxy_server_config.c:1240: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).
	    conf = (char *)malloc(strlen(GL)+strlen(default_config_file)+1);
data/myproxy-6.2.6/myproxy_server_config.c:1326:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(peer.name, client, sizeof(peer.name)-1);
data/myproxy-6.2.6/myproxy_server_config.c:1338: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).
	            strlen(MYPROXY_SERVER_POLICY_TYPE_FQAN)) == 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1341: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).
       policy += strlen(MYPROXY_SERVER_POLICY_TYPE_FQAN);
data/myproxy-6.2.6/myproxy_server_config.c:1344: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(MYPROXY_SERVER_POLICY_TYPE_SUBJECT)) == 0) {
data/myproxy-6.2.6/myproxy_server_config.c:1345: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).
       policy += strlen(MYPROXY_SERVER_POLICY_TYPE_SUBJECT);
data/myproxy-6.2.6/myproxy_server_config.c:1359:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(peer.name, client, sizeof(peer.name)-1);
data/myproxy-6.2.6/myproxy_store.c:141:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    client_request->version = malloc(strlen(MYPROXY_VERSION) + 1);
data/myproxy-6.2.6/myproxy_store.c:353: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).
		    (char *) malloc(strlen(optarg) + 6);
data/myproxy-6.2.6/myproxy_store.c:382: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).
		    (char *) malloc(strlen(optarg) + 6);
data/myproxy-6.2.6/myproxy_store.c:402: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).
		    (char *) malloc(strlen(optarg) + 6);
data/myproxy-6.2.6/myproxy_store.c:417: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).
		    (char *) malloc(strlen(optarg) + 6);
data/myproxy-6.2.6/myproxy_store.c:554: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).
    certend += strlen(ENDCERT);
data/myproxy-6.2.6/myproxy_store.c:557:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat( *credbuf, certstart, size ); 
data/myproxy-6.2.6/myproxy_store.c:558: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( *credbuf, "\n" );
data/myproxy-6.2.6/myproxy_store.c:571: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).
	keyend += strlen(ENDKEY1);
data/myproxy-6.2.6/myproxy_store.c:573: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).
	keyend += strlen(ENDKEY2);
data/myproxy-6.2.6/myproxy_store.c:575: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).
	keyend += strlen(ENDKEY3);
data/myproxy-6.2.6/myproxy_store.c:584:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat( *credbuf, keystart, size );
data/myproxy-6.2.6/myproxy_store.c:585: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( *credbuf, "\n" );
data/myproxy-6.2.6/myproxy_store.c:595: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).
        certend += strlen(ENDCERT);
data/myproxy-6.2.6/myproxy_store.c:598:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat( *credbuf, certstart, size ); 
data/myproxy-6.2.6/myproxy_store.c:599:9:  [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( *credbuf, "\n" ); 
data/myproxy-6.2.6/pidfile.c:78:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, buf, sizeof(buf) - 1);
data/myproxy-6.2.6/pidfile.c:201: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 (pwrite(fd, pidstr, strlen(pidstr), 0) != (ssize_t)strlen(pidstr)) {
data/myproxy-6.2.6/pidfile.c:201:56:  [1] (buffer) strlen:
  Does not handle 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 (pwrite(fd, pidstr, strlen(pidstr), 0) != (ssize_t)strlen(pidstr)) {
data/myproxy-6.2.6/plugin_common.c:257: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).
  size_t len = strlen(in);
data/myproxy-6.2.6/plugin_common.c:284:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(*str);
data/myproxy-6.2.6/plugin_common.c:752:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(*user, input, r - input +1);
data/myproxy-6.2.6/plugin_common.c:773: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).
    *fulluser = utils->malloc (strlen(useronly) + strlen(realm) + 2);
data/myproxy-6.2.6/plugin_common.c:773:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *fulluser = utils->malloc (strlen(useronly) + strlen(realm) + 2);
data/myproxy-6.2.6/plugin_common.c:780: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 (*fulluser, "@");
data/myproxy-6.2.6/safe_is_path_trusted.c:526:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stack->stack[stack->count - 1].cur_position += strlen(cur_path);
data/myproxy-6.2.6/safe_is_path_trusted.c:979:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ssize_t bytes_read = read(fd[0], buf, (size_t)bytes_to_read);
data/myproxy-6.2.6/ssl_utils.c:442:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(buffer, "");
data/myproxy-6.2.6/ssl_utils.c:446:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, _ssl_pass_phrase, buffer_len);
data/myproxy-6.2.6/ssl_utils.c:450: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).
    return strlen(buffer);
data/myproxy-6.2.6/ssl_utils.c:816: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).
        pass_phrase_len = strlen(pass_phrase);
data/myproxy-6.2.6/ssl_utils.c:1151: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).
	pass_phrase_len = strlen(pass_phrase);
data/myproxy-6.2.6/ssl_utils.c:1948:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(path, user_cert, sizeof(path)-1);
data/myproxy-6.2.6/ssl_utils.c:1951:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(path, proxyfile, sizeof(path)-1);
data/myproxy-6.2.6/string_funcs.c:29: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 (buf);
data/myproxy-6.2.6/string_funcs.c:56: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(*dest);
data/myproxy-6.2.6/string_funcs.c:64: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(src);
data/myproxy-6.2.6/string_funcs.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).
    len = strlen(source);
data/myproxy-6.2.6/string_funcs.c:92:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(destination, source, destination_length-1);
data/myproxy-6.2.6/string_funcs.c:208: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).
    bufsiz = strlen(dest)+15;
data/myproxy-6.2.6/string_funcs.c:226:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytes_read = read(src_fd, buffer, sizeof(buffer)-1);
data/myproxy-6.2.6/string_funcs.c:336:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rval = read(fd, b, remaining);
data/myproxy-6.2.6/string_funcs.c:457: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).
    inlen = strlen(input);
data/myproxy-6.2.6/string_funcs.c:551: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 (path[strlen(path)-1] != '/')
data/myproxy-6.2.6/string_funcs.c:746: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).
    envstr = malloc(strlen(var) + strlen(value) + 2 /* '=' and NUL */);
data/myproxy-6.2.6/string_funcs.c:746: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).
    envstr = malloc(strlen(var) + strlen(value) + 2 /* '=' and NUL */);
data/myproxy-6.2.6/string_funcs.c:770: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).
    int len = strlen(var);
data/myproxy-6.2.6/verror.c:59: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).
    string_len = strlen(string);
data/myproxy-6.2.6/verror.c:69: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).
			 0 : strlen(my_context.string));
data/myproxy-6.2.6/verror.c:71: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).
    new_string_length += strlen(string) + 1 /* NUL */;
data/myproxy-6.2.6/verror.c:95:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(new_string, "\n");
data/myproxy-6.2.6/verror.c:113:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(new_string, "\n");
data/myproxy-6.2.6/voms_utils.c:126: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).
    delim_size = strlen(delim);
data/myproxy-6.2.6/voms_utils.c:127: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).
    result_size = strlen(array->elements[0]);
data/myproxy-6.2.6/voms_utils.c:130: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).
        result_size += strlen(array->elements[i]);
data/myproxy-6.2.6/voms_utils.c:286: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).
    base_len = strlen(base);
data/myproxy-6.2.6/voms_utils.c:291:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name_len = strlen(name);
data/myproxy-6.2.6/vomsclient.c:146: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 (write(fd, vomses, strlen(vomses)) == -1) {
data/myproxy-6.2.6/vomsclient.c:217: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).
    role_len = strlen(p_role);
data/myproxy-6.2.6/vomsclient.c:226:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&buf[i], p_role, role_len);
data/myproxy-6.2.6/vomsclient.c:253: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).
    role_len = strlen(p_role);
data/myproxy-6.2.6/vomsclient.c:271:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&buf[i], str, group_len);
data/myproxy-6.2.6/vomsclient.c:274:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&buf[i], p_role, role_len);
data/myproxy-6.2.6/vomsclient.c:290: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).
    str_len = strlen(str);
data/myproxy-6.2.6/vomsclient.c:307:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&buf[i], str, str_len);
data/myproxy-6.2.6/vomsclient.c:308: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).
    buf_len = strlen(buf);
data/myproxy-6.2.6/vomsclient.c:365:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(*vo, voms, vo_len);

ANALYSIS SUMMARY:

Hits = 652
Lines analyzed = 35016 in approximately 0.88 seconds (39703 lines/second)
Physical Source Lines of Code (SLOC) = 24753
Hits@level = [0] 288 [1] 224 [2] 235 [3]  97 [4]  94 [5]   2
Hits@level+ = [0+] 940 [1+] 652 [2+] 428 [3+] 193 [4+]  96 [5+]   2
Hits/KSLOC@level+ = [0+] 37.9752 [1+] 26.3402 [2+] 17.2908 [3+] 7.79703 [4+] 3.87832 [5+] 0.0807983
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.