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


crypto/bn/bn_add.c:14:1: Parameter `*b->d`
12.   
13.   /* r can == a or b */
14. > int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
15.   {
16.       const BIGNUM *tmp;

crypto/bn/bn_add.c:38:13: Call
36.           /* we are now a - b */
37.   
38.           if (BN_ucmp(a, b) < 0) {
                  ^
39.               if (!BN_usub(r, b, a))
40.                   return (0);

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

crypto/bn/bn_add.c:39:18: Call
37.   
38.           if (BN_ucmp(a, b) < 0) {
39.               if (!BN_usub(r, b, a))
                       ^
40.                   return (0);
41.               r->neg = 1;

crypto/bn/bn_add.c:117:1: <LHS trace>
115.   
116.   /* unsigned subtraction of b from a, a must be larger than b. */
117. > int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
118.   {
119.       int max, min, dif;

crypto/bn/bn_add.c:117:1: Parameter `*a->d`
  115.   
  116.   /* unsigned subtraction of b from a, a must be larger than b. */
  117. > int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
  118.   {
  119.       int max, min, dif;

crypto/bn/bn_add.c:169:13: Assignment
  167.           while (dif) {
  168.               dif--;
  169.               t1 = *(ap++);
                     ^
  170.               t2 = (t1 - 1) & BN_MASK2;
  171.               *(rp++) = t2;

crypto/bn/bn_add.c:170:13: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_usub` 
  168.               dif--;
  169.               t1 = *(ap++);
  170.               t2 = (t1 - 1) & BN_MASK2;
                     ^
  171.               *(rp++) = t2;
  172.               if (t1)
