crypto/bn/bn_mont.c:230: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_usub`.
Showing all 6 steps of the trace


crypto/bn/bn_mont.c:136:3: Assignment
134.   #if 1
135.   	for (i=r->top; i<max; i++) /* memset? XXX */
136.   		r->d[i]=0;
         ^
137.   #else
138.   	memset(&(r->d[r->top]),0,(max-r->top)*sizeof(BN_ULONG)); 

crypto/bn/bn_mont.c:230:8: Call
228.   	if (BN_ucmp(ret, &(mont->N)) >= 0)
229.   		{
230.   		if (!BN_usub(ret,ret,&(mont->N))) goto err;
              ^
231.   		}
232.   	retn=1;

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

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

crypto/bn/bn_add.c:229:4: Assignment
  227.   			{
  228.   			dif--;
  229.   			t1 = *(ap++);
            ^
  230.   			t2 = (t1-1)&BN_MASK2;
  231.   			*(rp++) = t2;

crypto/bn/bn_add.c:230:4: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_usub` 
  228.   			dif--;
  229.   			t1 = *(ap++);
  230.   			t2 = (t1-1)&BN_MASK2;
            ^
  231.   			*(rp++) = t2;
  232.   			if (t1)
