crypto/evp/evp_pkey.c:242: 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:235:9: Call
233.   
234.   		/* get paramaters and place in AlgorithmIdentifier */
235.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
               ^
236.   		if (!(p = Malloc(len))) {
237.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);

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

crypto/evp/evp_pkey.c:235:3: Assignment
233.   
234.   		/* get paramaters and place in AlgorithmIdentifier */
235.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
         ^
236.   		if (!(p = Malloc(len))) {
237.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);

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

crypto/evp/evp_pkey.c:236:9: Assignment
234.   		/* get paramaters and place in AlgorithmIdentifier */
235.   		len = i2d_DSAparams (pkey->pkey.dsa, NULL);
236.   		if (!(p = Malloc(len))) {
               ^
237.   			EVPerr(EVP_F_EVP_PKEY2PKCS8,ERR_R_MALLOC_FAILURE);
238.   			PKCS8_PRIV_KEY_INFO_free (p8);

crypto/evp/evp_pkey.c:241:3: Assignment
239.   			return NULL;
240.   		}
241.   		q = p;
         ^
242.   		i2d_DSAparams (pkey->pkey.dsa, &q);
243.   		p8->pkeyalg->parameter->type = V_ASN1_SEQUENCE;

crypto/evp/evp_pkey.c:242:3: Call
240.   		}
241.   		q = p;
242.   		i2d_DSAparams (pkey->pkey.dsa, &q);
         ^
243.   		p8->pkeyalg->parameter->type = V_ASN1_SEQUENCE;
244.   		p8->pkeyalg->parameter->value.sequence = ASN1_STRING_new();

crypto/asn1/i2d_dsap.c:66:1: Parameter `**pp`
  64.   #include <openssl/dsa.h>
  65.   
  66. > int i2d_DSAparams(DSA *a, unsigned char **pp)
  67.   	{
  68.   	BIGNUM *num[3];

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

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

crypto/asn1/asn1_lib.c:180:1: Parameter `**pp`
    178.   /* class 0 is constructed
    179.    * constructed == 2 for indefinitle length constructed */
    180. > void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag,
    181.   	     int xclass)
    182.   	{

crypto/asn1/asn1_lib.c:183:2: Assignment
    181.   	     int xclass)
    182.   	{
    183.   	unsigned char *p= *pp;
            ^
    184.   	int i;
    185.   

crypto/asn1/asn1_lib.c:189:5: Assignment
    187.   	i|=(xclass&V_ASN1_PRIVATE);
    188.   	if (tag < 31)
    189.   		*(p++)=i|(tag&V_ASN1_PRIMITIVE_TAG);
               ^
    190.   	else
    191.   		{

crypto/asn1/asn1_lib.c:203:3: Call
    201.   		*(p++)=0x80; /* der_put_length would output 0 instead */
    202.   	else
    203.   		asn1_put_length(&p,length);
             ^
    204.   	*pp=p;
    205.   	}

crypto/asn1/asn1_lib.c:216:8: <Offset trace>
214.   		{
215.   		l=length;
216.   		for (i=0; l > 0; i++)
              ^
217.   			l>>=8;
218.   		*(p++)=i|0x80;

crypto/asn1/asn1_lib.c:216:8: Assignment
      214.   		{
      215.   		l=length;
      216.   		for (i=0; l > 0; i++)
                    ^
      217.   			l>>=8;
      218.   		*(p++)=i|0x80;

crypto/asn1/asn1_lib.c:220:10: Assignment
      218.   		*(p++)=i|0x80;
      219.   		l=i;
      220.   		while (i-- > 0)
                      ^
      221.   			{
      222.   			p[i]=length&0xff;

crypto/asn1/asn1_lib.c:207:1: <Length trace>
205.   	}
206.   
207. > static void asn1_put_length(unsigned char **pp, int length)
208.   	{
209.   	unsigned char *p= *pp;

crypto/asn1/asn1_lib.c:207:1: Parameter `**pp`
      205.   	}
      206.   
      207. > static void asn1_put_length(unsigned char **pp, int length)
      208.   	{
      209.   	unsigned char *p= *pp;

crypto/asn1/asn1_lib.c:209:2: Assignment
      207.   static void asn1_put_length(unsigned char **pp, int length)
      208.   	{
      209.   	unsigned char *p= *pp;
              ^
      210.   	int i,l;
      211.   	if (length <= 127)

crypto/asn1/asn1_lib.c:218:5: Assignment
      216.   		for (i=0; l > 0; i++)
      217.   			l>>=8;
      218.   		*(p++)=i|0x80;
                 ^
      219.   		l=i;
      220.   		while (i-- > 0)

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