crypto/bn/bn_sqrt.c:98: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_exp`.
Showing all 27 steps of the trace


crypto/bn/bn_sqrt.c:75:10: Call
73.   
74.       /* A = a mod p */
75.       if (!BN_nnmod(A, a, p, ctx))
               ^
76.           goto end;
77.   

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:140:1: Parameter `ctx->pool.used`
    138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    139.    */
    140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    141.              BN_CTX *ctx)
    142.   {

crypto/bn/bn_sqrt.c:98:14: Call
96.           if (!BN_add_word(q, 1))
97.               goto end;
98.           if (!BN_mod_exp(ret, A, q, p, ctx))
                    ^
99.               goto end;
100.           err = 0;

crypto/bn/bn_exp.c:88:1: Parameter `ctx->pool.used`
  86.   }
  87.   
  88. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  89.                  BN_CTX *ctx)
  90.   {

crypto/bn/bn_exp.c:146:15: Call
  144.   #ifdef RECP_MUL_MOD
  145.       {
  146.           ret = BN_mod_exp_recp(r, a, p, m, ctx);
                       ^
  147.       }
  148.   #else

crypto/bn/bn_exp.c:158:1: Parameter `ctx->pool.used`
    156.   }
    157.   
    158. > int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
    159.                       const BIGNUM *m, BN_CTX *ctx)
    160.   {

crypto/bn/bn_exp.c:187:10: Call
    185.   
    186.       BN_CTX_start(ctx);
    187.       aa = BN_CTX_get(ctx);
                    ^
    188.       val[0] = BN_CTX_get(ctx);
    189.       if (val[0] == NULL)

crypto/bn/bn_ctx.c:212:1: Parameter `ctx->pool.used`
      210.   }
      211.   
      212. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      213.   {
      214.       BIGNUM *ret;

crypto/bn/bn_exp.c:188:14: Call
    186.       BN_CTX_start(ctx);
    187.       aa = BN_CTX_get(ctx);
    188.       val[0] = BN_CTX_get(ctx);
                        ^
    189.       if (val[0] == NULL)
    190.           goto err;

crypto/bn/bn_ctx.c:212:1: Parameter `ctx->pool.used`
      210.   }
      211.   
      212. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      213.   {
      214.       BIGNUM *ret;

crypto/bn/bn_exp.c:205:10: Call
    203.       }
    204.   
    205.       if (!BN_nnmod(val[0], a, m, ctx))
                    ^
    206.           goto err;               /* 1 */
    207.       if (BN_is_zero(val[0])) {

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:140:1: Parameter `ctx->pool.used`
        138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
        139.    */
        140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
        141.              BN_CTX *ctx)
        142.   {

crypto/bn/bn_div.c:195:11: Call
        193.       BN_CTX_start(ctx);
        194.       res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
        195.       tmp = BN_CTX_get(ctx);
                         ^
        196.       snum = BN_CTX_get(ctx);
        197.       sdiv = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:212:1: Parameter `ctx->pool.used`
          210.   }
          211.   
          212. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
          213.   {
          214.       BIGNUM *ret;

crypto/bn/bn_div.c:196:12: Call
        194.       res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
        195.       tmp = BN_CTX_get(ctx);
        196.       snum = BN_CTX_get(ctx);
                          ^
        197.       sdiv = BN_CTX_get(ctx);
        198.       if (sdiv == NULL)

crypto/bn/bn_ctx.c:212:1: Parameter `ctx->pool.used`
          210.   }
          211.   
          212. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
          213.   {
          214.       BIGNUM *ret;

crypto/bn/bn_div.c:197:12: Call
        195.       tmp = BN_CTX_get(ctx);
        196.       snum = BN_CTX_get(ctx);
        197.       sdiv = BN_CTX_get(ctx);
                          ^
        198.       if (sdiv == NULL)
        199.           goto err;

crypto/bn/bn_ctx.c:212:1: Parameter `ctx->pool.used`
          210.   }
          211.   
          212. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
          213.   {
          214.       BIGNUM *ret;

crypto/bn/bn_div.c:413:5: Call
        411.       if (no_branch)
        412.           bn_correct_top(res);
        413.       BN_CTX_end(ctx);
                   ^
        414.       return 1;
        415.    err:

crypto/bn/bn_ctx.c:195:1: Parameter `ctx->pool.used`
          193.   }
          194.   
          195. > void BN_CTX_end(BN_CTX *ctx)
          196.   {
          197.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:204:13: Call
          202.           /* Does this stack frame have anything to release? */
          203.           if (fp < ctx->used)
          204.               BN_POOL_release(&ctx->pool, ctx->used - fp);
                             ^
          205.           ctx->used = fp;
          206.           /* 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_exp` 
            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;
