crypto/ec/ecp_oct.c:189: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_usub`.
Showing all 12 steps of the trace


crypto/ec/ecp_oct.c:149:14: Call
147.           if (!group->meth->field_decode(group, tmp2, group->b, ctx))
148.               goto err;
149.           if (!BN_mod_add_quick(tmp1, tmp1, tmp2, group->field))
                    ^
150.               goto err;
151.       } else {

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:152:13: Assignment
    150.           if (carry) {
    151.               /* carry != 0 => dif == 0 */
    152.               *rp = 1;
                       ^
    153.               r->top++;
    154.           }

crypto/ec/ecp_oct.c:156:10: Call
154.       }
155.   
156.       if (!BN_mod_sqrt(y, tmp1, group->field, ctx)) {
                ^
157.           unsigned long err = ERR_peek_last_error();
158.   

crypto/bn/bn_sqrt.c:63:1: Parameter `*a->d`
  61.   #include "bn_lcl.h"
  62.   
  63. > BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
  64.   /*
  65.    * Returns 'ret' such that ret^2 == a (mod p), using the Tonelli/Shanks

crypto/ec/ecp_oct.c:170:18: Call
168.       }
169.   
170.       if (y_bit != BN_is_odd(y)) {
                        ^
171.           if (BN_is_zero(y)) {
172.               int kron;

crypto/bn/bn_lib.c:916:1: Parameter `*a->d`
  914.   }
  915.   
  916. > int BN_is_odd(const BIGNUM *a)
  917.   {
  918.       return (a->top > 0) && (a->d[0] & 1);

crypto/ec/ecp_oct.c:189:14: Call
187.               goto err;
188.           }
189.           if (!BN_usub(y, group->field, y))
                    ^
190.               goto err;
191.       }

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)
