crypto/ec/ec2_smpl.c:571: 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:465:1: Parameter `ctx->pool.used`
463.    * b. Uses algorithm A.10.2 of IEEE P1363.
464.    */
465. > int ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
466.                          const EC_POINT *b, BN_CTX *ctx)
467.   {

crypto/ec/ec2_smpl.c:491:10: Call
489.   
490.       BN_CTX_start(ctx);
491.       x0 = BN_CTX_get(ctx);
                ^
492.       y0 = BN_CTX_get(ctx);
493.       x1 = 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/ec2_smpl.c:492:10: Call
490.       BN_CTX_start(ctx);
491.       x0 = BN_CTX_get(ctx);
492.       y0 = BN_CTX_get(ctx);
                ^
493.       x1 = BN_CTX_get(ctx);
494.       y1 = 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/ec2_smpl.c:493:10: Call
491.       x0 = BN_CTX_get(ctx);
492.       y0 = BN_CTX_get(ctx);
493.       x1 = BN_CTX_get(ctx);
                ^
494.       y1 = BN_CTX_get(ctx);
495.       x2 = 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/ec2_smpl.c:494:10: Call
492.       y0 = BN_CTX_get(ctx);
493.       x1 = BN_CTX_get(ctx);
494.       y1 = BN_CTX_get(ctx);
                ^
495.       x2 = BN_CTX_get(ctx);
496.       y2 = 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/ec2_smpl.c:495:10: Call
493.       x1 = BN_CTX_get(ctx);
494.       y1 = BN_CTX_get(ctx);
495.       x2 = BN_CTX_get(ctx);
                ^
496.       y2 = BN_CTX_get(ctx);
497.       s = 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/ec2_smpl.c:496:10: Call
494.       y1 = BN_CTX_get(ctx);
495.       x2 = BN_CTX_get(ctx);
496.       y2 = BN_CTX_get(ctx);
                ^
497.       s = BN_CTX_get(ctx);
498.       t = 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/ec2_smpl.c:497:9: Call
495.       x2 = BN_CTX_get(ctx);
496.       y2 = BN_CTX_get(ctx);
497.       s = BN_CTX_get(ctx);
               ^
498.       t = BN_CTX_get(ctx);
499.       if (t == 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:498:9: Call
496.       y2 = BN_CTX_get(ctx);
497.       s = BN_CTX_get(ctx);
498.       t = BN_CTX_get(ctx);
               ^
499.       if (t == NULL)
500.           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:571:5: Call
569.   
570.    err:
571.       BN_CTX_end(ctx);
           ^
572.       if (new_ctx != NULL)
573.           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--) {
