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


crypto/rsa/rsa_sp800_56b_check.c:57:14: Call
55.             && (BN_cmp(rsa->iqmp, rsa->p) < 0)
56.             /* (d) 1 = (dP . e) mod (p - 1)*/
57.             && BN_mod_mul(r, rsa->dmp1, rsa->e, p1, ctx)
                   ^
58.             && BN_is_one(r)
59.             /* (e) 1 = (dQ . e) mod (q - 1) */

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.       CTXDBG("ENTER BN_CTX_end()", ctx);

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: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:202:1: Parameter `ctx->pool.used`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/bn/bn_mod.c:207:14: Call
  205.           goto err;
  206.       if (a == b) {
  207.           if (!BN_sqr(t, a, ctx))
                      ^
  208.               goto err;
  209.       } else {

crypto/bn/bn_sqr.c:17:1: Parameter `ctx->pool.used`
    15.    * I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96
    16.    */
    17. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
    18.   {
    19.       int ret = bn_sqr_fixed_top(r, a, ctx);

crypto/bn/bn_sqr.c:19:15: Call
    17.   int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
    18.   {
    19.       int ret = bn_sqr_fixed_top(r, a, ctx);
                        ^
    20.   
    21.       bn_correct_top(r);

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_mod_mul` 
          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;
