crypto/pkcs12/p12_decr.c:110: error: BUFFER_OVERRUN_L3
  Offset: [2, +oo] Size: [1, +oo] by call to `ASN1_item_d2i`.
Showing all 23 steps of the trace


crypto/pkcs12/p12_decr.c:91:10: Call
89.       int outlen;
90.   
91.       if (!PKCS12_pbe_crypt(algor, pass, passlen, oct->data, oct->length,
               ^
92.                             &out, &outlen, 0)) {
93.           PKCS12err(PKCS12_F_PKCS12_ITEM_DECRYPT_D2I,

crypto/pkcs12/p12_decr.c:24:1: Parameter `**data`
  22.    */
  23.   
  24. > unsigned char *PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass,
  25.                                   int passlen, unsigned char *in, int inlen,
  26.                                   unsigned char **data, int *datalen, int en_de)

crypto/pkcs12/p12_decr.c:97:5: Assignment
95.           return NULL;
96.       }
97.       p = out;
           ^
98.   #ifdef OPENSSL_DEBUG_DECRYPT
99.       {

crypto/pkcs12/p12_decr.c:110:11: Call
108.       }
109.   #endif
110.       ret = ASN1_item_d2i(NULL, &p, outlen, it);
                 ^
111.       if (zbuf)
112.           OPENSSL_cleanse(out, outlen);

crypto/asn1/tasn_dec.c:94:1: Parameter `**in`
  92.    */
  93.   
  94. > ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval,
  95.                             const unsigned char **in, long len,
  96.                             const ASN1_ITEM *it)

crypto/asn1/tasn_dec.c:103:9: Call
  101.           pval = &ptmpval;
  102.       asn1_tlc_clear_nc(&c);
  103.       if (ASN1_item_ex_d2i(pval, in, len, it, -1, 0, 0, &c) > 0)
                 ^
  104.           return *pval;
  105.       return NULL;

crypto/asn1/tasn_dec.c:108:1: Parameter `**in`
    106.   }
    107.   
    108. > int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
    109.                        const ASN1_ITEM *it,
    110.                        int tag, int aclass, char opt, ASN1_TLC *ctx)

crypto/asn1/tasn_dec.c:113:10: Call
    111.   {
    112.       int rv;
    113.       rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx);
                    ^
    114.       if (rv <= 0)
    115.           ASN1_item_ex_free(pval, it);

crypto/asn1/tasn_dec.c:124:1: Parameter `**in`
      122.    */
      123.   
      124. > static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in,
      125.                                  long len, const ASN1_ITEM *it,
      126.                                  int tag, int aclass, char opt, ASN1_TLC *ctx)

crypto/asn1/tasn_dec.c:168:9: Assignment
      166.   
      167.       case ASN1_ITYPE_MSTRING:
      168.           p = *in;
                     ^
      169.           /* Just read in tag and class */
      170.           ret = asn1_check_tlen(NULL, &otag, &oclass, NULL, NULL,

crypto/asn1/tasn_dec.c:170:15: Call
      168.           p = *in;
      169.           /* Just read in tag and class */
      170.           ret = asn1_check_tlen(NULL, &otag, &oclass, NULL, NULL,
                           ^
      171.                                 &p, len, -1, 0, 1, ctx);
      172.           if (!ret) {

crypto/asn1/tasn_dec.c:1052:1: Parameter `**in`
        1050.    */
        1051.   
        1052. > static int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass,
        1053.                              char *inf, char *cst,
        1054.                              const unsigned char **in, long len,

crypto/asn1/tasn_dec.c:1061:5: Assignment
        1059.       long plen;
        1060.       const unsigned char *p, *q;
        1061.       p = *in;
                    ^
        1062.       q = p;
        1063.   

crypto/asn1/tasn_dec.c:1071:13: Call
        1069.           p += ctx->hdrlen;
        1070.       } else {
        1071.           i = ASN1_get_object(&p, &plen, &ptag, &pclass, len);
                            ^
        1072.           if (ctx) {
        1073.               ctx->ret = i;

crypto/asn1/asn1_lib.c:43:1: Parameter `**pp`
          41.   }
          42.   
          43. > int ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,
          44.                       int *pclass, long omax)
          45.   {

crypto/asn1/asn1_lib.c:48:5: Assignment
          46.       int i, ret;
          47.       long l;
          48.       const unsigned char *p = *pp;
                    ^
          49.       int tag, xclass, inf;
          50.       long max = omax;

crypto/asn1/asn1_lib.c:77:9: Assignment
          75.       } else {
          76.           tag = i;
          77.           p++;
                        ^
          78.           if (--max == 0)
          79.               goto err;

crypto/asn1/asn1_lib.c:83:10: Call
          81.       *ptag = tag;
          82.       *pclass = xclass;
          83.       if (!asn1_get_length(&p, &inf, plength, max))
                         ^
          84.           goto err;
          85.   

crypto/asn1/asn1_lib.c:104:1: <Length trace>
102.   }
103.   
104. > static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
105.                              long max)
106.   {

crypto/asn1/asn1_lib.c:104:1: Parameter `**pp`
            102.   }
            103.   
            104. > static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
            105.                              long max)
            106.   {

crypto/asn1/asn1_lib.c:107:5: Assignment
            105.                              long max)
            106.   {
            107.       const unsigned char *p = *pp;
                       ^
            108.       unsigned long ret = 0;
            109.       unsigned long i;

crypto/asn1/asn1_lib.c:120:15: Assignment
            118.           *inf = 0;
            119.           i = *p & 0x7f;
            120.           if (*(p++) & 0x80) {
                                 ^
            121.               if (max < (long)i + 1)
            122.                   return 0;

crypto/asn1/asn1_lib.c:124:25: Array access: Offset: [2, +oo] Size: [1, +oo] by call to `ASN1_item_d2i` 
            122.                   return 0;
            123.               /* Skip leading zeroes */
            124.               while (i && *p == 0) {
                                           ^
            125.                   p++;
            126.                   i--;
