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


crypto/bn/bntest.c:615:2: Call
613.   	e=BN_new();
614.   
615.   	BN_rand(a,1024,0,0); /**/
        ^
616.   	for (i=0; i<20; i++)
617.   		{

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:618:3: Call
616.   	for (i=0; i<20; i++)
617.   		{
618.   		BN_rand(b,450+i*10,0,0); /**/
         ^
619.   		a->neg=rand_neg();
620.   		b->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:595:1: Parameter `*ret->d`
    593.   
    594.   /* ignore negative */
    595. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
    596.   	{
    597.   	unsigned int i,m;

crypto/bn/bn_lib.c:610:6: Call
    608.   		return(ret);
    609.   		}
    610.   	if (bn_expand(ret,(int)(n+2)*8) == NULL)
                ^
    611.   		return(NULL);
    612.   	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,*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,*a;

crypto/bn/bn_lib.c:367:3: Assignment
      365.   			}
      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:447:35: Array access: Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, +oo] by call to `BN_rand` 
      445.   				 */
      446.   				BN_ULONG a0,a1,a2,a3;
      447.   				a0=B[0]; a1=B[1]; a2=B[2]; a3=B[3];
                                               ^
      448.   				A[0]=a0; A[1]=a1; A[2]=a2; A[3]=a3;
      449.   				}
