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/libksba-1.5.0/tests/t-reader.c
Examining data/libksba-1.5.0/tests/t-crl-parser.c
Examining data/libksba-1.5.0/tests/t-der-builder.c
Examining data/libksba-1.5.0/tests/t-common.h
Examining data/libksba-1.5.0/tests/sha1.c
Examining data/libksba-1.5.0/tests/t-cms-parser.c
Examining data/libksba-1.5.0/tests/t-ocsp.c
Examining data/libksba-1.5.0/tests/cert-basic.c
Examining data/libksba-1.5.0/tests/t-dnparser.c
Examining data/libksba-1.5.0/tests/t-oid.c
Examining data/libksba-1.5.0/gl/alloca.c
Examining data/libksba-1.5.0/gl/alloca_.h
Examining data/libksba-1.5.0/gl/dummyobj.c
Examining data/libksba-1.5.0/src/ber-help.c
Examining data/libksba-1.5.0/src/writer.c
Examining data/libksba-1.5.0/src/ksba.h
Examining data/libksba-1.5.0/src/convert.h
Examining data/libksba-1.5.0/src/ocsp.c
Examining data/libksba-1.5.0/src/visibility.c
Examining data/libksba-1.5.0/src/ber-help.h
Examining data/libksba-1.5.0/src/time.c
Examining data/libksba-1.5.0/src/cert.h
Examining data/libksba-1.5.0/src/cms.c
Examining data/libksba-1.5.0/src/ber-decoder.c
Examining data/libksba-1.5.0/src/ber-decoder.h
Examining data/libksba-1.5.0/src/visibility.h
Examining data/libksba-1.5.0/src/ocsp.h
Examining data/libksba-1.5.0/src/util.h
Examining data/libksba-1.5.0/src/crl.h
Examining data/libksba-1.5.0/src/stringbuf.h
Examining data/libksba-1.5.0/src/asn1-func.h
Examining data/libksba-1.5.0/src/der-encoder.c
Examining data/libksba-1.5.0/src/asn1-constants.h
Examining data/libksba-1.5.0/src/oid.c
Examining data/libksba-1.5.0/src/gen-help.c
Examining data/libksba-1.5.0/src/asn1-parse.c
Examining data/libksba-1.5.0/src/cert.c
Examining data/libksba-1.5.0/src/keyinfo.c
Examining data/libksba-1.5.0/src/sexp-parse.h
Examining data/libksba-1.5.0/src/reader.h
Examining data/libksba-1.5.0/src/cms.h
Examining data/libksba-1.5.0/src/der-encoder.h
Examining data/libksba-1.5.0/src/crl.c
Examining data/libksba-1.5.0/src/dn.c
Examining data/libksba-1.5.0/src/der-builder.h
Examining data/libksba-1.5.0/src/name.c
Examining data/libksba-1.5.0/src/writer.h
Examining data/libksba-1.5.0/src/util.c
Examining data/libksba-1.5.0/src/asn1-func2.c
Examining data/libksba-1.5.0/src/asn1-func.c
Examining data/libksba-1.5.0/src/ber-dump.c
Examining data/libksba-1.5.0/src/gen-help.h
Examining data/libksba-1.5.0/src/shared.h
Examining data/libksba-1.5.0/src/der-builder.c
Examining data/libksba-1.5.0/src/asn1-gentables.c
Examining data/libksba-1.5.0/src/version.c
Examining data/libksba-1.5.0/src/cms-parser.c
Examining data/libksba-1.5.0/src/reader.c
Examining data/libksba-1.5.0/src/certreq.h
Examining data/libksba-1.5.0/src/certreq.c
Examining data/libksba-1.5.0/src/keyinfo.h
Examining data/libksba-1.5.0/src/asn1-tables.c

FINAL RESULTS:

data/libksba-1.5.0/src/asn1-func.c:736:11:  [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 (name2, node->name);
data/libksba-1.5.0/src/asn1-func.c:738:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat (name2, p->value.v_cstr);
data/libksba-1.5.0/src/asn1-func.c:759:19:  [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 (name2, node->name);
data/libksba-1.5.0/src/asn1-func.c:761:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		  strcat (name2, p2->value.v_cstr);
data/libksba-1.5.0/src/asn1-func.c:894: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 (name_root, node->name);
data/libksba-1.5.0/src/asn1-func.c:909:19:  [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 (name2, name_root);
data/libksba-1.5.0/src/asn1-func.c:911: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).
                  strcat (name2, p2->value.v_cstr);
data/libksba-1.5.0/src/asn1-func.c:1104: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 (stpcpy (stpcpy (buf, root->name), "."), node->value.v_cstr);
data/libksba-1.5.0/src/asn1-func2.c:213:11:  [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 (tree->filename, mod_name);
data/libksba-1.5.0/src/asn1-gentables.c:32:53:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define  ATTR_PRINTF(a,b)  __attribute__ ((format (printf,a,b)))
data/libksba-1.5.0/src/asn1-gentables.c:70:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, arg_ptr);
data/libksba-1.5.0/src/asn1-gentables.c:100: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 (item->name, name);
data/libksba-1.5.0/src/asn1-parse.c:835: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/libksba-1.5.0/src/asn1-parse.c:1475: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((yyval.str),(yyvsp[0].str)); }
data/libksba-1.5.0/src/asn1-parse.c:1481: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((yyval.str),(yyvsp[0].str)); }
data/libksba-1.5.0/src/asn1-parse.c:1489: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).
                  strcat((yyval.str),(yyvsp[0].str));
data/libksba-1.5.0/src/asn1-parse.c:1496: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((yyval.str),(yyvsp[0].str)); }
data/libksba-1.5.0/src/asn1-parse.c:1502: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((yyval.str),(yyvsp[0].str)); }
data/libksba-1.5.0/src/asn1-parse.c:1508:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    {strcpy((yyval.str),(yyvsp[0].str));}
data/libksba-1.5.0/src/asn1-parse.c:1514:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    {strcpy((yyval.str),(yyvsp[0].str));}
data/libksba-1.5.0/src/asn1-parse.c:1520:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    {strcpy((yyval.str),(yyvsp[0].str));}
data/libksba-1.5.0/src/asn1-parse.c:1526:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    {strcpy((yyval.str),(yyvsp[0].str));}
data/libksba-1.5.0/src/asn1-parse.c:2676:11:  [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 (lvalp->str,string);
data/libksba-1.5.0/src/asn1-parse.c:2694: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(lvalp->str,string);
data/libksba-1.5.0/src/asn1-parse.c:2853: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 (tree->filename, file_name? file_name:"-");
data/libksba-1.5.0/src/ber-dump.c:34:53:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define  ATTR_PRINTF(a,b)  __attribute__ ((format (printf,a,b)))
data/libksba-1.5.0/src/ber-dump.c:54:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, arg_ptr);
data/libksba-1.5.0/src/ber-dump.c:66:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, arg_ptr);
data/libksba-1.5.0/src/cert.c:189: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 (ud->key, key);
data/libksba-1.5.0/src/cert.c:526:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (p, numbuf);
data/libksba-1.5.0/src/cert.c:1296: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 (stpcpy (p, oid), crit? ":C:": ":N:");
data/libksba-1.5.0/src/cert.c:1928: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 (*r_serial, numbuf);
data/libksba-1.5.0/src/cert.c:1941: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 (*r_keyid, numbuf);
data/libksba-1.5.0/src/cert.c:2016: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 (*r_data, numbuf);
data/libksba-1.5.0/src/certreq.c:453: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 (e->der+derlen, oid);
data/libksba-1.5.0/src/cms.c:947: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 (p, numbuf);
data/libksba-1.5.0/src/cms.c:1231: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 (line, p);
data/libksba-1.5.0/src/crl.c:386: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 (*r_serial, numbuf);
data/libksba-1.5.0/src/crl.c:399: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 (*r_keyid, numbuf);
data/libksba-1.5.0/src/crl.c:453: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 (*number, numbuf);
data/libksba-1.5.0/src/crl.c:1143: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 (crl->item.serial, numbuf);
data/libksba-1.5.0/src/ocsp.c:724: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 (ex->data, oid);
data/libksba-1.5.0/src/ocsp.c:791: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 (ex->data, oid);
data/libksba-1.5.0/src/ocsp.c:1563: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 (*r_keyid, numbuf);
data/libksba-1.5.0/src/time.c:137:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (d, s);
data/libksba-1.5.0/src/util.c:164:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (p, str);
data/libksba-1.5.0/tests/cert-basic.c:702:11:  [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 (fname, srcdir);
data/libksba-1.5.0/tests/cert-basic.c:704:11:  [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 (fname, files[idx]);
data/libksba-1.5.0/tests/t-common.h:72: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 (result, srcdir);
data/libksba-1.5.0/tests/t-common.h:74: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 (result, fname);
data/libksba-1.5.0/tests/t-crl-parser.c:399:11:  [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 (fname, srcdir);
data/libksba-1.5.0/tests/t-crl-parser.c:401:11:  [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 (fname, files[idx]);
data/libksba-1.5.0/src/ber-decoder.c:1105: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.
  d->debug = !!getenv("KSBA_DEBUG_BER_DECODER");
data/libksba-1.5.0/src/ber-decoder.c:1221: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.
  d->debug = !!getenv("KSBA_DEBUG_BER_DECODER");
data/libksba-1.5.0/tests/cert-basic.c:34: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.
#define getenv(a) (NULL)
data/libksba-1.5.0/tests/cert-basic.c:642:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *srcdir = getenv ("srcdir");
data/libksba-1.5.0/tests/t-common.h:68: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.
    if(!(srcdir = getenv ("srcdir")))
data/libksba-1.5.0/tests/t-crl-parser.c:363:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *srcdir = getenv ("srcdir");
data/libksba-1.5.0/tests/t-ocsp.c:388:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *srcdir = getenv ("srcdir");
data/libksba-1.5.0/gl/alloca.c:135: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 align[ALIGN_SIZE];	/* To force sizeof(header).  */
data/libksba-1.5.0/src/asn1-func.c:157:11:  [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 (node->value.v_mem.buf, value, len);
data/libksba-1.5.0/src/asn1-func.c:181: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 helpbuf[1];
data/libksba-1.5.0/src/asn1-func.c:303: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[129];
data/libksba-1.5.0/src/asn1-func.c:725: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 name2[129];
data/libksba-1.5.0/src/asn1-func.c:885:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name_root[129], name2[129*2+1];
data/libksba-1.5.0/src/asn1-func.c:1085: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_space[50];
data/libksba-1.5.0/src/asn1-func.h:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char filename[1];
data/libksba-1.5.0/src/asn1-gentables.c:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1];
data/libksba-1.5.0/src/asn1-gentables.c:187: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 numbuf[50];
data/libksba-1.5.0/src/asn1-gentables.c:208: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 (structure_name->name, slash_p, dot_p - slash_p);
data/libksba-1.5.0/src/asn1-gentables.c:355: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).
      nullfp = fopen (DEVNULL_NAME, "w");
data/libksba-1.5.0/src/asn1-parse.c:201:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[MAX_STRING_LENGTH];
data/libksba-1.5.0/src/asn1-parse.c:1082: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/libksba-1.5.0/src/asn1-parse.c:1274: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/libksba-1.5.0/src/asn1-parse.c:2606: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 string[MAX_STRING_LENGTH];
data/libksba-1.5.0/src/asn1-parse.c:2827:28:  [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).
  parsectl.fp = file_name? fopen (file_name, "r") : NULL;
data/libksba-1.5.0/src/ber-decoder.c:238: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.
  static const char * const names[31] = {
data/libksba-1.5.0/src/ber-decoder.c:435: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 dummy[256];
data/libksba-1.5.0/src/ber-decoder.c:902: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->image.buf + d->image.used, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/ber-dump.c:158: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).
          fp = fopen (*argv, "r");
data/libksba-1.5.0/src/ber-help.c:322: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 buf[50];
data/libksba-1.5.0/src/ber-help.h:42: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 buf[10]; /* buffer for the TL */
data/libksba-1.5.0/src/cert.c:171:11:  [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 (ud->databuf, data, datalen);
data/libksba-1.5.0/src/cert.c:180:11:  [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 (ud->data, data, datalen);
data/libksba-1.5.0/src/cert.c:192:11:  [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 (ud->databuf, data, datalen);
data/libksba-1.5.0/src/cert.c:204:11:  [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 (ud->data, data, datalen);
data/libksba-1.5.0/src/cert.c:249: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 (buffer, ud->data, ud->datalen);
data/libksba-1.5.0/src/cert.c:503: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 numbuf[22];
data/libksba-1.5.0/src/cert.c:521: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 (numbuf,"(%u:", (unsigned int)n->len);
data/libksba-1.5.0/src/cert.c:527: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+numbuflen, cert->image + n->off + n->nhdr, n->len);
data/libksba-1.5.0/src/cert.c:700:11:  [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+1, der, ti.length);
data/libksba-1.5.0/src/cert.c:708: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 numbuf[20], *numbufp;
data/libksba-1.5.0/src/cert.c:718:11:  [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, der, ti.length);
data/libksba-1.5.0/src/cert.c:1822: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 numbuf[30];
data/libksba-1.5.0/src/cert.c:1923: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 (numbuf,"(%u:", (unsigned int)ti.length);
data/libksba-1.5.0/src/cert.c:1929: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 (*r_serial+numbuflen, der, ti.length);
data/libksba-1.5.0/src/cert.c:1936:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (numbuf,"(%u:", (unsigned int)keyid_derlen);
data/libksba-1.5.0/src/cert.c:1942: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 (*r_keyid+numbuflen, keyid_der, keyid_derlen);
data/libksba-1.5.0/src/cert.c:1967: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 numbuf[30];
data/libksba-1.5.0/src/cert.c:2011: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 (numbuf,"(%u:", (unsigned int)ti.length);
data/libksba-1.5.0/src/cert.c:2017: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 (*r_data+numbuflen, der, ti.length);
data/libksba-1.5.0/src/cert.h:62: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 databuf[sizeof (int)];
data/libksba-1.5.0/src/cert.h:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char key[1];
data/libksba-1.5.0/src/certreq.c:231:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (cr->x509.serial.der, p, n);
data/libksba-1.5.0/src/certreq.c:363: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 (der, name, namelen);
data/libksba-1.5.0/src/certreq.c:407: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 (der, g->data, g->datalen);
data/libksba-1.5.0/src/certreq.c:452: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 (e->der, der, derlen);
data/libksba-1.5.0/src/certreq.c:516: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 (cr->sig_val.algo, s, n);
data/libksba-1.5.0/src/certreq.c:598:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (buf, s, n);
data/libksba-1.5.0/src/certreq.c:612:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (buf, s, n);
data/libksba-1.5.0/src/certreq.c:871:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 templ[36];
data/libksba-1.5.0/src/certreq.c:884:17:  [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 (tp, cr->x509.not_before, 8);
data/libksba-1.5.0/src/certreq.c:886:17:  [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 (tp, cr->x509.not_before+9, 6);
data/libksba-1.5.0/src/certreq.c:893:17:  [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 (tp, cr->x509.not_before+2, 6);
data/libksba-1.5.0/src/certreq.c:895:17:  [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 (tp, cr->x509.not_before+9, 6);
data/libksba-1.5.0/src/certreq.c:903: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 (tp, "110101000000", 12);
data/libksba-1.5.0/src/certreq.c:914:17:  [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 (tp, cr->x509.not_after, 8);
data/libksba-1.5.0/src/certreq.c:916:17:  [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 (tp, cr->x509.not_after+9, 6);
data/libksba-1.5.0/src/certreq.c:923:17:  [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 (tp, cr->x509.not_after+2, 6);
data/libksba-1.5.0/src/certreq.c:925:17:  [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 (tp, cr->x509.not_after+9, 6);
data/libksba-1.5.0/src/certreq.c:931: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 (tp,"20630405170000", 14);
data/libksba-1.5.0/src/certreq.h:47: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 der[1];
data/libksba-1.5.0/src/certreq.h: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 data[1];   /* The actual data:  encoded tag, llength and value. */
data/libksba-1.5.0/src/cms-parser.c:153: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 oidbuf[100]; /* pretty large for an OID */
data/libksba-1.5.0/src/cms-parser.c:259: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 tmpbuf[500]; /* for OID or algorithmIdentifier */
data/libksba-1.5.0/src/cms-parser.c:323: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/cms-parser.c:732: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.
              char dummy[256];
data/libksba-1.5.0/src/cms.c:96: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.
static const char oid_messageDigest[9] ="\x2A\x86\x48\x86\xF7\x0D\x01\x09\x04";
data/libksba-1.5.0/src/cms.c:99: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.
static const char oid_signingTime[9] = "\x2A\x86\x48\x86\xF7\x0D\x01\x09\x05";
data/libksba-1.5.0/src/cms.c:181: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[4096];
data/libksba-1.5.0/src/cms.c:324: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[4096];
data/libksba-1.5.0/src/cms.c:419: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[4096];
data/libksba-1.5.0/src/cms.c:453: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 buffer[24];
data/libksba-1.5.0/src/cms.c:784: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 (iv, cms->encr_iv, cms->encr_ivlen);
data/libksba-1.5.0/src/cms.c:926: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 numbuf[22];
data/libksba-1.5.0/src/cms.c:942:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (numbuf,"(%u:", (unsigned int)n->len);
data/libksba-1.5.0/src/cms.c:948: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 (p+numbuflen, image + n->off + n->nhdr, n->len);
data/libksba-1.5.0/src/cms.c:1084: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 (*r_digest, si->image + n->off + n->nhdr, n->len);
data/libksba-1.5.0/src/cms.c:1750: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 (opl->parm, der, derlen);
data/libksba-1.5.0/src/cms.c:1801: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 (cl->msg_digest, digest, digest_len);
data/libksba-1.5.0/src/cms.c:1926: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 (sv->algo, s, n);
data/libksba-1.5.0/src/cms.c:1979:11:  [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 (sv->value, s, n);
data/libksba-1.5.0/src/cms.c:1991:11:  [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 (sv->ecc.r, s, n);
data/libksba-1.5.0/src/cms.c:2065: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 (cms->encr_iv, iv, ivlen);
data/libksba-1.5.0/src/cms.c:2149: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 (cl->enc_val.algo, s, n);
data/libksba-1.5.0/src/cms.c:2188:11:  [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 (cl->enc_val.value, s, n);
data/libksba-1.5.0/src/cms.c:2199:11:  [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 (cl->enc_val.ecdh.e, s, n);
data/libksba-1.5.0/src/cms.c:2208:11:  [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 (cl->enc_val.ecdh.encr_algo, s, n);
data/libksba-1.5.0/src/cms.c:2217:11:  [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 (cl->enc_val.ecdh.wrap_algo, s, n);
data/libksba-1.5.0/src/cms.h:74: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 parm[1];
data/libksba-1.5.0/src/cms.h:82: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 msg_digest[64];  /* enough space to store a SHA-512 hash */
data/libksba-1.5.0/src/crl.c:67: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 (crl->hashbuf.buffer+crl->hashbuf.used, buffer, n);
data/libksba-1.5.0/src/crl.c:282: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 numbuf[30];
data/libksba-1.5.0/src/crl.c:381: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 (numbuf,"(%u:", (unsigned int)ti.length);
data/libksba-1.5.0/src/crl.c:387: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 (*r_serial+numbuflen, der, ti.length);
data/libksba-1.5.0/src/crl.c:394:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (numbuf,"(%u:", (unsigned int)keyid_derlen);
data/libksba-1.5.0/src/crl.c:400: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 (*r_keyid+numbuflen, keyid_der, keyid_derlen);
data/libksba-1.5.0/src/crl.c:418: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 numbuf[30];
data/libksba-1.5.0/src/crl.c:448: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 (numbuf,"(%u:", (unsigned int)ti.length);
data/libksba-1.5.0/src/crl.c:454: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 (*number+numbuflen, der, ti.length);
data/libksba-1.5.0/src/crl.c:764: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 (e->der, der + off, len);
data/libksba-1.5.0/src/crl.c:784: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 tmpbuf[500]; /* for OID or algorithmIdentifier */
data/libksba-1.5.0/src/crl.c:879: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:944: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:971: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:1084: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 tmpbuf[4096]; /* for time, serial number and extensions */
data/libksba-1.5.0/src/crl.c:1085: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 numbuf[22];
data/libksba-1.5.0/src/crl.c:1131: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:1138: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 (numbuf,"(%u:", (unsigned int)ti.length);
data/libksba-1.5.0/src/crl.c:1144: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 (crl->item.serial+numbuflen, tmpbuf+ti.nhdr, ti.length);
data/libksba-1.5.0/src/crl.c:1168: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:1217:11:  [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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:1252: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 tmpbuf[4096]; /* for extensions */
data/libksba-1.5.0/src/crl.c:1299: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:1324: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 tmpbuf[2048]; /* for the sig algo and bitstr */
data/libksba-1.5.0/src/crl.c:1339: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 (tmpbuf, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.c:1354: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 (tmpbuf+n, ti.buf, ti.nhdr);
data/libksba-1.5.0/src/crl.h:47: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 der[1];
data/libksba-1.5.0/src/crl.h:92: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[8192];
data/libksba-1.5.0/src/der-builder.c:227: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, value, valuelen);
data/libksba-1.5.0/src/der-builder.c:274:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p+1, value, valuelen);
data/libksba-1.5.0/src/der-builder.c:305:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (p+need_extra, value, valuelen);
data/libksba-1.5.0/src/der-builder.c:332:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, der, derlen);
data/libksba-1.5.0/src/der-builder.c:653:11:  [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, d->items[idx].value, d->items[idx].valuelen);
data/libksba-1.5.0/src/der-encoder.c:254: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[50], *p;
data/libksba-1.5.0/src/der-encoder.c:263:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, atime, 8);
data/libksba-1.5.0/src/der-encoder.c:264:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf+8, atime+9, 6);
data/libksba-1.5.0/src/der-encoder.c:614:11:  [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 (image+len, n->value.v_mem.buf, nbytes);
data/libksba-1.5.0/src/dn.c:87:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char charclasses[128] = {
data/libksba-1.5.0/src/dn.c:110: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 tmp[4];
data/libksba-1.5.0/src/dn.c:151: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 tmp[6];
data/libksba-1.5.0/src/dn.c:223: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 tmp[2];
data/libksba-1.5.0/src/dn.c:265: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 tmp[7];
data/libksba-1.5.0/src/dn.c:354: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 tmp[3];
data/libksba-1.5.0/src/dn.c:496: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 tmp[3];
data/libksba-1.5.0/src/dn.c:851:11:  [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, string, n);
data/libksba-1.5.0/src/keyinfo.c:432: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 (result, buf, buflen);
data/libksba-1.5.0/src/keyinfo.c:668:11:  [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_parm, der+off2, len2);
data/libksba-1.5.0/src/keyinfo.c:831: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.
              char tmp[2];
data/libksba-1.5.0/src/keyinfo.c:877: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 tmp[2];
data/libksba-1.5.0/src/keyinfo.c:1501: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.
              char tmp[2];
data/libksba-1.5.0/src/ksba.h:211:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char ksba_isotime_t[16];
data/libksba-1.5.0/src/name.c:168: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 numbuf[21];
data/libksba-1.5.0/src/name.c:182:11:  [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, der, ti.length);
data/libksba-1.5.0/src/name.c:195:11:  [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 (numbuf, "%u:", (unsigned int)ti.length);
data/libksba-1.5.0/src/name.c:205:11:  [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, der, ti.length);
data/libksba-1.5.0/src/name.c:271: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 (buf, s, n);
data/libksba-1.5.0/src/ocsp.c:207: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 (ocsp->nonce, nonce, noncelen);
data/libksba-1.5.0/src/ocsp.c:433: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 (ri->serialno, der, derlen);
data/libksba-1.5.0/src/ocsp.c:728: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 (ex->data + ex->off, data, ti.length);
data/libksba-1.5.0/src/ocsp.c:795: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 (ex->data + ex->off, data, ti.length);
data/libksba-1.5.0/src/ocsp.c:1230: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 (ocsp->responder_id.keyid, *data, ti.length);
data/libksba-1.5.0/src/ocsp.c:1555: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 numbuf[50];
data/libksba-1.5.0/src/ocsp.c:1558:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (numbuf,"(%lu:", (unsigned long)ocsp->responder_id.keyidlen);
data/libksba-1.5.0/src/ocsp.c:1564: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 (*r_keyid+numbuflen,
data/libksba-1.5.0/src/ocsp.h:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[1];  /* This is made up of the OID string followed by the
data/libksba-1.5.0/src/ocsp.h:64: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 issuer_name_hash[20]; /* The hash as used by the request. */
data/libksba-1.5.0/src/ocsp.h:65: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 issuer_key_hash[20];  /* The hash as used by the request. */
data/libksba-1.5.0/src/ocsp.h:86: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 nonce[16];  /* The random nonce we sent; actual length
data/libksba-1.5.0/src/oid.c:85:10:  [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.
    p += sprintf (p, "0.%d", buf[n]);
data/libksba-1.5.0/src/oid.c:87:10:  [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.
    p += sprintf (p, "1.%d", buf[n]-40);
data/libksba-1.5.0/src/oid.c:100:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (p, "2.%lu", val);
data/libksba-1.5.0/src/oid.c:113:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (p, ".%lu", val);
data/libksba-1.5.0/src/oid.c:282: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 (string, buffer, buflen);
data/libksba-1.5.0/src/reader.c:134:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (*buffer, r->unread.buf, n);
data/libksba-1.5.0/src/reader.c:185: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 (r->u.mem.buffer, buffer, length);
data/libksba-1.5.0/src/reader.c:337: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 (buffer, r->unread.buf + r->unread.readpos, nbytes);
data/libksba-1.5.0/src/reader.c:363: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 (buffer, r->u.mem.buffer + r->u.mem.readpos, nbytes);
data/libksba-1.5.0/src/reader.c:473: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 (r->unread.buf, buffer, count);
data/libksba-1.5.0/src/reader.c:478: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 (r->unread.buf+r->unread.length, buffer, count);
data/libksba-1.5.0/src/stringbuf.h:87: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 (sb->buf+sb->len, text, n);
data/libksba-1.5.0/src/stringbuf.h:140: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[20];
data/libksba-1.5.0/src/stringbuf.h:141: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,"%u:", (unsigned int)length);
data/libksba-1.5.0/src/stringbuf.h:157:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[35];
data/libksba-1.5.0/src/time.c:76: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 (timebuf+2, s, 6);
data/libksba-1.5.0/src/time.c:81: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 (timebuf, s, 8);
data/libksba-1.5.0/src/time.c:87: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 (timebuf+9, s, 4);
data/libksba-1.5.0/src/time.c:92: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 (timebuf+9, s, 6);
data/libksba-1.5.0/src/time.c:163: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 (timebuf,"%04d%02d%02dT%02d%02d%02d",
data/libksba-1.5.0/src/writer.c:334: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 (w->u.mem.buffer + w->nwritten, buffer, length);
data/libksba-1.5.0/src/writer.c:388: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 outbuf[4096];
data/libksba-1.5.0/tests/cert-basic.c:445:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "rb");
data/libksba-1.5.0/tests/cert-basic.c:703:11:  [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 (fname, "/samples/");
data/libksba-1.5.0/tests/sha1.c:49: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 buf[64];
data/libksba-1.5.0/tests/sha1.c:89: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( x, data, 64 );
data/libksba-1.5.0/tests/sha1.c:334: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 (outbuf, hd.buf, 20);
data/libksba-1.5.0/tests/t-cms-parser.c:74:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "r");
data/libksba-1.5.0/tests/t-crl-parser.c:116: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).
      hashlog = fopen (buf, "wb");
data/libksba-1.5.0/tests/t-crl-parser.c:125:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "rb");
data/libksba-1.5.0/tests/t-crl-parser.c:400:11:  [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 (fname, "/samples/");
data/libksba-1.5.0/tests/t-dnparser.c:140: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 inputbuf[4096];
data/libksba-1.5.0/tests/t-ocsp.c:63:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "rb");
data/libksba-1.5.0/tests/t-ocsp.c:102:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "r");
data/libksba-1.5.0/tests/t-ocsp.c:157:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen ("a.req", "wb");
data/libksba-1.5.0/tests/t-reader.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 (path, O_RDONLY);
data/libksba-1.5.0/tests/t-reader.c:82: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).
  FILE* fp = fopen (path, "r");
data/libksba-1.5.0/tests/t-reader.c:125: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 (path, O_RDONLY);
data/libksba-1.5.0/src/asn1-func.c:734:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (node->name)+strlen(p->value.v_cstr)+2 > DIM(name2))
data/libksba-1.5.0/src/asn1-func.c:734:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (node->name)+strlen(p->value.v_cstr)+2 > DIM(name2))
data/libksba-1.5.0/src/asn1-func.c:737:11:  [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 (name2, ".");
data/libksba-1.5.0/src/asn1-func.c:756:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen (node->name)
data/libksba-1.5.0/src/asn1-func.c:757: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).
                      +strlen(p->value.v_cstr)+2 > DIM(name2))
data/libksba-1.5.0/src/asn1-func.c:760:19:  [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 (name2, ".");
data/libksba-1.5.0/src/asn1-func.c:892: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(node->name) >= DIM(name_root)-1)
data/libksba-1.5.0/src/asn1-func.c:907:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen(p2->value.v_cstr)+1+strlen(name2) >= DIM(name2)-1)
data/libksba-1.5.0/src/asn1-func.c:907:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen(p2->value.v_cstr)+1+strlen(name2) >= DIM(name2)-1)
data/libksba-1.5.0/src/asn1-func.c:910:19:  [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 (name2, ".");
data/libksba-1.5.0/src/asn1-func.c:1096: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).
  bufsize = strlen (root->name) + strlen (node->value.v_cstr) + 2;
data/libksba-1.5.0/src/asn1-func.c:1096: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).
  bufsize = strlen (root->name) + strlen (node->value.v_cstr) + 2;
data/libksba-1.5.0/src/asn1-func2.c:206:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tree = xtrymalloc (sizeof *tree + strlen (mod_name));
data/libksba-1.5.0/src/asn1-gentables.c:96: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).
      off += strlen (item->name) + 1;
data/libksba-1.5.0/src/asn1-gentables.c:99: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).
  item = xmalloc ( sizeof *item + strlen (name));
data/libksba-1.5.0/src/asn1-gentables.c:105: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).
  string_table_offset += strlen (name) + 1;
data/libksba-1.5.0/src/asn1-gentables.c:115: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).
  const size_t len_a = strlen(a);
data/libksba-1.5.0/src/asn1-gentables.c:116: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).
  const size_t len_b = strlen(b);
data/libksba-1.5.0/src/asn1-gentables.c:198:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dot_p = file_name + strlen (file_name);
data/libksba-1.5.0/src/asn1-parse.c:982: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/libksba-1.5.0/src/asn1-parse.c:1488:19:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                  strcpy((yyval.str),"-");
data/libksba-1.5.0/src/asn1-parse.c:2615:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ( (c=fgetc (fp))==' ' || c=='\t')
data/libksba-1.5.0/src/asn1-parse.c:2631:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if ( (c=fgetc(fp))!='-')
data/libksba-1.5.0/src/asn1-parse.c:2640:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              while ( (c=fgetc(fp))!=EOF && c != '\n' )
data/libksba-1.5.0/src/asn1-parse.c:2659:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ( !((c=fgetc(fp))==EOF
data/libksba-1.5.0/src/asn1-parse.c:2684: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 (string);
data/libksba-1.5.0/src/asn1-parse.c:2850: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).
      tree = xmalloc ( sizeof *tree + (file_name? strlen (file_name):1) );
data/libksba-1.5.0/src/cert.c:186: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).
      ud = xtrycalloc (1, sizeof *ud + strlen (key));
data/libksba-1.5.0/src/cert.c:522:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/cert.c:1281: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).
      *policies = xtrymalloc (strlen (oid) + 4);
data/libksba-1.5.0/src/cert.c:1289: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).
                               strlen(*policies) + 1 + strlen (oid) + 4);
data/libksba-1.5.0/src/cert.c:1289:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               strlen(*policies) + 1 + strlen (oid) + 4);
data/libksba-1.5.0/src/cert.c:1293:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p = stpcpy (tmp+strlen (tmp), "\n");;
data/libksba-1.5.0/src/cert.c:1924:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/cert.c:1937: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).
      numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/cert.c:2012:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/certreq.c:321:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen (name);
data/libksba-1.5.0/src/certreq.c:446: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).
  oidlen = strlen (oid);
data/libksba-1.5.0/src/cms.c:943: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).
      numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/cms.c:1211: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).
        line = retstr = xtrymalloc (strlen (p) + 2);
data/libksba-1.5.0/src/cms.c:1215: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).
                                   strlen (retstr) + 1 + strlen (p) + 2);
data/libksba-1.5.0/src/cms.c:1215: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).
                                   strlen (retstr) + 1 + strlen (p) + 2);
data/libksba-1.5.0/src/cms.c:1221:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              line = stpcpy (retstr + strlen (retstr), "\n");
data/libksba-1.5.0/src/crl.c:382:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/crl.c:395: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).
      numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/crl.c:449:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/crl.c:1139:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/der-encoder.c:265:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy (buf+14, "Z");
data/libksba-1.5.0/src/der-encoder.c:291: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).
      return store_value (node, p, strlen (p));
data/libksba-1.5.0/src/der-encoder.c:309:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      return store_value (node, string, strlen (string));
data/libksba-1.5.0/src/dn.c:873:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if ( n == strlen (oid_name_tbl[i].name)
data/libksba-1.5.0/src/dn.c:1196: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).
          *rerrlen = len? len : strlen (s);
data/libksba-1.5.0/src/keyinfo.c:416:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (buflen == strlen (curve_names[i].name)
data/libksba-1.5.0/src/keyinfo.c:422: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).
      buflen = strlen (curve_names[i].oid);
data/libksba-1.5.0/src/keyinfo.c:925: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 (buflen == strlen (sig_algo_table[i].oidstring)
data/libksba-1.5.0/src/keyinfo.c:928: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 (buflen == strlen (sig_algo_table[i].algo_string)
data/libksba-1.5.0/src/keyinfo.c:944:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (buflen == strlen (pk_algo_table[i].oidstring)
data/libksba-1.5.0/src/keyinfo.c:947:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (buflen == strlen (pk_algo_table[i].algo_string)
data/libksba-1.5.0/src/name.c:196:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          p = name->names[n] = xtrymalloc (1+5+strlen (numbuf)
data/libksba-1.5.0/src/ocsp.c:717: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).
      ex = xtrymalloc (sizeof *ex + strlen (oid) + ti.length);
data/libksba-1.5.0/src/ocsp.c:725: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).
      ex->data[strlen (oid)] = 0;
data/libksba-1.5.0/src/ocsp.c:726: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).
      ex->off = strlen (oid) + 1;
data/libksba-1.5.0/src/ocsp.c:784: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).
      ex = xtrymalloc (sizeof *ex + strlen (oid) + ti.length);
data/libksba-1.5.0/src/ocsp.c:792: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).
      ex->data[strlen (oid)] = 0;
data/libksba-1.5.0/src/ocsp.c:793: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).
      ex->off = strlen (oid) + 1;
data/libksba-1.5.0/src/ocsp.c:1559: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).
      numbuflen = strlen (numbuf);
data/libksba-1.5.0/src/oid.c:101: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).
    p += strlen (p);
data/libksba-1.5.0/src/oid.c:114: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).
      p += strlen (p);
data/libksba-1.5.0/src/oid.c:204: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).
  buf = xtrymalloc ( strlen(string) + 2);
data/libksba-1.5.0/src/reader.c:424:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      n = read (r->u.fd, buffer, length);
data/libksba-1.5.0/src/sexp-parse.h:102: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).
  size_t toklen = strlen (token);
data/libksba-1.5.0/src/stringbuf.h:133: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).
  put_stringbuf_mem (sb, text,strlen (text));
data/libksba-1.5.0/src/stringbuf.h:150: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).
  put_stringbuf_mem_sexp (sb, text, strlen (text));
data/libksba-1.5.0/src/util.c:162: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).
  char *p = ksba_malloc (strlen(str)+1);
data/libksba-1.5.0/tests/cert-basic.c:128: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).
        lf = list + strlen (list);
data/libksba-1.5.0/tests/cert-basic.c:701:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          fname = xmalloc (strlen (srcdir) + 10 + strlen (files[idx]) + 1);
data/libksba-1.5.0/tests/cert-basic.c:701: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).
          fname = xmalloc (strlen (srcdir) + 10 + strlen (files[idx]) + 1);
data/libksba-1.5.0/tests/t-common.h:71: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).
  result = xmalloc (strlen (srcdir) + 1 + strlen (fname) + 1);
data/libksba-1.5.0/tests/t-common.h:71:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = xmalloc (strlen (srcdir) + 1 + strlen (fname) + 1);
data/libksba-1.5.0/tests/t-common.h:73: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 (result, "/");
data/libksba-1.5.0/tests/t-crl-parser.c:398:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          fname = xmalloc (strlen (srcdir) + 10 + strlen (files[idx]) + 1);
data/libksba-1.5.0/tests/t-crl-parser.c:398: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).
          fname = xmalloc (strlen (srcdir) + 10 + strlen (files[idx]) + 1);
data/libksba-1.5.0/tests/t-reader.c:148:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (p < st.st_size && (ret = read(fd, mem + p, st.st_size - p)))

ANALYSIS SUMMARY:

Hits = 340
Lines analyzed = 34548 in approximately 1.02 seconds (33762 lines/second)
Physical Source Lines of Code (SLOC) = 25492
Hits@level = [0] 233 [1]  83 [2] 198 [3]   7 [4]  52 [5]   0
Hits@level+ = [0+] 573 [1+] 340 [2+] 257 [3+]  59 [4+]  52 [5+]   0
Hits/KSLOC@level+ = [0+] 22.4776 [1+] 13.3375 [2+] 10.0816 [3+] 2.31445 [4+] 2.03986 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.