crypto/bn/bntest.c:362: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_div_recp`.
Showing all 13 steps of the trace


crypto/bn/bntest.c:356:3: Call
354.   	for (i=0; i<100; i++)
355.   		{
356.   		BN_rand(&b,50+i,0,0);
         ^
357.   		a.neg=rand_neg();
358.   		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/bntest.c:362:5: Call
360.   		if (bp == NULL)
361.   			for (j=0; j<100; j++)
362.   				BN_div_recp(&d,&c,&a,&recp,ctx);
           ^
363.   		BN_div_recp(&d,&c,&a,&recp,ctx);
364.   		if (bp != NULL)

crypto/bn/bn_recp.c:127:1: Parameter `*m->d`
  125.   	}
  126.   
  127. > int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m, BN_RECP_CTX *recp,
  128.   	     BN_CTX *ctx)
  129.   	{

crypto/bn/bn_recp.c:145:6: Call
  143.   		r= &(ctx->bn[ctx->tos++]);
  144.   
  145.   	if (BN_ucmp(m,&(recp->N)) < 0)
              ^
  146.   		{
  147.   		BN_zero(d);

crypto/bn/bn_lib.c:625:1: Parameter `*a->d`
    623.   	}
    624.   
    625. > int BN_ucmp(BIGNUM *a, BIGNUM *b)
    626.   	{
    627.   	int i;

crypto/bn/bn_recp.c:158:4: Call
  156.   	 *
  157.   	 */
  158.   	i=BN_num_bits(m);
            ^
  159.   
  160.   	j=recp->num_bits*2;

crypto/bn/bn_lib.c:238:1: Parameter `*a->d`
    236.   	}
    237.   
    238. > int BN_num_bits(BIGNUM *a)
    239.   	{
    240.   	BN_ULONG l;

crypto/bn/bn_recp.c:182:7: Call
  180.   	d->neg=0;
  181.   	if (!BN_mul(b,&(recp->N),d,ctx)) goto err;
  182.   	if (!BN_usub(r,m,b)) goto err;
               ^
  183.   	r->neg=0;
  184.   

crypto/bn/bn_add.c:167:1: <LHS trace>
165.   
166.   /* unsigned subtraction of b from a, a must be larger than b. */
167. > int BN_usub(BIGNUM *r, BIGNUM *a, BIGNUM *b)
168.   	{
169.   	int max,min;

crypto/bn/bn_add.c:167:1: Parameter `*a->d`
    165.   
    166.   /* unsigned subtraction of b from a, a must be larger than b. */
    167. > int BN_usub(BIGNUM *r, BIGNUM *a, BIGNUM *b)
    168.   	{
    169.   	int max,min;

crypto/bn/bn_add.c:226:4: Assignment
    224.   			{
    225.   			i++;
    226.   			t1= *(ap++);
              ^
    227.   			t2=(t1-1)&BN_MASK2;
    228.   			*(rp++)=t2;

crypto/bn/bn_add.c:227:4: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_div_recp` 
    225.   			i++;
    226.   			t1= *(ap++);
    227.   			t2=(t1-1)&BN_MASK2;
              ^
    228.   			*(rp++)=t2;
    229.   			if (t1 > t2) break;
