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


crypto/bn/bn_mod.c:224:10: Call
222.   int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
223.   {
224.       if (!BN_sqr(r, a, ctx))
                ^
225.           return 0;
226.       /* r->neg == 0,  thus we don't need BN_nnmod */

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:227:12: Call
225.           return 0;
226.       /* r->neg == 0,  thus we don't need BN_nnmod */
227.       return BN_mod(r, r, m, ctx);
                  ^
228.   }
229.   

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