crypto/bn/bn_blind.c:113: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `bn_mul_mont_fixed_top`.
Showing all 16 steps of the trace


crypto/bn/bn_blind.c:112:18: Call
110.       } else if (!(b->flags & BN_BLINDING_NO_UPDATE)) {
111.           if (b->m_ctx != NULL) {
112.               if (!bn_mul_mont_fixed_top(b->Ai, b->Ai, b->Ai, b->m_ctx, ctx)
                        ^
113.                   || !bn_mul_mont_fixed_top(b->A, b->A, b->A, b->m_ctx, ctx))
114.                   goto err;

crypto/bn/bn_mont.c:37:1: Parameter `ctx->pool.used`
  35.   }
  36.   
  37. > int bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  38.                             BN_MONT_CTX *mont, BN_CTX *ctx)
  39.   {

crypto/bn/bn_blind.c:113:21: Call
111.           if (b->m_ctx != NULL) {
112.               if (!bn_mul_mont_fixed_top(b->Ai, b->Ai, b->Ai, b->m_ctx, ctx)
113.                   || !bn_mul_mont_fixed_top(b->A, b->A, b->A, b->m_ctx, ctx))
                           ^
114.                   goto err;
115.           } else {

crypto/bn/bn_mont.c:37:1: Parameter `ctx->pool.used`
  35.   }
  36.   
  37. > int bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  38.                             BN_MONT_CTX *mont, BN_CTX *ctx)
  39.   {

crypto/bn/bn_mont.c:61:11: Call
  59.   
  60.       BN_CTX_start(ctx);
  61.       tmp = BN_CTX_get(ctx);
                  ^
  62.       if (tmp == NULL)
  63.           goto err;

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->pool.used`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/bn/bn_mont.c:67:14: Call
  65.       bn_check_top(tmp);
  66.       if (a == b) {
  67.           if (!bn_sqr_fixed_top(tmp, a, ctx))
                     ^
  68.               goto err;
  69.       } else {

crypto/bn/bn_sqr.c:27:1: Parameter `ctx->pool.used`
    25.   }
    26.   
    27. > int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
    28.   {
    29.       int max, al;

crypto/bn/bn_sqr.c:44:11: Call
    42.       BN_CTX_start(ctx);
    43.       rr = (a != r) ? r : BN_CTX_get(ctx);
    44.       tmp = BN_CTX_get(ctx);
                    ^
    45.       if (rr == NULL || tmp == NULL)
    46.           goto err;

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->pool.used`
      200.   }
      201.   
      202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      203.   {
      204.       BIGNUM *ret;

crypto/bn/bn_sqr.c:104:5: Call
    102.       bn_check_top(rr);
    103.       bn_check_top(tmp);
    104.       BN_CTX_end(ctx);
               ^
    105.       return ret;
    106.   }

crypto/bn/bn_ctx.c:185:1: Parameter `ctx->pool.used`
      183.   }
      184.   
      185. > void BN_CTX_end(BN_CTX *ctx)
      186.   {
      187.       CTXDBG("ENTER BN_CTX_end()", ctx);

crypto/bn/bn_ctx.c:194:13: Call
      192.           /* Does this stack frame have anything to release? */
      193.           if (fp < ctx->used)
      194.               BN_POOL_release(&ctx->pool, ctx->used - fp);
                         ^
      195.           ctx->used = fp;
      196.           /* Unjam "too_many" in case "get" had failed */

crypto/bn/bn_ctx.c:338:1: <LHS trace>
336.   }
337.   
338. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
339.   {
340.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:338:1: Parameter `p->used`
        336.   }
        337.   
        338. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
        339.   {
        340.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:340:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `bn_mul_mont_fixed_top` 
        338.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
        339.   {
        340.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
                   ^
        341.   
        342.       p->used -= num;
