crypto/ec/ecp_smpl.c:332: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_sqr`.
Showing all 23 steps of the trace


crypto/ec/ecp_smpl.c:287:1: Parameter `ctx->pool.used`
285.   }
286.   
287. > int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx)
288.   {
289.       int ret = 0;

crypto/ec/ecp_smpl.c:303:9: Call
301.       }
302.       BN_CTX_start(ctx);
303.       a = BN_CTX_get(ctx);
               ^
304.       b = BN_CTX_get(ctx);
305.       tmp_1 = 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/ec/ecp_smpl.c:304:9: Call
302.       BN_CTX_start(ctx);
303.       a = BN_CTX_get(ctx);
304.       b = BN_CTX_get(ctx);
               ^
305.       tmp_1 = BN_CTX_get(ctx);
306.       tmp_2 = 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/ec/ecp_smpl.c:305:13: Call
303.       a = BN_CTX_get(ctx);
304.       b = BN_CTX_get(ctx);
305.       tmp_1 = BN_CTX_get(ctx);
                   ^
306.       tmp_2 = BN_CTX_get(ctx);
307.       order = 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/ec/ecp_smpl.c:306:13: Call
304.       b = BN_CTX_get(ctx);
305.       tmp_1 = BN_CTX_get(ctx);
306.       tmp_2 = BN_CTX_get(ctx);
                   ^
307.       order = BN_CTX_get(ctx);
308.       if (order == 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/ec/ecp_smpl.c:307:13: Call
305.       tmp_1 = BN_CTX_get(ctx);
306.       tmp_2 = BN_CTX_get(ctx);
307.       order = BN_CTX_get(ctx);
                   ^
308.       if (order == NULL)
309.           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/ec/ecp_smpl.c:332:14: Call
330.               goto err;
331.       } else if (!BN_is_zero(b)) {
332.           if (!BN_mod_sqr(tmp_1, a, p, ctx))
                    ^
333.               goto err;
334.           if (!BN_mod_mul(tmp_2, tmp_1, a, p, ctx))

crypto/bn/bn_mod.c:216:1: Parameter `ctx->pool.used`
  214.   }
  215.   
  216. > int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
  217.   {
  218.       if (!BN_sqr(r, a, ctx))

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

crypto/bn/bn_sqr.c:66:1: Parameter `ctx->pool.used`
    64.    * I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96
    65.    */
    66. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
    67.   {
    68.       int max, al;

crypto/bn/bn_sqr.c:83:11: Call
    81.       BN_CTX_start(ctx);
    82.       rr = (a != r) ? r : BN_CTX_get(ctx);
    83.       tmp = BN_CTX_get(ctx);
                    ^
    84.       if (!rr || !tmp)
    85.           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_sqr.c:148:5: Call
    146.       bn_check_top(rr);
    147.       bn_check_top(tmp);
    148.       BN_CTX_end(ctx);
               ^
    149.       return (ret);
    150.   }

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