crypto/bn/bn_sqrt.c:148: 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:125:10: Call
123.   
124.       /* A = a mod p */
125.       if (!BN_nnmod(A, a, p, ctx))
                ^
126.           goto end;
127.   

crypto/bn/bn_mod.c:126:11: Call
  124.        */
  125.   
  126.       if (!(BN_mod(r, m, d, ctx)))
                   ^
  127.           return 0;
  128.       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_sqrt.c:148:14: Call
146.           if (!BN_add_word(q, 1))
147.               goto end;
148.           if (!BN_mod_exp(ret, A, q, p, ctx))
                    ^
149.               goto end;
150.           err = 0;

crypto/bn/bn_exp.c:197:1: Parameter `ctx->pool.used`
  195.   }
  196.   
  197. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  198.                  BN_CTX *ctx)
  199.   {

crypto/bn/bn_exp.c:262:15: Call
  260.   #ifdef RECP_MUL_MOD
  261.       {
  262.           ret = BN_mod_exp_recp(r, a, p, m, ctx);
                       ^
  263.       }
  264.   #else

crypto/bn/bn_exp.c:274:1: Parameter `ctx->pool.used`
    272.   }
    273.   
    274. > int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
    275.                       const BIGNUM *m, BN_CTX *ctx)
    276.   {

crypto/bn/bn_exp.c:298:10: Call
    296.   
    297.       BN_CTX_start(ctx);
    298.       aa = BN_CTX_get(ctx);
                    ^
    299.       val[0] = BN_CTX_get(ctx);
    300.       if (!aa || !val[0])

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_exp.c:299:14: Call
    297.       BN_CTX_start(ctx);
    298.       aa = BN_CTX_get(ctx);
    299.       val[0] = BN_CTX_get(ctx);
                        ^
    300.       if (!aa || !val[0])
    301.           goto err;

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_exp.c:316:10: Call
    314.       }
    315.   
    316.       if (!BN_nnmod(val[0], a, m, ctx))
                    ^
    317.           goto err;               /* 1 */
    318.       if (BN_is_zero(val[0])) {

crypto/bn/bn_mod.c:119:1: Parameter `ctx->pool.used`
      117.   #include "bn_lcl.h"
      118.   
      119. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
      120.   {
      121.       /*

crypto/bn/bn_mod.c:126:11: Call
      124.        */
      125.   
      126.       if (!(BN_mod(r, m, d, ctx)))
                       ^
      127.           return 0;
      128.       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_div.c:243:11: Call
        241.   
        242.       BN_CTX_start(ctx);
        243.       tmp = BN_CTX_get(ctx);
                         ^
        244.       snum = BN_CTX_get(ctx);
        245.       sdiv = BN_CTX_get(ctx);

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_div.c:244:12: Call
        242.       BN_CTX_start(ctx);
        243.       tmp = BN_CTX_get(ctx);
        244.       snum = BN_CTX_get(ctx);
                          ^
        245.       sdiv = BN_CTX_get(ctx);
        246.       if (dv == NULL)

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_div.c:245:12: Call
        243.       tmp = BN_CTX_get(ctx);
        244.       snum = BN_CTX_get(ctx);
        245.       sdiv = BN_CTX_get(ctx);
                          ^
        246.       if (dv == NULL)
        247.           res = BN_CTX_get(ctx);

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_div.c:469:5: Call
        467.       if (no_branch)
        468.           bn_correct_top(res);
        469.       BN_CTX_end(ctx);
                   ^
        470.       return (1);
        471.    err:

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_exp` 
            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--) {
