Hi All,

In d2i_ASN1_SET function, function asn1_add_error is being invoked.

if (M_ASN1_D2I_end_sequence()) break;
    /* XXX: This was called with 4 arguments, incorrectly, it seems
    if ((s=func(NULL,&c.p,c.slen,c.max-c.p)) == NULL) */
    if ((s=d2i(NULL,&c.p,c.slen)) == NULL)
      {
      ASN1err(ASN1_F_D2I_ASN1_SET,ASN1_R_ERROR_PARSING_SET_ELEMENT);
      asn1_add_error(*pp,(int)(c.q- *pp));
      goto err;

I don't see c.q is being initialized to anything. Is this a bug?

Thanks in advance
Jaya

Reply via email to