crypto/bn/bn_mod.c:213: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_nnmod`.
Showing all 21 steps of the trace


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: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_mod.c:213:10: Call
211.               goto err;
212.       }
213.       if (!BN_nnmod(r, t, m, ctx))
                ^
214.           goto err;
215.       bn_check_top(r);

crypto/bn/bn_mod.c:13:1: Parameter `ctx->pool.used`
  11.   #include "bn_lcl.h"
  12.   
  13. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
  14.   {
  15.       /*

crypto/bn/bn_mod.c:20:11: Call
  18.        */
  19.   
  20.       if (!(BN_mod(r, m, d, ctx)))
                  ^
  21.           return 0;
  22.       if (!r->neg)

crypto/bn/bn_div.c:209:1: Parameter `ctx->pool.used`
    207.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    208.    */
    209. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    210.              BN_CTX *ctx)
    211.   {

crypto/bn/bn_div.c:229:11: Call
    227.       }
    228.   
    229.       ret = bn_div_fixed_top(dv, rm, num, divisor, ctx);
                     ^
    230.   
    231.       if (ret) {

crypto/bn/bn_div.c:264:1: Parameter `ctx->pool.used`
      262.    *       divisor's length is considered public;
      263.    */
      264. > int bn_div_fixed_top(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
      265.                        const BIGNUM *divisor, BN_CTX *ctx)
      266.   {

crypto/bn/bn_div.c:282:11: Call
      280.       BN_CTX_start(ctx);
      281.       res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
      282.       tmp = BN_CTX_get(ctx);
                       ^
      283.       snum = BN_CTX_get(ctx);
      284.       sdiv = BN_CTX_get(ctx);

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_div.c:283:12: Call
      281.       res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
      282.       tmp = BN_CTX_get(ctx);
      283.       snum = BN_CTX_get(ctx);
                        ^
      284.       sdiv = BN_CTX_get(ctx);
      285.       if (sdiv == NULL)

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_div.c:284:12: Call
      282.       tmp = BN_CTX_get(ctx);
      283.       snum = BN_CTX_get(ctx);
      284.       sdiv = BN_CTX_get(ctx);
                        ^
      285.       if (sdiv == NULL)
      286.           goto err;

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_div.c:450:5: Call
      448.       if (rm != NULL)
      449.           bn_rshift_fixed_top(rm, snum, norm_shift);
      450.       BN_CTX_end(ctx);
                 ^
      451.       return 1;
      452.    err:

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