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


crypto/rsa/rsa_eay.c:265:6: Call
263.   	if (ctx == NULL) goto err;
264.   
265.   	num=BN_num_bytes(rsa->n);
            ^
266.   
267.   	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:265:2: Assignment
263.   	if (ctx == NULL) goto err;
264.   
265.   	num=BN_num_bytes(rsa->n);
        ^
266.   
267.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)

crypto/rsa/rsa_eay.c:267:28: Array declaration
265.   	num=BN_num_bytes(rsa->n);
266.   
267.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
                                  ^
268.   		{
269.   		RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,ERR_R_MALLOC_FAILURE);

crypto/rsa/rsa_eay.c:267:7: Assignment
265.   	num=BN_num_bytes(rsa->n);
266.   
267.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
             ^
268.   		{
269.   		RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT,ERR_R_MALLOC_FAILURE);

crypto/rsa/rsa_eay.c:314:12: Call
312.   		break;
313.           case RSA_PKCS1_OAEP_PADDING:
314.   	        r=RSA_padding_check_PKCS1_OAEP(to,num,buf,j,num,NULL,0);
                  ^
315.                   break;
316.    	case RSA_SSLV23_PADDING:

crypto/rsa/rsa_oaep.c:96:10: <Offset trace>
94.       
95.       MGF1(seed, SHA_DIGEST_LENGTH, maskeddb, dblen);
96.       for (i = 0; i < SHA_DIGEST_LENGTH; i++)
               ^
97.   	seed[i] ^= from[i];
98.     

crypto/rsa/rsa_oaep.c:96:10: Assignment
  94.       
  95.       MGF1(seed, SHA_DIGEST_LENGTH, maskeddb, dblen);
  96.       for (i = 0; i < SHA_DIGEST_LENGTH; i++)
                 ^
  97.   	seed[i] ^= from[i];
  98.     

crypto/rsa/rsa_oaep.c:71:1: <Length trace>
69.       }
70.   
71. > int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
72.   	     unsigned char *from, int flen, int num, unsigned char *param,
73.   	     int plen)

crypto/rsa/rsa_oaep.c:71:1: Parameter `*from`
  69.       }
  70.   
  71. > int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
  72.   	     unsigned char *from, int flen, int num, unsigned char *param,
  73.   	     int plen)

crypto/rsa/rsa_oaep.c:97:13: Array access: Offset: [0, 19] Size: [0, +oo] by call to `RSA_padding_check_PKCS1_OAEP` 
  95.       MGF1(seed, SHA_DIGEST_LENGTH, maskeddb, dblen);
  96.       for (i = 0; i < SHA_DIGEST_LENGTH; i++)
  97.   	seed[i] ^= from[i];
                     ^
  98.     
  99.       MGF1(db, dblen, seed, SHA_DIGEST_LENGTH);
