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


crypto/ec/ec2_smpl.c:458:1: Parameter `ctx->pool.used`
456.    * b. Uses algorithm A.10.2 of IEEE P1363.
457.    */
458. > int ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
459.                          const EC_POINT *b, BN_CTX *ctx)
460.   {

crypto/ec/ec2_smpl.c:484:10: Call
482.   
483.       BN_CTX_start(ctx);
484.       x0 = BN_CTX_get(ctx);
                ^
485.       y0 = BN_CTX_get(ctx);
486.       x1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:485:10: Call
483.       BN_CTX_start(ctx);
484.       x0 = BN_CTX_get(ctx);
485.       y0 = BN_CTX_get(ctx);
                ^
486.       x1 = BN_CTX_get(ctx);
487.       y1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:486:10: Call
484.       x0 = BN_CTX_get(ctx);
485.       y0 = BN_CTX_get(ctx);
486.       x1 = BN_CTX_get(ctx);
                ^
487.       y1 = BN_CTX_get(ctx);
488.       x2 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:487:10: Call
485.       y0 = BN_CTX_get(ctx);
486.       x1 = BN_CTX_get(ctx);
487.       y1 = BN_CTX_get(ctx);
                ^
488.       x2 = BN_CTX_get(ctx);
489.       y2 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:488:10: Call
486.       x1 = BN_CTX_get(ctx);
487.       y1 = BN_CTX_get(ctx);
488.       x2 = BN_CTX_get(ctx);
                ^
489.       y2 = BN_CTX_get(ctx);
490.       s = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:489:10: Call
487.       y1 = BN_CTX_get(ctx);
488.       x2 = BN_CTX_get(ctx);
489.       y2 = BN_CTX_get(ctx);
                ^
490.       s = BN_CTX_get(ctx);
491.       t = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:490:9: Call
488.       x2 = BN_CTX_get(ctx);
489.       y2 = BN_CTX_get(ctx);
490.       s = BN_CTX_get(ctx);
               ^
491.       t = BN_CTX_get(ctx);
492.       if (t == NULL)

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:491:9: Call
489.       y2 = BN_CTX_get(ctx);
490.       s = BN_CTX_get(ctx);
491.       t = BN_CTX_get(ctx);
               ^
492.       if (t == NULL)
493.           goto err;

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ec2_smpl.c:564:5: Call
562.   
563.    err:
564.       BN_CTX_end(ctx);
           ^
565.       BN_CTX_free(new_ctx);
566.       return ret;

crypto/bn/bn_ctx.c:254:1: Parameter `ctx->pool.used`
  252.   }
  253.   
  254. > void BN_CTX_end(BN_CTX *ctx)
  255.   {
  256.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:263:13: Call
  261.           /* Does this stack frame have anything to release? */
  262.           if (fp < ctx->used)
  263.               BN_POOL_release(&ctx->pool, ctx->used - fp);
                     ^
  264.           ctx->used = fp;
  265.           /* Unjam "too_many" in case "get" had failed */

crypto/bn/bn_ctx.c:399:1: <LHS trace>
397.   }
398.   
399. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
400.   {
401.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:399:1: Parameter `p->used`
    397.   }
    398.   
    399. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
    400.   {
    401.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:401:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_CTX_end` 
    399.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
    400.   {
    401.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
               ^
    402.   
    403.       p->used -= num;
