crypto/ec/ec2_smpl.c:665: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_CTX_end`.
Showing all 11 steps of the trace


crypto/ec/ec2_smpl.c:610:1: Parameter `ctx->pool.used`
608.    *      y^2 + x*y = x^3 + a*x^2 + b.
609.    */
610. > int ec_GF2m_simple_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
611.                                  BN_CTX *ctx)
612.   {

crypto/ec/ec2_smpl.c:637:10: Call
635.   
636.       BN_CTX_start(ctx);
637.       y2 = BN_CTX_get(ctx);
                ^
638.       lh = BN_CTX_get(ctx);
639.       if (lh == 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/ec2_smpl.c:638:10: Call
636.       BN_CTX_start(ctx);
637.       y2 = BN_CTX_get(ctx);
638.       lh = BN_CTX_get(ctx);
                ^
639.       if (lh == NULL)
640.           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/ec2_smpl.c:665:9: Call
663.    err:
664.       if (ctx)
665.           BN_CTX_end(ctx);
               ^
666.       if (new_ctx)
667.           BN_CTX_free(new_ctx);

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