apps/asn1pars.c:238: error: BUFFER_OVERRUN_L3
  Offset: [2, +oo] Size: [1, 2147483644] by call to `d2i_ASN1_TYPE`.
Showing all 22 steps of the trace


apps/asn1pars.c:206:13: Assignment
204.               }
205.   
206.               num = 0;
                   ^
207.               for (;;) {
208.                   if (!BUF_MEM_grow(buf, num + BUFSIZ))

apps/asn1pars.c:224:9: Assignment
222.       if (sk_OPENSSL_STRING_num(osk)) {
223.           tmpbuf = str;
224.           tmplen = num;
               ^
225.           for (i = 0; i < sk_OPENSSL_STRING_num(osk); i++) {
226.               ASN1_TYPE *atmp;

apps/asn1pars.c:234:13: Assignment
232.                   continue;
233.               }
234.               tmpbuf += j;
                   ^
235.               tmplen -= j;
236.               atmp = at;

apps/asn1pars.c:237:13: Assignment
235.               tmplen -= j;
236.               atmp = at;
237.               ctmpbuf = tmpbuf;
                   ^
238.               at = d2i_ASN1_TYPE(NULL, &ctmpbuf, tmplen);
239.               ASN1_TYPE_free(atmp);

apps/asn1pars.c:238:18: Call
236.               atmp = at;
237.               ctmpbuf = tmpbuf;
238.               at = d2i_ASN1_TYPE(NULL, &ctmpbuf, tmplen);
                        ^
239.               ASN1_TYPE_free(atmp);
240.               if (!at) {

crypto/asn1/tasn_typ.c:53:1: Parameter `**in`
  51.   IMPLEMENT_ASN1_TYPE(ASN1_SEQUENCE)
  52.   
  53. > IMPLEMENT_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE)
  54.   
  55.   /* Multistring types */

crypto/asn1/tasn_typ.c:53:1: Call
  51.   IMPLEMENT_ASN1_TYPE(ASN1_SEQUENCE)
  52.   
  53. > IMPLEMENT_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE)
  54.   
  55.   /* Multistring types */

crypto/asn1/tasn_dec.c:105:1: Parameter `**in`
    103.    */
    104.   
    105. > ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval,
    106.                             const unsigned char **in, long len,
    107.                             const ASN1_ITEM *it)

crypto/asn1/tasn_dec.c:114:9: Call
    112.           pval = &ptmpval;
    113.       asn1_tlc_clear_nc(&c);
    114.       if (ASN1_item_ex_d2i(pval, in, len, it, -1, 0, 0, &c) > 0)
                   ^
    115.           return *pval;
    116.       return NULL;

crypto/asn1/tasn_dec.c:119:1: Parameter `**in`
      117.   }
      118.   
      119. > int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
      120.                        const ASN1_ITEM *it,
      121.                        int tag, int aclass, char opt, ASN1_TLC *ctx)

crypto/asn1/tasn_dec.c:124:10: Call
      122.   {
      123.       int rv;
      124.       rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0);
                      ^
      125.       if (rv <= 0)
      126.           ASN1_item_ex_free(pval, it);

crypto/asn1/tasn_dec.c:135:1: Parameter `**in`
        133.    */
        134.   
        135. > static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in,
        136.                                  long len, const ASN1_ITEM *it,
        137.                                  int tag, int aclass, char opt, ASN1_TLC *ctx,

crypto/asn1/tasn_dec.c:185:9: Assignment
        183.   
        184.       case ASN1_ITYPE_MSTRING:
        185.           p = *in;
                       ^
        186.           /* Just read in tag and class */
        187.           ret = asn1_check_tlen(NULL, &otag, &oclass, NULL, NULL,

crypto/asn1/tasn_dec.c:187:15: Call
        185.           p = *in;
        186.           /* Just read in tag and class */
        187.           ret = asn1_check_tlen(NULL, &otag, &oclass, NULL, NULL,
                             ^
        188.                                 &p, len, -1, 0, 1, ctx);
        189.           if (!ret) {

crypto/asn1/tasn_dec.c:1078:1: Parameter `**in`
          1076.    */
          1077.   
          1078. > static int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass,
          1079.                              char *inf, char *cst,
          1080.                              const unsigned char **in, long len,

crypto/asn1/tasn_dec.c:1087:5: Assignment
          1085.       long plen;
          1086.       const unsigned char *p, *q;
          1087.       p = *in;
                      ^
          1088.       q = p;
          1089.   

crypto/asn1/tasn_dec.c:1097:13: Call
          1095.           p += ctx->hdrlen;
          1096.       } else {
          1097.           i = ASN1_get_object(&p, &plen, &ptag, &pclass, len);
                              ^
          1098.           if (ctx) {
          1099.               ctx->ret = i;

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

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

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

crypto/asn1/asn1_lib.c:59:9: Assignment
            57.       i = *p & V_ASN1_PRIMITIVE_TAG;
            58.       if (i == V_ASN1_PRIMITIVE_TAG) { /* high-tag */
            59.           p++;
                          ^
            60.           if (--max == 0)
            61.               goto err;

crypto/asn1/asn1_lib.c:63:16: Array access: Offset: [2, +oo] Size: [1, 2147483644] by call to `d2i_ASN1_TYPE` 
            61.               goto err;
            62.           l = 0;
            63.           while (*p & 0x80) {
                                 ^
            64.               l <<= 7L;
            65.               l |= *(p++) & 0x7f;
