crypto/bn/bn_exp.c:1327: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 15 steps of the trace


crypto/bn/bn_exp.c:1317:10: Call
1315.           goto err;
1316.   
1317.       if (!BN_nnmod(val[0], a, m, ctx))
                 ^
1318.           goto err;               /* 1 */
1319.       if (BN_is_zero(val[0])) {

crypto/bn/bn_mod.c:134:11: Call
  132.        */
  133.   
  134.       if (!(BN_mod(r, m, d, ctx)))
                   ^
  135.           return 0;
  136.       if (!r->neg)

crypto/bn/bn_div.c:189:1: Parameter `ctx->pool.used`
    187.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    188.    */
    189. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    190.              BN_CTX *ctx)
    191.   {

crypto/bn/bn_exp.c:1327:14: Call
1325.       window = BN_window_bits_for_exponent_size(bits);
1326.       if (window > 1) {
1327.           if (!BN_mod_mul(d, val[0], val[0], m, ctx))
                     ^
1328.               goto err;           /* 2 */
1329.           j = 1 << (window - 1);

crypto/bn/bn_mod.c:187:1: Parameter `ctx->pool.used`
  185.   
  186.   /* slow but works */
  187. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  188.                  BN_CTX *ctx)
  189.   {

crypto/bn/bn_mod.c:198:14: Call
  196.   
  197.       BN_CTX_start(ctx);
  198.       if ((t = BN_CTX_get(ctx)) == NULL)
                      ^
  199.           goto err;
  200.       if (a == b) {

crypto/bn/bn_ctx.c:284:1: Parameter `ctx->pool.used`
    282.   }
    283.   
    284. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    285.   {
    286.       BIGNUM *ret;

crypto/bn/bn_mod.c:204:14: Call
  202.               goto err;
  203.       } else {
  204.           if (!BN_mul(t, a, b, ctx))
                      ^
  205.               goto err;
  206.       }

crypto/bn/bn_mul.c:883:1: Parameter `ctx->pool.used`
    881.   #endif                          /* BN_RECURSION */
    882.   
    883. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    884.   {
    885.       int ret = 0;

crypto/bn/bn_mul.c:1033:5: Call
    1031.    err:
    1032.       bn_check_top(r);
    1033.       BN_CTX_end(ctx);
                ^
    1034.       return (ret);
    1035.   }

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
      265.   }
      266.   
      267. > void BN_CTX_end(BN_CTX *ctx)
      268.   {
      269.       CTXDBG_ENTRY("BN_CTX_end", ctx);

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

crypto/bn/bn_ctx.c:435:1: <LHS trace>
433.   }
434.   
435. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
436.   {
437.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:435:1: Parameter `p->used`
        433.   }
        434.   
        435. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
        436.   {
        437.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

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