crypto/rsa/rsa_eay.c:302: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, +oo] by call to `RSA_padding_check_PKCS1_type_2`.
Showing all 11 steps of the trace


crypto/rsa/rsa_eay.c:256:6: Call
254.   	if (ctx == NULL) goto err;
255.   
256.   	num=BN_num_bytes(rsa->n);
            ^
257.   
258.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)

crypto/bn/bn_lib.c:245:19: Assignment
  243.   	bn_check_top(a);
  244.   
  245.   	if (a->top == 0) return(0);
                           ^
  246.   	l=a->d[a->top-1];
  247.   	i=(a->top-1)*BN_BITS2;

crypto/rsa/rsa_eay.c:256:2: Assignment
254.   	if (ctx == NULL) goto err;
255.   
256.   	num=BN_num_bytes(rsa->n);
        ^
257.   
258.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)

crypto/rsa/rsa_eay.c:258:28: Array declaration
256.   	num=BN_num_bytes(rsa->n);
257.   
258.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
                                  ^
259.   		{
260.   		RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,ERR_R_MALLOC_FAILURE);

crypto/rsa/rsa_eay.c:258:7: Assignment
256.   	num=BN_num_bytes(rsa->n);
257.   
258.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
             ^
259.   		{
260.   		RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,ERR_R_MALLOC_FAILURE);

crypto/rsa/rsa_eay.c:302:5: Call
300.   		{
301.   	case RSA_PKCS1_PADDING:
302.   		r=RSA_padding_check_PKCS1_type_2(to,num,buf,j,num);
           ^
303.   		break;
304.   #ifndef NO_SHA

crypto/rsa/rsa_pk1.c:174:1: <Length trace>
172.   	}
173.   
174. > int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
175.   	     unsigned char *from, int flen, int num)
176.   	{

crypto/rsa/rsa_pk1.c:174:1: Parameter `*from`
  172.   	}
  173.   
  174. > int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
  175.   	     unsigned char *from, int flen, int num)
  176.   	{

crypto/rsa/rsa_pk1.c:180:2: Assignment
  178.   	unsigned char *p;
  179.   
  180.   	p=from;
          ^
  181.   	if ((num != (flen+1)) || (*(p++) != 02))
  182.   		{

crypto/rsa/rsa_pk1.c:181:30: Assignment
  179.   
  180.   	p=from;
  181.   	if ((num != (flen+1)) || (*(p++) != 02))
                                      ^
  182.   		{
  183.   		RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2,RSA_R_BLOCK_TYPE_IS_NOT_02);

crypto/rsa/rsa_pk1.c:193:7: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `RSA_padding_check_PKCS1_type_2` 
  191.   	j=flen-1; /* one for type. */
  192.   	for (i=0; i<j; i++)
  193.   		if (*(p++) == 0) break;
               ^
  194.   
  195.   	if (i == j)
