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/voms-2.1.0~rc0/src/ac/acerrors.h
Examining data/voms-2.1.0~rc0/src/ac/attributes.h
Examining data/voms-2.1.0~rc0/src/ac/ccinit.cc
Examining data/voms-2.1.0~rc0/src/ac/create.cc
Examining data/voms-2.1.0~rc0/src/ac/error.c
Examining data/voms-2.1.0~rc0/src/ac/extensions.c
Examining data/voms-2.1.0~rc0/src/ac/extensions.h
Examining data/voms-2.1.0~rc0/src/ac/init.h
Examining data/voms-2.1.0~rc0/src/ac/mystack.c
Examining data/voms-2.1.0~rc0/src/ac/newformat.c
Examining data/voms-2.1.0~rc0/src/ac/validate.cc
Examining data/voms-2.1.0~rc0/src/ac/write.c
Examining data/voms-2.1.0~rc0/src/ac/write.h
Examining data/voms-2.1.0~rc0/src/ac/init.c
Examining data/voms-2.1.0~rc0/src/api/ccapi/api_util.cc
Examining data/voms-2.1.0~rc0/src/api/ccapi/api_util.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/ccval.cc
Examining data/voms-2.1.0~rc0/src/api/ccapi/ccval.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc
Examining data/voms-2.1.0~rc0/src/api/ccapi/cinterface.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/internal.cc
Examining data/voms-2.1.0~rc0/src/api/ccapi/internal.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/realdata.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc
Examining data/voms-2.1.0~rc0/src/api/ccapi/voms_api.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/voms_api_nog.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/voms_apic_nog.h
Examining data/voms-2.1.0~rc0/src/api/ccapi/voms_apic.h
Examining data/voms-2.1.0~rc0/src/client/contact.hpp
Examining data/voms-2.1.0~rc0/src/client/main.cc
Examining data/voms-2.1.0~rc0/src/client/vomsclient.h
Examining data/voms-2.1.0~rc0/src/client/vomsclient.cc
Examining data/voms-2.1.0~rc0/src/common/data.cc
Examining data/voms-2.1.0~rc0/src/common/doio.c
Examining data/voms-2.1.0~rc0/src/common/failure.c
Examining data/voms-2.1.0~rc0/src/common/fqan.cc
Examining data/voms-2.1.0~rc0/src/common/list.c
Examining data/voms-2.1.0~rc0/src/common/normalize.c
Examining data/voms-2.1.0~rc0/src/common/options.cc
Examining data/voms-2.1.0~rc0/src/common/pass.cc
Examining data/voms-2.1.0~rc0/src/common/xmlcc.cc
Examining data/voms-2.1.0~rc0/src/common/credentials.c
Examining data/voms-2.1.0~rc0/src/include/Client.h
Examining data/voms-2.1.0~rc0/src/include/Server.h
Examining data/voms-2.1.0~rc0/src/include/acstack.h
Examining data/voms-2.1.0~rc0/src/include/ccac.h
Examining data/voms-2.1.0~rc0/src/include/ccwrite.h
Examining data/voms-2.1.0~rc0/src/include/credentials.h
Examining data/voms-2.1.0~rc0/src/include/data.h
Examining data/voms-2.1.0~rc0/src/include/dbwrap.h
Examining data/voms-2.1.0~rc0/src/include/doio.h
Examining data/voms-2.1.0~rc0/src/include/errors.h
Examining data/voms-2.1.0~rc0/src/include/fqan.h
Examining data/voms-2.1.0~rc0/src/include/getopts.h
Examining data/voms-2.1.0~rc0/src/include/gssapi_compat.h
Examining data/voms-2.1.0~rc0/src/include/init.h
Examining data/voms-2.1.0~rc0/src/include/listfunc.h
Examining data/voms-2.1.0~rc0/src/include/log.h
Examining data/voms-2.1.0~rc0/src/include/myproxycertinfo.h
Examining data/voms-2.1.0~rc0/src/include/newformat.h
Examining data/voms-2.1.0~rc0/src/include/normalize.h
Examining data/voms-2.1.0~rc0/src/include/options.h
Examining data/voms-2.1.0~rc0/src/include/pass.h
Examining data/voms-2.1.0~rc0/src/include/proxycertinfo.h
Examining data/voms-2.1.0~rc0/src/include/proxypolicy.h
Examining data/voms-2.1.0~rc0/src/include/replace.h
Examining data/voms-2.1.0~rc0/src/include/ssl_compat.h
Examining data/voms-2.1.0~rc0/src/include/sslutils.h
Examining data/voms-2.1.0~rc0/src/include/validate.h
Examining data/voms-2.1.0~rc0/src/include/vomsxml.h
Examining data/voms-2.1.0~rc0/src/log/fs.c
Examining data/voms-2.1.0~rc0/src/log/log.c
Examining data/voms-2.1.0~rc0/src/log/sl.c
Examining data/voms-2.1.0~rc0/src/log/streamers.h
Examining data/voms-2.1.0~rc0/src/replib/daemon.c
Examining data/voms-2.1.0~rc0/src/replib/dummy.c
Examining data/voms-2.1.0~rc0/src/replib/getopt_long.c
Examining data/voms-2.1.0~rc0/src/replib/getopt_long_only.c
Examining data/voms-2.1.0~rc0/src/replib/memcmp.c
Examining data/voms-2.1.0~rc0/src/replib/memset.c
Examining data/voms-2.1.0~rc0/src/replib/setenv.c
Examining data/voms-2.1.0~rc0/src/replib/strndup.c
Examining data/voms-2.1.0~rc0/src/server/VOMSServer.h
Examining data/voms-2.1.0~rc0/src/server/attribute.cc
Examining data/voms-2.1.0~rc0/src/server/attribute.h
Examining data/voms-2.1.0~rc0/src/server/main.cc
Examining data/voms-2.1.0~rc0/src/server/uuid.c
Examining data/voms-2.1.0~rc0/src/server/uuid.h
Examining data/voms-2.1.0~rc0/src/server/vomsd-rest.cc
Examining data/voms-2.1.0~rc0/src/server/vomsd.cc
Examining data/voms-2.1.0~rc0/src/socklib/Client.cpp
Examining data/voms-2.1.0~rc0/src/socklib/Server.cpp
Examining data/voms-2.1.0~rc0/src/socklib/io.cc
Examining data/voms-2.1.0~rc0/src/socklib/io.h
Examining data/voms-2.1.0~rc0/src/socklib/ipv6sock.cc
Examining data/voms-2.1.0~rc0/src/socklib/ipv6sock.h
Examining data/voms-2.1.0~rc0/src/socklib/vomsssl.h
Examining data/voms-2.1.0~rc0/src/sslutils/evaluate.c
Examining data/voms-2.1.0~rc0/src/sslutils/lex.namespaces.c
Examining data/voms-2.1.0~rc0/src/sslutils/lex.signing.c
Examining data/voms-2.1.0~rc0/src/sslutils/myproxycertinfo.c
Examining data/voms-2.1.0~rc0/src/sslutils/namespaces.c
Examining data/voms-2.1.0~rc0/src/sslutils/namespaces.h
Examining data/voms-2.1.0~rc0/src/sslutils/parsertypes.h
Examining data/voms-2.1.0~rc0/src/sslutils/proxypolicy.c
Examining data/voms-2.1.0~rc0/src/sslutils/scutils.c
Examining data/voms-2.1.0~rc0/src/sslutils/scutils.h
Examining data/voms-2.1.0~rc0/src/sslutils/signing_policy.c
Examining data/voms-2.1.0~rc0/src/sslutils/signing_policy.h
Examining data/voms-2.1.0~rc0/src/sslutils/ssl_compat.c
Examining data/voms-2.1.0~rc0/src/sslutils/voms_cert_type.c
Examining data/voms-2.1.0~rc0/src/sslutils/voms_cert_type.h
Examining data/voms-2.1.0~rc0/src/sslutils/vomsproxy.h
Examining data/voms-2.1.0~rc0/src/sslutils/proxy.c
Examining data/voms-2.1.0~rc0/src/sslutils/proxycertinfo.c
Examining data/voms-2.1.0~rc0/src/sslutils/sslutils.c
Examining data/voms-2.1.0~rc0/src/utils/fakeparsertypes.h
Examining data/voms-2.1.0~rc0/src/utils/lex.yy.c
Examining data/voms-2.1.0~rc0/src/utils/voms_proxy_destroy.cc
Examining data/voms-2.1.0~rc0/src/utils/voms_proxy_info.cc
Examining data/voms-2.1.0~rc0/src/utils/voms_verify.cc
Examining data/voms-2.1.0~rc0/src/utils/vomsfake.h
Examining data/voms-2.1.0~rc0/src/utils/vomsparser.c
Examining data/voms-2.1.0~rc0/src/utils/vomsparser.h
Examining data/voms-2.1.0~rc0/src/utils/vomsfake.cc
Examining data/voms-2.1.0~rc0/testsuite/voms/voms/server.c
Examining data/voms-2.1.0~rc0/testsuite/voms/voms/server2.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/basictest.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/copydata.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/copydata2.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/copydata3.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/ddtest.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/delete.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/destroy.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/expimp.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/freetarget.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/getac.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/lifetime.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/listtarg.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/loadbyalias.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/loadbyvo.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/makeac.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/ordering.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/parsetest.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/printtargets.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/proxyfromfile.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/readfromproxy.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/resetorder.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/retrieve.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/retrieveext.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/target.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/vertime.c
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/basictest.cc
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/defaultdata.cc
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/duplication.cc
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/parsertest.cc
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/retrievefromctx.cc
Examining data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/verifier.cc

FINAL RESULTS:

data/voms-2.1.0~rc0/src/include/ssl_compat.h:52:47:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
int BIO_meth_set_gets(BIO_METHOD *biom, int (*gets) (BIO *, char *, int));
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:229:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                    char *system, char *user, int *error)
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:238:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void)v->LoadSystemContacts(system ? std::string(system) : "");
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:238:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void)v->LoadSystemContacts(system ? std::string(system) : "");
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:251:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                       char *system, char *user, int *error)
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:260:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void)v->LoadSystemContacts(system ? std::string(system) : "");
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:260:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  (void)v->LoadSystemContacts(system ? std::string(system) : "");
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:867: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(buffer, msg.c_str());
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:876: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(buf, msg.c_str());
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.h:160:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					     char *system, char *user, 
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.h:180:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					  char *system, char *user, 
data/voms-2.1.0~rc0/src/api/ccapi/voms_apic.h:168:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					     char *system, char *user, 
data/voms-2.1.0~rc0/src/api/ccapi/voms_apic.h:188:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					  char *system, char *user, 
data/voms-2.1.0~rc0/src/common/doio.c:40:10:  [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.
  plen = vsnprintf(str, 0, format, v);
data/voms-2.1.0~rc0/src/common/doio.c:45:13:  [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.
      (void)vsnprintf(str, plen+1, format, w);
data/voms-2.1.0~rc0/src/common/failure.c:48:33:  [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.
#define sigsegv_outp(x, ...)    fprintf(outfile, x "\n", ##__VA_ARGS__)
data/voms-2.1.0~rc0/src/log/log.c:293: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).
      tmp = strcpy(tmp, dest);
data/voms-2.1.0~rc0/src/log/log.c:295:13:  [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).
      tmp = strcat(tmp, src);
data/voms-2.1.0~rc0/src/log/sl.c:68:17:  [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).
    newstring = strcpy(newstring, format);
data/voms-2.1.0~rc0/src/log/sl.c:69:17:  [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).
    newstring = strcat(newstring, position);
data/voms-2.1.0~rc0/src/socklib/Server.cpp:740:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(error_msg_buf,
data/voms-2.1.0~rc0/src/sslutils/namespaces.c:654:21:  [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.
#  define YYFPRINTF fprintf
data/voms-2.1.0~rc0/src/sslutils/signing_policy.c:673:21:  [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.
#  define YYFPRINTF fprintf
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2683:23:  [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(default_user_cert, certname);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:641:21:  [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.
#  define YYFPRINTF fprintf
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1462: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((yyval.param)->value, (yyvsp[(3) - (5)].input));
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1464: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((yyval.param)->value, (yyvsp[(5) - (5)].input));
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1478: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((yyval.param)->value, (yyvsp[(7) - (8)].input));
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1480: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((yyval.param)->value, (yyvsp[(3) - (8)].input));
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1482: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((yyval.param)->value, (yyvsp[(5) - (8)].input));
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1750:19:  [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).
    vo->targets = strcat(vo->targets, param->value);
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/copydata.c:24:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, message);
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/copydata2.c:24:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, message);
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/copydata3.c:24:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, message);
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/expimp.c:24:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, message);
data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc:137:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( (v = getenv("X509_VOMS_DIR")))
data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc: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.
    if ((c = getenv("X509_CERT_DIR")))
data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc:780: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.
    char *name = getenv("VOMS_USERCONF");
data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc:784:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *home = getenv("HOME");
data/voms-2.1.0~rc0/src/client/vomsclient.cc:152:5:  [3] (random) srand:
  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.
    srand(seed);
data/voms-2.1.0~rc0/src/client/vomsclient.cc:421:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("VOMS_PROXY_INIT_DONT_VERIFY_AC") != NULL) {
data/voms-2.1.0~rc0/src/client/vomsclient.cc:479: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.
  char *vo = getenv("VO");
data/voms-2.1.0~rc0/src/client/vomsclient.cc:532: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.
      char *uc = getenv("VOMS_USERCONF");
data/voms-2.1.0~rc0/src/client/vomsclient.cc:542: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.
      char *uc = getenv("HOME");
data/voms-2.1.0~rc0/src/client/vomsclient.cc:631: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.
  char * oldenv = getenv("X509_USER_PROXY");
data/voms-2.1.0~rc0/src/common/credentials.c:47: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.
    char *gver = getenv("GLOBUS_VERSION");
data/voms-2.1.0~rc0/src/include/getopts.h:57:12:  [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.
extern int getopt_long (int ___argc, char *const *___argv,
data/voms-2.1.0~rc0/src/include/getopts.h:64:12:  [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.
extern int getopt_long ();
data/voms-2.1.0~rc0/src/replib/getopt_long.c:216: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.
#ifndef getenv
data/voms-2.1.0~rc0/src/replib/getopt_long.c:217: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.
extern char *getenv ();
data/voms-2.1.0~rc0/src/replib/getopt_long.c:402: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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1262: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 (argc, argv, options, long_options, opt_index)
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1289: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.
libc_hidden_def (getopt_long)
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:216: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.
#ifndef getenv
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:217: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.
extern char *getenv ();
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:402: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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1262: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 (argc, argv, options, long_options, opt_index)
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1289: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.
libc_hidden_def (getopt_long)
data/voms-2.1.0~rc0/src/server/uuid.c:41:5:  [3] (random) srandom:
  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.
    srandom(time(NULL));
data/voms-2.1.0~rc0/src/server/uuid.c:66: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.
      uuid[i] = (random() & 0x000ff000) >> 12;
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:331:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  file = fopen(realpath, "rb");
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:333:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  free(realpath);
data/voms-2.1.0~rc0/src/sslutils/scutils.c:159:22:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        h_m_pkcs11 = LoadLibrary(val_dllname);
data/voms-2.1.0~rc0/src/sslutils/scutils.c:176: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.
	    dllname = getenv("PKCS11_LIB");
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:532:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        egd_path = getenv("EGD_PATH");
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:1922: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.
                getenv(X509_CERT_DIR);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2322:28:  [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.
        cert_dir = (char *)getenv(X509_CERT_DIR);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2342: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.
        cert_file = (char *)getenv(X509_CERT_FILE);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2362: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/voms-2.1.0~rc0/src/sslutils/sslutils.c:2413:31:  [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.
            globus_location = getenv("GLOBUS_DEPLOY_PATH");
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2417:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                globus_location = getenv("GLOBUS_LOCATION");
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2422:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                globus_location = getenv("GSI_DEPLOY_PATH");
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2427:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                globus_location = getenv("GSI_INSTALL_PATH");
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2492: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.
        user_proxy = (char *)getenv(X509_USER_PROXY);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2505: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.
    if (!user_proxy && !getenv("X509_RUN_AS_SERVER"))
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2546:33:  [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.
            user_cert = (char *)getenv(X509_USER_CERT);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2572: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.
                user_key = (char *)getenv(X509_USER_KEY);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2613:28:  [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/voms-2.1.0~rc0/src/sslutils/sslutils.c:2659: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.
                    certname = getenv("X509_USER_CRED");
data/voms-2.1.0~rc0/src/utils/voms_proxy_info.cc:246:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("VOMS_PROXY_INFO_DONT_VERIFY_AC") != NULL) {
data/voms-2.1.0~rc0/src/utils/voms_verify.cc:162: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.
  if (!(cert_file = getenv("X509_USER_CERT"))){
data/voms-2.1.0~rc0/src/utils/voms_verify.cc:166: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.
  if (!(ca_dir = getenv("X509_CERT_DIR"))){
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:101:31:  [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.
const std::string location = (getenv("VOMS_LOCATION") ? getenv("VOMS_LOCATION") : "");
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:101:57:  [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.
const std::string location = (getenv("VOMS_LOCATION") ? getenv("VOMS_LOCATION") : "");
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:365:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *vo = getenv("VO");
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:483: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.
  char * oldenv = getenv("X509_USER_PROXY");
data/voms-2.1.0~rc0/src/ac/extensions.c:207: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 digest[21];
data/voms-2.1.0~rc0/src/ac/validate.cc:543:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hashed[SHA_DIGEST_LENGTH];
data/voms-2.1.0~rc0/src/ac/validate.cc:590: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 hostname[256];
data/voms-2.1.0~rc0/src/ac/validate.cc:591: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 domainname[256];
data/voms-2.1.0~rc0/src/api/ccapi/api_util.cc:629: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 subjcandidate[1000];
data/voms-2.1.0~rc0/src/api/ccapi/api_util.cc:630: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 issuercandidate[1000];
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:88: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(res, str, len);
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:583: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, output.data(), *datalen);
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:734: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, data.data(), *buflen);
data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc:752:21:  [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).
        data.port = atoi(port.c_str());
data/voms-2.1.0~rc0/src/api/ccapi/voms_api.cc:754:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          data.version = atoi(version.c_str());
data/voms-2.1.0~rc0/src/client/vomsclient.cc:984: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).
    fs.open(datafilename.c_str());
data/voms-2.1.0~rc0/src/client/vomsclient.cc:1219:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    pp = (char *)memcpy(pp, data.data(), len);
data/voms-2.1.0~rc0/src/client/vomsclient.cc:1338: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).
      hours   = atoi(timespec.substr(0, pos).c_str());
data/voms-2.1.0~rc0/src/client/vomsclient.cc:1339: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).
      minutes = atoi(timespec.substr(pos+1).c_str());
data/voms-2.1.0~rc0/src/common/data.cc:133: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 val[INTSIZE];
data/voms-2.1.0~rc0/src/common/data.cc:138: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(val, "%d", i);
data/voms-2.1.0~rc0/src/common/data.cc:148:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/voms-2.1.0~rc0/src/common/data.cc:216: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).
  int fd = open(file,O_RDONLY);
data/voms-2.1.0~rc0/src/common/doio.c:67:13:  [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 *f = fopen(file, "r");
data/voms-2.1.0~rc0/src/common/failure.c:71:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *si_codes[3] = {"", "SEGV_MAPERR", "SEGV_ACCERR"};
data/voms-2.1.0~rc0/src/common/failure.c:73: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).
  FILE *outfile = fopen("/tmp/sigsegv_report", "w+");
data/voms-2.1.0~rc0/src/common/failure.c:133: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 *bt[21];
data/voms-2.1.0~rc0/src/common/list.c:45: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(newvect, vect, (sizeof(char*)*(i-1)));
data/voms-2.1.0~rc0/src/common/options.cc:268: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).
        *((int *)(longopts[index].flag)) = atoi(optarg);
data/voms-2.1.0~rc0/src/common/pass.cc:48:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char password[MAXSIZE]; /* Will contain the password */
data/voms-2.1.0~rc0/src/common/pass.cc:149:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen("/dev/tty","r+"))) {
data/voms-2.1.0~rc0/src/common/pass.cc:185:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(passfile.c_str(),"r"))) {
data/voms-2.1.0~rc0/src/common/xmlcc.cc:70:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char trans2[128] = { 0,   0,  0,  0,  0,  0,  0,  0,
data/voms-2.1.0~rc0/src/common/xmlcc.cc:452: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).
    d->r->lifetime = atoi(d->value.c_str());
data/voms-2.1.0~rc0/src/common/xmlcc.cc:456:21:  [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).
    d->r->version = atoi(d->value.c_str());
data/voms-2.1.0~rc0/src/common/xmlcc.cc:491: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).
    a->num = atoi(a->value.c_str());
data/voms-2.1.0~rc0/src/common/xmlcc.cc:517:21:  [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).
    a->a->version = atoi(a->value.c_str());
data/voms-2.1.0~rc0/src/log/fs.c:131: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).
  int newfd = open(ld->name, O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR);
data/voms-2.1.0~rc0/src/log/fs.c:180: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).
    int fd = open(value, O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR);
data/voms-2.1.0~rc0/src/log/fs.c:194:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ld->maxlog = atoi(value);
data/voms-2.1.0~rc0/src/log/fs.c:232:13:  [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(fname, O_CREAT|O_EXCL|O_RDONLY, S_IRUSR|S_IWUSR)) != -1) {
data/voms-2.1.0~rc0/src/log/fs.c:262:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (pos && atoi(pos+1) > max &&
data/voms-2.1.0~rc0/src/log/fs.c:265: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).
          max = atoi(pos+1);
data/voms-2.1.0~rc0/src/log/log.c:103: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 val[INTSIZE];
data/voms-2.1.0~rc0/src/log/log.c:442: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 val[(((sizeof(pid_t)*CHAR_BIT)/3)+2)];
data/voms-2.1.0~rc0/src/log/log.c:444:13:  [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(val,"%d",(int)pid);
data/voms-2.1.0~rc0/src/log/log.c:477: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 val[(((sizeof(pid_t)*CHAR_BIT)/3)+2)];
data/voms-2.1.0~rc0/src/log/log.c:479:13:  [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(val,"%d",line);
data/voms-2.1.0~rc0/src/log/log.c:505: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 val[(((sizeof(pid_t)*CHAR_BIT)/3)+2)];
data/voms-2.1.0~rc0/src/log/log.c:507:13:  [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(val,"%d",type);
data/voms-2.1.0~rc0/src/log/log.c:519: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 val[(((sizeof(pid_t)*CHAR_BIT)/3)+2)];
data/voms-2.1.0~rc0/src/log/log.c:521:13:  [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(val,"%d",lev);
data/voms-2.1.0~rc0/src/log/log.c:565: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 s[2];
data/voms-2.1.0~rc0/src/replib/daemon.c:61:25:  [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 (!noclose && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1345: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 var[50];
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1351: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.
  cp = memcpy (&var[sizeof (var) - sizeof (envvar_tail)], envvar_tail,
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1345: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 var[50];
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1351: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.
  cp = memcpy (&var[sizeof (var) - sizeof (envvar_tail)], envvar_tail,
data/voms-2.1.0~rc0/src/replib/setenv.c:129: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 ((char *) new_environ, (char *) __environ,
data/voms-2.1.0~rc0/src/replib/setenv.c:132: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 (new_environ[size], name, namelen);
data/voms-2.1.0~rc0/src/replib/setenv.c:134: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 (&new_environ[size][namelen + 1], value, vallen);
data/voms-2.1.0~rc0/src/replib/setenv.c:154: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 (*ep, name, namelen);
data/voms-2.1.0~rc0/src/replib/setenv.c:156: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 (&(*ep)[namelen + 1], value, vallen);
data/voms-2.1.0~rc0/src/replib/strndup.c:39: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(r,s,n);
data/voms-2.1.0~rc0/src/server/uuid.c:39: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).
  int fd = open("/dev/urandom", O_RDONLY);
data/voms-2.1.0~rc0/src/server/uuid.c:50:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void generate_uuid(unsigned char uuid[16])
data/voms-2.1.0~rc0/src/server/uuid.c:53: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).
    int fd = open("/dev/urandom", O_RDONLY);
data/voms-2.1.0~rc0/src/server/vomsd-rest.cc:186:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        lifetime = atoi(cvalue);
data/voms-2.1.0~rc0/src/server/vomsd.cc:480: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).
    int newfd = open(logfile.c_str(), O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR);
data/voms-2.1.0~rc0/src/server/vomsd.cc:1414: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 uuid[16];
data/voms-2.1.0~rc0/src/socklib/Client.cpp:243: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 portstring[36];
data/voms-2.1.0~rc0/src/socklib/Server.cpp:159: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 buffer[4];
data/voms-2.1.0~rc0/src/socklib/Server.cpp:213: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 portstring[36];
data/voms-2.1.0~rc0/src/socklib/Server.cpp:510: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[1000];
data/voms-2.1.0~rc0/src/socklib/Server.cpp:718: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_msg_buf[512];
data/voms-2.1.0~rc0/src/socklib/ipv6sock.cc:46: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 hostname_buf[NI_MAXHOST];
data/voms-2.1.0~rc0/src/socklib/ipv6sock.cc:47: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 port_no_buf[NI_MAXSERV];
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:60: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 hash[EVP_MAX_MD_SIZE+1];
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:88: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(hash, "%08lx", hashvalue);
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:331: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).
  file = fopen(realpath, "rb");
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:344: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 hashed[9];
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:346: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 signing[25]   = "/XXXXXXXX.signing_policy";
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:347: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 namespace[21] = "/XXXXXXXX.namespaces";
data/voms-2.1.0~rc0/src/sslutils/myproxycertinfo.c:121: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(copy, proxypolicy->policy->data, *length);
data/voms-2.1.0~rc0/src/sslutils/myproxycertinfo.c:390: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 oid[256];
data/voms-2.1.0~rc0/src/sslutils/namespaces.c:962: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/voms-2.1.0~rc0/src/sslutils/namespaces.c:979: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 yyformat[sizeof yyunexpected
data/voms-2.1.0~rc0/src/sslutils/namespaces.c:1173: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 yymsgbuf[128];
data/voms-2.1.0~rc0/src/sslutils/proxy.c:106:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd  = open(filename, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600);
data/voms-2.1.0~rc0/src/sslutils/proxy.c:711: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).
  int fd = open(file,O_RDONLY);
data/voms-2.1.0~rc0/src/sslutils/proxy.c:765: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 data[2];
data/voms-2.1.0~rc0/src/sslutils/proxycertinfo.c:58: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 oid[256];
data/voms-2.1.0~rc0/src/sslutils/proxycertinfo.c:148:13:  [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(copy, policy->policy->data, *length);
data/voms-2.1.0~rc0/src/sslutils/proxycertinfo.c:162: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                                policy_lang[128];
data/voms-2.1.0~rc0/src/sslutils/proxycertinfo.c:246:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                                tmp_string[128];
data/voms-2.1.0~rc0/src/sslutils/proxypolicy.c:67: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(copy, policy, length);
data/voms-2.1.0~rc0/src/sslutils/scutils.c:146: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 val_dllname[512] = {"NONE"};
data/voms-2.1.0~rc0/src/sslutils/scutils.c:252: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                         buf[256];
data/voms-2.1.0~rc0/src/sslutils/scutils.c:254:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,"PKCS#11 return=0x%8.8lx",status);
data/voms-2.1.0~rc0/src/sslutils/scutils.c:415: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                                rpin[256];
data/voms-2.1.0~rc0/src/sslutils/signing_policy.c:981: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/voms-2.1.0~rc0/src/sslutils/signing_policy.c:998: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 yyformat[sizeof yyunexpected
data/voms-2.1.0~rc0/src/sslutils/signing_policy.c:1192: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 yymsgbuf[128];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:461: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[200];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:924: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                       md[SHA_DIGEST_LENGTH];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:1134:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char md[SHA_DIGEST_LENGTH + 1];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:1898:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buf[256];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:1902:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf,"%ld (0x%lX)",serial,serial);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2300: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                                val_user_cert[512];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2301: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                                val_user_key[512];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2302: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                                val_user_proxy[512];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2303: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                                val_cert_dir[512];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2304: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                                val_cert_file[512];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2648:28:  [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).
                  int fd = open(default_user_cert, O_RDONLY);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2752: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[1024];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2898: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).
      if((fp = fopen(user_cert,"rb")) == NULL) {
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3042: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).
      if ((fp = fopen(user_key,"rb")) == NULL) {
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3228: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      buff1[32];
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3248:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p,str,size);
data/voms-2.1.0~rc0/src/sslutils/voms_cert_type.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sub_buf[256];
data/voms-2.1.0~rc0/src/utils/voms_proxy_destroy.cc:180: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 delblock[100];
data/voms-2.1.0~rc0/src/utils/voms_proxy_destroy.cc:182: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).
  int fd = open(file, O_RDWR);
data/voms-2.1.0~rc0/src/utils/voms_proxy_info.cc:280:21:  [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).
          hours   = atoi(valid.substr(0, pos).c_str());
data/voms-2.1.0~rc0/src/utils/voms_proxy_info.cc:281:21:  [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).
          minutes = atoi(valid.substr(pos+1).c_str());
data/voms-2.1.0~rc0/src/utils/voms_verify.cc:170: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).
  if (!(cert_fp = fopen(cert_file, "r"))){
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:341:18:  [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 *file = fopen(voinfo.c_str(), "rb");
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:783: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.
          char *vector[1] = {NULL };
data/voms-2.1.0~rc0/src/utils/vomsparser.c:941: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/voms-2.1.0~rc0/src/utils/vomsparser.c:958: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 yyformat[sizeof yyunexpected
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1148: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 yymsgbuf[128];
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1461: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((yyval.param)->value, "::");
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1479:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat((yyval.param)->value, "::");
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1733:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    vo->vomslife = atoi(param->value)*3600;
data/voms-2.1.0~rc0/testsuite/voms/voms/server.c:137: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[256];
data/voms-2.1.0~rc0/testsuite/voms/voms/server2.c:134: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[256];
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/lifetime.c:94: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      buff1[32];
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/lifetime.c:114:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p,str,size);
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/proxyfromfile.c:32: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).
    FILE *f = fopen(argv[1], "rb");
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-cpp/verifier.cc:36: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).
  vd.SetVerificationTime(curtime + atoi(argv[1]));
data/voms-2.1.0~rc0/src/ac/extensions.c:127: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).
      ASN1_STRING_set(tmpr, list, strlen(list));
data/voms-2.1.0~rc0/src/ac/write.c:85: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).
    ASN1_STRING_set(target_str, t, strlen(t));
data/voms-2.1.0~rc0/src/ac/write.c:190: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).
    ASN1_STRING_set(tmpr, buffer, strlen(buffer));
data/voms-2.1.0~rc0/src/ac/write.c:296:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ASN1_OCTET_STRING_set(tmpc, (unsigned char*)fqan[i], strlen(fqan[i]));
data/voms-2.1.0~rc0/src/ac/write.c:348:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ASN1_OCTET_STRING_set(ac_attr->qualifier, (unsigned char *)qual, strlen(qual));
data/voms-2.1.0~rc0/src/ac/write.c:350:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ASN1_OCTET_STRING_set(ac_attr->qualifier, (unsigned char *)vo, strlen(vo));
data/voms-2.1.0~rc0/src/ac/write.c:354:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ASN1_OCTET_STRING_set(ac_attr->name,        (unsigned char *)name,  strlen(name));
data/voms-2.1.0~rc0/src/ac/write.c:355:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ASN1_OCTET_STRING_set(ac_attr->value,       (unsigned char *)value, strlen(value));
data/voms-2.1.0~rc0/src/api/ccapi/api_util.cc:544: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(buffer);
data/voms-2.1.0~rc0/src/api/ccapi/cinterface.cc:84:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(str);
data/voms-2.1.0~rc0/src/client/vomsclient.cc:115:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  i = strlen(buf);
data/voms-2.1.0~rc0/src/client/vomsclient.cc:533: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 (uc && (strlen(uc) != 0)) {
data/voms-2.1.0~rc0/src/client/vomsclient.cc:543: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 (uc && (strlen(uc) != 0)) {
data/voms-2.1.0~rc0/src/common/data.cc:232:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = read(fd, buffer+offset, *size - offset);
data/voms-2.1.0~rc0/src/common/normalize.c:44: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).
    tmp = snprintf_wrap("%s%s%s", copy, to, pos + strlen(from));
data/voms-2.1.0~rc0/src/common/normalize.c:49: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).
    pos = strstr(copy + strlen(to), from);
data/voms-2.1.0~rc0/src/common/pass.cc:161:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while (((ch = fgetc(f)) != '\n') && (ch != EOF) && (i < (MAXSIZE-1)))
data/voms-2.1.0~rc0/src/common/pass.cc:198:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          while (((ch = fgetc(f)) != '\n') && (ch != EOF) && (i < (MAXSIZE-1)))
data/voms-2.1.0~rc0/src/include/ssl_compat.h:48:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int BIO_meth_set_read(BIO_METHOD *biom, int (*read) (BIO *, char *, int));
data/voms-2.1.0~rc0/src/log/fs.c:117:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size = strlen(output);
data/voms-2.1.0~rc0/src/log/fs.c:257: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).
      int baselen = strlen(basename);
data/voms-2.1.0~rc0/src/log/log.c:288: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).
  slen = strlen(src);
data/voms-2.1.0~rc0/src/log/log.c:290:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((tmp = malloc((dest ? strlen(dest) : 0) + (((len == -1) || (slen < len)) ? slen : len)  + 1))) {
data/voms-2.1.0~rc0/src/log/log.c:297:13:  [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.
      tmp = strncat(tmp, src, len);
data/voms-2.1.0~rc0/src/log/sl.c:65: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).
    newstring = malloc(strlen(format) + 1 - 2);
data/voms-2.1.0~rc0/src/log/sl.c:89: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(realstr) > 1000)
data/voms-2.1.0~rc0/src/replib/getopt_long.c:239: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).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/voms-2.1.0~rc0/src/replib/getopt_long.c:242: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).
extern int strlen (const char *);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:433: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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:661: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).
		== (unsigned int) strlen (p->name))
data/voms-2.1.0~rc0/src/replib/getopt_long.c:706: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).
	  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:772: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).
		  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:806: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).
		  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:811: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).
	  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:998: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).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1038: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).
	    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1076: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).
		    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1108: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).
		    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long.c:1112: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).
	    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:239: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).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:242: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).
extern int strlen (const char *);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:433: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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:661: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).
		== (unsigned int) strlen (p->name))
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:706: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).
	  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:772: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).
		  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:806: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).
		  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:811: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).
	  nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:998: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).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1038: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).
	    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1076: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).
		    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1108: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).
		    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/getopt_long_only.c:1112: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).
	    nextchar += strlen (nextchar);
data/voms-2.1.0~rc0/src/replib/setenv.c:88: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).
  const size_t namelen = strlen (name);
data/voms-2.1.0~rc0/src/replib/setenv.c:89: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).
  const size_t vallen = strlen (value) + 1;
data/voms-2.1.0~rc0/src/replib/setenv.c:142: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).
      size_t len = strlen (*ep);
data/voms-2.1.0~rc0/src/replib/setenv.c:168: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).
  const size_t len = strlen (name);
data/voms-2.1.0~rc0/src/server/uuid.c:57:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      readb = read(fd, uuid+hasread, 16 - hasread);
data/voms-2.1.0~rc0/src/server/vomsd-rest.cc:66:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  i = strlen(buf);
data/voms-2.1.0~rc0/src/server/vomsd-rest.cc:165: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(s)) {
data/voms-2.1.0~rc0/src/server/vomsd-rest.cc:241:8:  [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/voms-2.1.0~rc0/src/socklib/io.cc:177: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).
      ret = SSL_write(ssl, str + nwritten, strlen(str) - nwritten);
data/voms-2.1.0~rc0/src/socklib/io.cc:184: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 ((size_t)nwritten == strlen(str))
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:128: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(pattern);
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:356:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(signing + 1, hash, 8);
data/voms-2.1.0~rc0/src/sslutils/evaluate.c:357:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(namespace + 1, hash, 8);
data/voms-2.1.0~rc0/src/sslutils/lex.namespaces.c:1607:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
data/voms-2.1.0~rc0/src/sslutils/lex.namespaces.c:1824: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).
yytext[strlen(yytext)-1]='\0'; yylval_param->string = yytext; BEGIN(INITIAL); return SUBJECT;
data/voms-2.1.0~rc0/src/sslutils/lex.namespaces.c:1835: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).
yytext[strlen(yytext)-1]='\0'; yylval_param->string = yytext; BEGIN(INITIAL); return SUBJECT;
data/voms-2.1.0~rc0/src/sslutils/lex.namespaces.c:2760: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).
	return namespaces_scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/voms-2.1.0~rc0/src/sslutils/lex.signing.c:2552:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
data/voms-2.1.0~rc0/src/sslutils/lex.signing.c:2769: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).
yytext[strlen(yytext)-1]='\0'; yylval_param->string = yytext; BEGIN(INITIAL); return SUBJECTS;
data/voms-2.1.0~rc0/src/sslutils/lex.signing.c:2780: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).
yytext[strlen(yytext)-1]='\0'; yylval_param->string = yytext; BEGIN(INITIAL); return SUBJECTS;
data/voms-2.1.0~rc0/src/sslutils/lex.signing.c:3712: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).
	return signing_scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/voms-2.1.0~rc0/src/sslutils/myproxycertinfo.c:401:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    output = snprintf_wrap("Path Length Constraint: %s%s\n\n", strlen(buffer)%2 ? "0" : "", buffer);
data/voms-2.1.0~rc0/src/sslutils/namespaces.c:843: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).
#   define yystrlen strlen
data/voms-2.1.0~rc0/src/sslutils/proxy.c:346: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(args->voID)) {
data/voms-2.1.0~rc0/src/sslutils/proxy.c:347: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).
    if ((ex4 = CreateProxyExtension("vo", args->voID, strlen(args->voID), 0)) == NULL) {
data/voms-2.1.0~rc0/src/sslutils/proxy.c:488: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).
                                 strlen(args->policytext));
data/voms-2.1.0~rc0/src/sslutils/proxy.c:727:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = read(fd, buffer+offset, *size - offset);
data/voms-2.1.0~rc0/src/sslutils/proxy.c:837: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).
    *string = *string + strlen(*string);
data/voms-2.1.0~rc0/src/sslutils/proxycertinfo.c:69:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    output = snprintf_wrap("Path Length Constraint: %s%s\n\n", strlen(buffer)%2 ? "0" : "", buffer);
data/voms-2.1.0~rc0/src/sslutils/scutils.c:448:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       (CK_CHAR_PTR)pin, strlen(pin));
data/voms-2.1.0~rc0/src/sslutils/scutils.c:663: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(mylabel)) {
data/voms-2.1.0~rc0/src/sslutils/scutils.c:666: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).
    template[ai].ulValueLen = strlen(mylabel) +
data/voms-2.1.0~rc0/src/sslutils/scutils.c:816: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(mylabel)) {
data/voms-2.1.0~rc0/src/sslutils/scutils.c:819: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).
    template[ai].ulValueLen = strlen(mylabel) + HACK_PKCS11_LOCAL_STRING_NULL;
data/voms-2.1.0~rc0/src/sslutils/signing_policy.c:862: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).
#   define yystrlen strlen
data/voms-2.1.0~rc0/src/sslutils/signing_policy.c:1775: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).
      string += strlen(string);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2685:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    default_user_key = strndup(default_user_cert, strlen(default_user_cert));
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:2767: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).
        sz = strlen(buffer);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3181:13:  [1] (buffer) mismatch:
  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 (mismatch)
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3447: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 (strcmp(certname + strlen(certname) - 4, ".p12")) {
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3623: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).
  char *buffername = (char*)malloc(strlen(dnstring)+1);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3624: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).
  unsigned char *buffervalue = (unsigned char*)malloc(strlen(dnstring)+1);
data/voms-2.1.0~rc0/src/sslutils/sslutils.c:3699: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).
      if (strlen((char*)buffervalue) == 0)
data/voms-2.1.0~rc0/src/utils/lex.yy.c:593:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/voms-2.1.0~rc0/src/utils/lex.yy.c:1554:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:123:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  i = strlen(buf);
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:602: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).
      args->newsubjectlen    = strlen(args->newsubject);
data/voms-2.1.0~rc0/src/utils/vomsfake.cc:1134: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 ((size_t)(end - number) != strlen(number))
data/voms-2.1.0~rc0/src/utils/vomsparser.c:822: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).
#   define yystrlen strlen
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1460: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).
  (yyval.param)->value = malloc(strlen((yyvsp[(3) - (5)].input))+strlen((yyvsp[(5) - (5)].input))+4);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1460:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  (yyval.param)->value = malloc(strlen((yyvsp[(3) - (5)].input))+strlen((yyvsp[(5) - (5)].input))+4);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1463: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((yyval.param)->value,"=");
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1477: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).
  (yyval.param)->value = malloc(strlen((yyvsp[(3) - (8)].input))+strlen((yyvsp[(5) - (8)].input))+strlen((yyvsp[(7) - (8)].input))+4);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1477:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  (yyval.param)->value = malloc(strlen((yyvsp[(3) - (8)].input))+strlen((yyvsp[(5) - (8)].input))+strlen((yyvsp[(7) - (8)].input))+4);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1477:99:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  (yyval.param)->value = malloc(strlen((yyvsp[(3) - (8)].input))+strlen((yyvsp[(5) - (8)].input))+strlen((yyvsp[(7) - (8)].input))+4);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1481: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((yyval.param)->value,"=");
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1746: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).
    vo->targets = realloc(vo->targets, strlen(vo->targets) +
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1747: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).
                          strlen(param->value) + 4);
data/voms-2.1.0~rc0/src/utils/vomsparser.c:1749:21:  [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.
      vo->targets = strcat(vo->targets, ",");
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/lifetime.c:53:47:  [1] (buffer) strlen:
  Does not handle 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 life1 = stillvalid(convtime(voms->date1, strlen(voms->date1)));
data/voms-2.1.0~rc0/testsuite/voms/vomsapi-c/lifetime.c:54:47:  [1] (buffer) strlen:
  Does not handle 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 life2 = stillvalid(convtime(voms->date2, strlen(voms->date2)));

ANALYSIS SUMMARY:

Hits = 334
Lines analyzed = 49924 in approximately 1.31 seconds (37972 lines/second)
Physical Source Lines of Code (SLOC) = 32616
Hits@level = [0] 230 [1] 113 [2] 135 [3]  51 [4]  34 [5]   1
Hits@level+ = [0+] 564 [1+] 334 [2+] 221 [3+]  86 [4+]  35 [5+]   1
Hits/KSLOC@level+ = [0+] 17.2921 [1+] 10.2404 [2+] 6.77582 [3+] 2.63674 [4+] 1.07309 [5+] 0.0306598
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.