crypto/evp/evp_pkey.c:231: error: BUFFER_OVERRUN_L3
  Offset: [2, +oo] (⇐ [2, +oo] + [0, +oo]) Size: [0, +oo] by call to `i2d_DSAparams`.
Showing all 22 steps of the trace


crypto/evp/evp_pkey.c:224:9: Call
222.   
223.   		/* get paramaters and place in AlgorithmIdentifier */
224.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
               ^
225.   		if (!(p = Malloc(len))) {
226.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);

crypto/asn1/i2d_dsap.c:77:17: Assignment
  75.   	unsigned char *p;
  76.   
  77.   	if (a == NULL) return(0);
                        ^
  78.   	num[0]=a->p;
  79.   	num[1]=a->q;

crypto/evp/evp_pkey.c:224:3: Assignment
222.   
223.   		/* get paramaters and place in AlgorithmIdentifier */
224.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
         ^
225.   		if (!(p = Malloc(len))) {
226.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);

crypto/evp/evp_pkey.c:225:13: Array declaration
223.   		/* get paramaters and place in AlgorithmIdentifier */
224.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
225.   		if (!(p = Malloc(len))) {
                   ^
226.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);
227.   			PKCS8_PRIV_KEY_INFO_free (p8);

crypto/evp/evp_pkey.c:225:9: Assignment
223.   		/* get paramaters and place in AlgorithmIdentifier */
224.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
225.   		if (!(p = Malloc(len))) {
               ^
226.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);
227.   			PKCS8_PRIV_KEY_INFO_free (p8);

crypto/evp/evp_pkey.c:230:3: Assignment
228.   			return NULL;
229.   		}
230.   		q = p;
         ^
231.   		i2d_DSAparams (pkey->pkey.dsa, &q);
232.   		p8->pkeyalg->parameter->type = V_ASN1_SEQUENCE;

crypto/evp/evp_pkey.c:231:3: Call
229.   		}
230.   		q = p;
231.   		i2d_DSAparams (pkey->pkey.dsa, &q);
         ^
232.   		p8->pkeyalg->parameter->type = V_ASN1_SEQUENCE;
233.   		p8->pkeyalg->parameter->value.sequence = ASN1_STRING_new();

crypto/asn1/i2d_dsap.c:69:1: Parameter `**pp`
  67.    */
  68.   
  69. > int i2d_DSAparams(DSA *a, unsigned char **pp)
  70.   	{
  71.   	BIGNUM *num[3];

crypto/asn1/i2d_dsap.c:96:2: Assignment
  94.   	if (pp == NULL) return(t);
  95.   
  96.   	p= *pp;
         ^
  97.   	ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
  98.   

crypto/asn1/i2d_dsap.c:97:2: Call
  95.   
  96.   	p= *pp;
  97.   	ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
          ^
  98.   
  99.   	bs.type=V_ASN1_INTEGER;

crypto/asn1/asn1_lib.c:186:1: Parameter `**pp`
    184.   /* class 0 is constructed
    185.    * constructed == 2 for indefinitle length constructed */
    186. > void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag,
    187.   	     int xclass)
    188.   	{

crypto/asn1/asn1_lib.c:189:2: Assignment
    187.   	     int xclass)
    188.   	{
    189.   	unsigned char *p= *pp;
            ^
    190.   	int i;
    191.   

crypto/asn1/asn1_lib.c:195:5: Assignment
    193.   	i|=(xclass&V_ASN1_PRIVATE);
    194.   	if (tag < 31)
    195.   		*(p++)=i|(tag&V_ASN1_PRIMATIVE_TAG);
               ^
    196.   	else
    197.   		{

crypto/asn1/asn1_lib.c:209:3: Call
    207.   		*(p++)=0x80; /* der_put_length would output 0 instead */
    208.   	else
    209.   		asn1_put_length(&p,length);
             ^
    210.   	*pp=p;
    211.   	}

crypto/asn1/asn1_lib.c:222:8: <Offset trace>
220.   		{
221.   		l=length;
222.   		for (i=0; l > 0; i++)
              ^
223.   			l>>=8;
224.   		*(p++)=i|0x80;

crypto/asn1/asn1_lib.c:222:8: Assignment
      220.   		{
      221.   		l=length;
      222.   		for (i=0; l > 0; i++)
                    ^
      223.   			l>>=8;
      224.   		*(p++)=i|0x80;

crypto/asn1/asn1_lib.c:226:10: Assignment
      224.   		*(p++)=i|0x80;
      225.   		l=i;
      226.   		while (i-- > 0)
                      ^
      227.   			{
      228.   			p[i]=length&0xff;

crypto/asn1/asn1_lib.c:213:1: <Length trace>
211.   	}
212.   
213. > static void asn1_put_length(unsigned char **pp, int length)
214.   	{
215.   	unsigned char *p= *pp;

crypto/asn1/asn1_lib.c:213:1: Parameter `**pp`
      211.   	}
      212.   
      213. > static void asn1_put_length(unsigned char **pp, int length)
      214.   	{
      215.   	unsigned char *p= *pp;

crypto/asn1/asn1_lib.c:215:2: Assignment
      213.   static void asn1_put_length(unsigned char **pp, int length)
      214.   	{
      215.   	unsigned char *p= *pp;
              ^
      216.   	int i,l;
      217.   	if (length <= 127)

crypto/asn1/asn1_lib.c:224:5: Assignment
      222.   		for (i=0; l > 0; i++)
      223.   			l>>=8;
      224.   		*(p++)=i|0x80;
                 ^
      225.   		l=i;
      226.   		while (i-- > 0)

crypto/asn1/asn1_lib.c:228:4: Array access: Offset: [2, +oo] (⇐ [2, +oo] + [0, +oo]) Size: [0, +oo] by call to `i2d_DSAparams` 
      226.   		while (i-- > 0)
      227.   			{
      228.   			p[i]=length&0xff;
                ^
      229.   			length>>=8;
      230.   			}
