crypto/rsa/rsa_sp800_56b_check.c:63: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 17 steps of the trace


crypto/rsa/rsa_sp800_56b_check.c:60:14: Call
58.             && BN_is_one(r)
59.             /* (e) 1 = (dQ . e) mod (q - 1) */
60.             && BN_mod_mul(r, rsa->dmq1, rsa->e, q1, ctx)
                   ^
61.             && BN_is_one(r)
62.             /* (f) 1 = (qInv . q) mod p */

crypto/bn/bn_mod.c:218:5: Call
  216.       ret = 1;
  217.    err:
  218.       BN_CTX_end(ctx);
             ^
  219.       return ret;
  220.   }

crypto/bn/bn_ctx.c:185:1: Parameter `ctx->pool.used`
    183.   }
    184.   
    185. > void BN_CTX_end(BN_CTX *ctx)
    186.   {
    187.       if (ctx == NULL)

crypto/rsa/rsa_sp800_56b_check.c:63:14: Call
61.             && BN_is_one(r)
62.             /* (f) 1 = (qInv . q) mod p */
63.             && BN_mod_mul(r, rsa->iqmp, rsa->q, rsa->p, ctx)
                   ^
64.             && BN_is_one(r);
65.       BN_clear(p1);

crypto/bn/bn_mod.c:193:1: Parameter `ctx->pool.used`
  191.   
  192.   /* slow but works */
  193. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  194.                  BN_CTX *ctx)
  195.   {

crypto/bn/bn_mod.c:204:14: Call
  202.   
  203.       BN_CTX_start(ctx);
  204.       if ((t = BN_CTX_get(ctx)) == NULL)
                      ^
  205.           goto err;
  206.       if (a == b) {

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

crypto/bn/bn_mod.c:210:14: Call
  208.               goto err;
  209.       } else {
  210.           if (!BN_mul(t, a, b, ctx))
                      ^
  211.               goto err;
  212.       }

crypto/bn/bn_mul.c:497:1: Parameter `ctx->pool.used`
    495.   #endif                          /* BN_RECURSION */
    496.   
    497. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    498.   {
    499.       int ret = bn_mul_fixed_top(r, a, b, ctx);

crypto/bn/bn_mul.c:499:15: Call
    497.   int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    498.   {
    499.       int ret = bn_mul_fixed_top(r, a, b, ctx);
                         ^
    500.   
    501.       bn_correct_top(r);

crypto/bn/bn_mul.c:507:1: Parameter `ctx->pool.used`
      505.   }
      506.   
      507. > int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
      508.   {
      509.       int ret = 0;

crypto/bn/bn_mul.c:618:5: Call
      616.    err:
      617.       bn_check_top(r);
      618.       BN_CTX_end(ctx);
                 ^
      619.       return ret;
      620.   }

crypto/bn/bn_ctx.c:185:1: Parameter `ctx->pool.used`
        183.   }
        184.   
        185. > void BN_CTX_end(BN_CTX *ctx)
        186.   {
        187.       if (ctx == NULL)

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

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

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

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