apps/rsa.c:278: error: BUFFER_OVERRUN_L3
  Offset: [2, +oo] (⇐ [2, +oo] + [0, +oo]) Size: [0, +oo] by call to `i2d_Netscape_RSA`.
Showing all 21 steps of the trace


apps/rsa.c:271:8: Call
269.   
270.   		i=1;
271.   		size=i2d_Netscape_RSA(rsa,NULL,NULL);
              ^
272.   		if ((p=(unsigned char *)Malloc(size)) == NULL)
273.   			{

crypto/asn1/n_pkey.c:92:2: Assignment
  90.   	X509_ALGOR *alg=NULL;
  91.   	ASN1_OCTET_STRING os,os2;
  92.   	M_ASN1_I2D_vars(a);
         ^
  93.   
  94.   	if (a == NULL) return(0);

apps/rsa.c:271:3: Assignment
269.   
270.   		i=1;
271.   		size=i2d_Netscape_RSA(rsa,NULL,NULL);
         ^
272.   		if ((p=(unsigned char *)Malloc(size)) == NULL)
273.   			{

apps/rsa.c:272:27: Array declaration
270.   		i=1;
271.   		size=i2d_Netscape_RSA(rsa,NULL,NULL);
272.   		if ((p=(unsigned char *)Malloc(size)) == NULL)
                                 ^
273.   			{
274.   			BIO_printf(bio_err,"Malloc failure\n");

apps/rsa.c:272:8: Assignment
270.   		i=1;
271.   		size=i2d_Netscape_RSA(rsa,NULL,NULL);
272.   		if ((p=(unsigned char *)Malloc(size)) == NULL)
              ^
273.   			{
274.   			BIO_printf(bio_err,"Malloc failure\n");

apps/rsa.c:278:3: Call
276.   			}
277.   		pp=p;
278.   		i2d_Netscape_RSA(rsa,&p,NULL);
         ^
279.   		BIO_write(out,(char *)pp,size);
280.   		Free(pp);

crypto/asn1/n_pkey.c:83:1: Parameter `**pp`
  81.   static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *);
  82.   
  83. > int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
  84.   	{
  85.   	int i,j,l[6];

crypto/asn1/n_pkey.c:177:2: Assignment
  175.   	EVP_CIPHER_CTX_cleanup(&ctx);
  176.   
  177.   	p= *pp;
          ^
  178.   	ASN1_put_object(&p,1,l[4]+l[3],V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
  179.   	i2d_ASN1_OCTET_STRING(&os,&p);

crypto/asn1/n_pkey.c:178:2: Call
  176.   
  177.   	p= *pp;
  178.   	ASN1_put_object(&p,1,l[4]+l[3],V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
          ^
  179.   	i2d_ASN1_OCTET_STRING(&os,&p);
  180.   	ASN1_put_object(&p,1,l[2]+l[1],V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);

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_PRIMATIVE_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_Netscape_RSA` 
      220.   		while (i-- > 0)
      221.   			{
      222.   			p[i]=length&0xff;
                ^
      223.   			length>>=8;
      224.   			}
