crypto/rsa/rsa_eay.c:133: error: BUFFER_OVERRUN_L3
  Offset added: [10, +oo] (⇐ [2, +oo] + 8) Size: [0, +oo] by call to `RSA_padding_add_SSLv23`.
Showing all 12 steps of the trace


crypto/rsa/rsa_eay.c:117:6: Call
115.   	BN_init(&ret);
116.   	if ((ctx=BN_CTX_new()) == NULL) goto err;
117.   	num=BN_num_bytes(rsa->n);
            ^
118.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
119.   		{

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:117:2: Assignment
115.   	BN_init(&ret);
116.   	if ((ctx=BN_CTX_new()) == NULL) goto err;
117.   	num=BN_num_bytes(rsa->n);
        ^
118.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
119.   		{

crypto/rsa/rsa_eay.c:118:28: Array declaration
116.   	if ((ctx=BN_CTX_new()) == NULL) goto err;
117.   	num=BN_num_bytes(rsa->n);
118.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
                                  ^
119.   		{
120.   		RSAerr(RSA_F_RSA_EAY_PUBLIC_ENCRYPT,ERR_R_MALLOC_FAILURE);

crypto/rsa/rsa_eay.c:118:7: Assignment
116.   	if ((ctx=BN_CTX_new()) == NULL) goto err;
117.   	num=BN_num_bytes(rsa->n);
118.   	if ((buf=(unsigned char *)Malloc(num)) == NULL)
             ^
119.   		{
120.   		RSAerr(RSA_F_RSA_EAY_PUBLIC_ENCRYPT,ERR_R_MALLOC_FAILURE);

crypto/rsa/rsa_eay.c:133:5: Call
131.   		break;
132.   	case RSA_SSLV23_PADDING:
133.   		i=RSA_padding_add_SSLv23(buf,num,from,flen);
           ^
134.   		break;
135.   	case RSA_NO_PADDING:

crypto/rsa/rsa_ssl.c:65:1: <Length trace>
63.   #include "rand.h"
64.   
65. > int RSA_padding_add_SSLv23(unsigned char *to, int tlen, unsigned char *from,
66.   	     int flen)
67.   	{

crypto/rsa/rsa_ssl.c:65:1: Parameter `*to`
  63.   #include "rand.h"
  64.   
  65. > int RSA_padding_add_SSLv23(unsigned char *to, int tlen, unsigned char *from,
  66.   	     int flen)
  67.   	{

crypto/rsa/rsa_ssl.c:77:2: Assignment
  75.   		}
  76.   	
  77.   	p=(unsigned char *)to;
         ^
  78.   
  79.   	*(p++)=0;

crypto/rsa/rsa_ssl.c:79:4: Assignment
  77.   	p=(unsigned char *)to;
  78.   
  79.   	*(p++)=0;
           ^
  80.   	*(p++)=2; /* Public Key BT (Block Type) */
  81.   

crypto/rsa/rsa_ssl.c:80:4: Assignment
  78.   
  79.   	*(p++)=0;
  80.   	*(p++)=2; /* Public Key BT (Block Type) */
           ^
  81.   
  82.   	/* pad out with non-zero random data */

crypto/rsa/rsa_ssl.c:95:2: Array access: Offset added: [10, +oo] (⇐ [2, +oo] + 8) Size: [0, +oo] by call to `RSA_padding_add_SSLv23` 
  93.   		}
  94.   
  95.   	memset(p,3,8);
         ^
  96.   	p+=8;
  97.   	*(p++)='\0';
