crypto/bn/bntest.c:587: error: BUFFER_OVERRUN_L3
  Offset: [7, +oo] (⇐ [0, +oo] + 7) Size: [0, +oo] by call to `BN_rand`.
Showing all 11 steps of the trace


crypto/bn/bntest.c:584:2: Call
582.   	e=BN_new();
583.   
584.   	BN_rand(c,1024,0,0); /**/
        ^
585.   	for (i=0; i<10; i++)
586.   		{

crypto/bn/bn_rand.c:65:1: Parameter `*rnd->d`
  63.   #include <openssl/rand.h>
  64.   
  65. > int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
  66.   	{
  67.   	unsigned char *buf=NULL;

crypto/bn/bntest.c:587:3: Call
585.   	for (i=0; i<10; i++)
586.   		{
587.   		BN_rand(a,475+i*10,0,0); /**/
         ^
588.   		BN_rand(b,425+i*10,0,0); /**/
589.   		a->neg=rand_neg();

crypto/bn/bn_rand.c:65:1: Parameter `*rnd->d`
  63.   #include <openssl/rand.h>
  64.   
  65. > int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
  66.   	{
  67.   	unsigned char *buf=NULL;

crypto/bn/bn_rand.c:107:7: Call
  105.   	if (bottom) /* set bottom bits to whatever odd is */
  106.   		buf[bytes-1]|=1;
  107.   	if (!BN_bin2bn(buf,bytes,rnd)) goto err;
               ^
  108.   	ret=1;
  109.   err:

crypto/bn/bn_lib.c:574:1: Parameter `*ret->d`
    572.   
    573.   /* ignore negative */
    574. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
    575.   	{
    576.   	unsigned int i,m;

crypto/bn/bn_lib.c:589:6: Call
    587.   		return(ret);
    588.   		}
    589.   	if (bn_expand(ret,(int)(n+2)*8) == NULL)
                ^
    590.   		return(NULL);
    591.   	i=((n-1)/BN_BYTES)+1;

crypto/bn/bn_lib.c:344:1: <Length trace>
342.   	}
343.   
344. > BIGNUM *bn_expand2(BIGNUM *b, int words)
345.   	{
346.   	BN_ULONG *A,*B,*a;

crypto/bn/bn_lib.c:344:1: Parameter `*b->d`
      342.   	}
      343.   
      344. > BIGNUM *bn_expand2(BIGNUM *b, int words)
      345.   	{
      346.   	BN_ULONG *A,*B,*a;

crypto/bn/bn_lib.c:367:3: Assignment
      365.   memset(A,0x5c,sizeof(BN_ULONG)*(words+1));
      366.   #if 1
      367.   		B=b->d;
               ^
      368.   		/* Check if the previous number needs to be copied */
      369.   		if (B != NULL)

crypto/bn/bn_lib.c:377:43: Array access: Offset: [7, +oo] (⇐ [0, +oo] + 7) Size: [0, +oo] by call to `BN_rand` 
      375.   				{
      376.   				A[0]=B[0]; A[1]=B[1]; A[2]=B[2]; A[3]=B[3];
      377.   				A[4]=B[4]; A[5]=B[5]; A[6]=B[6]; A[7]=B[7];
                                                       ^
      378.   				A+=8;
      379.   				B+=8;
