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


crypto/bn/bn_mod.c:149:10: Call
147.                        const BIGNUM *m)
148.   {
149.       if (!BN_uadd(r, a, b))
                ^
150.           return 0;
151.       if (BN_ucmp(r, m) >= 0)

crypto/bn/bn_add.c:152:13: Assignment
  150.           if (carry) {
  151.               /* carry != 0 => dif == 0 */
  152.               *rp = 1;
                     ^
  153.               r->top++;
  154.           }

crypto/bn/bn_mod.c:151:9: Call
149.       if (!BN_uadd(r, a, b))
150.           return 0;
151.       if (BN_ucmp(r, m) >= 0)
               ^
152.           return BN_usub(r, r, m);
153.       return 1;

crypto/bn/bn_lib.c:600:1: Parameter `*a->d`
  598.   }
  599.   
  600. > int BN_ucmp(const BIGNUM *a, const BIGNUM *b)
  601.   {
  602.       int i;

crypto/bn/bn_mod.c:152:16: Call
150.           return 0;
151.       if (BN_ucmp(r, m) >= 0)
152.           return BN_usub(r, r, m);
                      ^
153.       return 1;
154.   }

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:218:13: Assignment
  216.           while (dif) {
  217.               dif--;
  218.               t1 = *(ap++);
                     ^
  219.               t2 = (t1 - 1) & BN_MASK2;
  220.               *(rp++) = t2;

crypto/bn/bn_add.c:219:13: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_usub` 
  217.               dif--;
  218.               t1 = *(ap++);
  219.               t2 = (t1 - 1) & BN_MASK2;
                     ^
  220.               *(rp++) = t2;
  221.               if (t1)
