crypto/asn1/n_pkey.c:161: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, +oo] by call to `i2d_RSAPrivateKey`.
Showing all 15 steps of the trace


crypto/asn1/n_pkey.c:122:7: Call
120.   	pkey->algor->parameter->type=V_ASN1_NULL;
121.   
122.   	l[0]=i2d_RSAPrivateKey(a,NULL);
             ^
123.   	pkey->private_key->length=l[0];
124.   

crypto/asn1/i2d_r_pr.c:79:17: Assignment
  77.   	unsigned char *p;
  78.   
  79.   	if (a == NULL) return(0);
                        ^
  80.   
  81.   	num[1]=a->n;

crypto/asn1/n_pkey.c:122:2: Assignment
120.   	pkey->algor->parameter->type=V_ASN1_NULL;
121.   
122.   	l[0]=i2d_RSAPrivateKey(a,NULL);
        ^
123.   	pkey->private_key->length=l[0];
124.   

crypto/asn1/n_pkey.c:155:48: Array declaration
153.   	if (pkey->private_key->data != NULL)
154.   		Free((char *)pkey->private_key->data);
155.   	if ((pkey->private_key->data=(unsigned char *)Malloc(l[0])) == NULL)
                                                      ^
156.   		{
157.   		ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);

crypto/asn1/n_pkey.c:155:7: Assignment
153.   	if (pkey->private_key->data != NULL)
154.   		Free((char *)pkey->private_key->data);
155.   	if ((pkey->private_key->data=(unsigned char *)Malloc(l[0])) == NULL)
             ^
156.   		{
157.   		ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);

crypto/asn1/n_pkey.c:160:2: Assignment
158.   		goto err;
159.   		}
160.   	zz=pkey->private_key->data;
        ^
161.   	i2d_RSAPrivateKey(a,&zz);
162.   

crypto/asn1/n_pkey.c:161:2: Call
159.   		}
160.   	zz=pkey->private_key->data;
161.   	i2d_RSAPrivateKey(a,&zz);
        ^
162.   
163.   	if ((os2.data=(unsigned char *)Malloc(os2.length)) == NULL)

crypto/asn1/i2d_r_pr.c:71:1: Parameter `**pp`
  69.    */
  70.   
  71. > int i2d_RSAPrivateKey(RSA *a, unsigned char **pp)
  72.   	{
  73.   	BIGNUM *num[9];

crypto/asn1/i2d_r_pr.c:109:2: Assignment
  107.   	if (pp == NULL) return(t);
  108.   
  109.   	p= *pp;
          ^
  110.   	ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
  111.   

crypto/asn1/i2d_r_pr.c:110:2: Call
  108.   
  109.   	p= *pp;
  110.   	ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
          ^
  111.   
  112.   	i2d_ASN1_INTEGER(&bs,&p);

crypto/asn1/asn1_lib.c:186:1: <Length trace>
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: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:198:5: Assignment
    196.   	else
    197.   		{
    198.   		*(p++)=i|V_ASN1_PRIMATIVE_TAG;
               ^
    199.   		while (tag > 0x7f)
    200.   			{

crypto/asn1/asn1_lib.c:204:3: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `i2d_RSAPrivateKey` 
    202.   			tag>>=7;
    203.   			}
    204.   		*(p++)=(tag&0x7f);
             ^
    205.   		}
    206.   	if ((constructed == 2) && (length == 0))
