crypto/bn/bn_mod.c:160: 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:157:10: Call
155.                        const BIGNUM *m)
156.   {
157.       if (!BN_uadd(r, a, b))
                ^
158.           return 0;
159.       if (BN_ucmp(r, m) >= 0)

crypto/bn/bn_add.c:134:13: Unknown value from: bn_add_words
  132.       rp = r->d;
  133.   
  134.       carry = bn_add_words(rp, ap, bp, min);
                     ^
  135.       rp += min;
  136.       ap += min;

crypto/bn/bn_mod.c:159:9: Call
157.       if (!BN_uadd(r, a, b))
158.           return 0;
159.       if (BN_ucmp(r, m) >= 0)
               ^
160.           return BN_usub(r, r, m);
161.       return 1;

crypto/bn/bn_lib.c:604:1: Parameter `*a->d`
  602.   }
  603.   
  604. > int BN_ucmp(const BIGNUM *a, const BIGNUM *b)
  605.   {
  606.       int i;

crypto/bn/bn_mod.c:160:16: Call
158.           return 0;
159.       if (BN_ucmp(r, m) >= 0)
160.           return BN_usub(r, r, m);
                      ^
161.       return 1;
162.   }

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)
