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


crypto/asn1/n_pkey.c:110:7: Call
108.   	pkey->algor->parameter->type=V_ASN1_NULL;
109.   
110.   	l[0]=i2d_RSAPrivateKey(a,NULL);
             ^
111.   	pkey->private_key->length=l[0];
112.   

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

crypto/asn1/n_pkey.c:110:2: Assignment
108.   	pkey->algor->parameter->type=V_ASN1_NULL;
109.   
110.   	l[0]=i2d_RSAPrivateKey(a,NULL);
        ^
111.   	pkey->private_key->length=l[0];
112.   

crypto/asn1/n_pkey.c:143:48: Array declaration
141.   	if (pkey->private_key->data != NULL)
142.   		Free((char *)pkey->private_key->data);
143.   	if ((pkey->private_key->data=(unsigned char *)Malloc(l[0])) == NULL)
                                                      ^
144.   		{
145.   		ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);

crypto/asn1/n_pkey.c:143:7: Assignment
141.   	if (pkey->private_key->data != NULL)
142.   		Free((char *)pkey->private_key->data);
143.   	if ((pkey->private_key->data=(unsigned char *)Malloc(l[0])) == NULL)
             ^
144.   		{
145.   		ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);

crypto/asn1/n_pkey.c:157:2: Call
155.   		}
156.   	zz=os2.data;
157.   	i2d_NETSCAPE_PKEY(pkey,&zz);
        ^
158.   		
159.   	if (cb == NULL)

crypto/asn1/n_pkey.c:287:1: Parameter `*a->version->data`
  285.   	}
  286.   
  287. > static int i2d_NETSCAPE_PKEY(NETSCAPE_PKEY *a, unsigned char **pp)
  288.   	{
  289.   	M_ASN1_I2D_vars(a);

crypto/asn1/n_pkey.c:292:2: Call
  290.   
  291.   
  292.   	M_ASN1_I2D_len(a->version,	i2d_ASN1_INTEGER);
          ^
  293.   	M_ASN1_I2D_len(a->algor,	i2d_X509_ALGOR);
  294.   	M_ASN1_I2D_len(a->private_key,	i2d_ASN1_OCTET_STRING);

crypto/asn1/a_int.c:88:1: <Offset trace>
86.    */
87.   
88. > int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
89.   	{
90.   	int pad=0,ret,r,i,t;

crypto/asn1/a_int.c:88:1: Parameter `a->length`
    86.    */
    87.   
    88. > int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
    89.   	{
    90.   	int pad=0,ret,r,i,t;

crypto/asn1/a_int.c:88:1: <Length trace>
86.    */
87.   
88. > int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
89.   	{
90.   	int pad=0,ret,r,i,t;

crypto/asn1/a_int.c:88:1: Parameter `*a->data`
    86.    */
    87.   
    88. > int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
    89.   	{
    90.   	int pad=0,ret,r,i,t;

crypto/asn1/a_int.c:113:39: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `i2d_NETSCAPE_PKEY` 
    111.   			 * otherwise we don't.
    112.   			 */
    113.   				for(i = 1; i < a->length; i++) if(a->data[i]) {
                                                 ^
    114.   						pad=1;
    115.   						pb=0xFF;
