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


crypto/ec/ecp_smpl.c:1108:1: Parameter `ctx->pool.used`
1106.   }
1107.   
1108. > int ec_GFp_simple_cmp(const EC_GROUP *group, const EC_POINT *a,
1109.                         const EC_POINT *b, BN_CTX *ctx)
1110.   {

crypto/ec/ecp_smpl.c:1147:12: Call
1145.   
1146.       BN_CTX_start(ctx);
1147.       tmp1 = BN_CTX_get(ctx);
                   ^
1148.       tmp2 = BN_CTX_get(ctx);
1149.       Za23 = 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:1148:12: Call
1146.       BN_CTX_start(ctx);
1147.       tmp1 = BN_CTX_get(ctx);
1148.       tmp2 = BN_CTX_get(ctx);
                   ^
1149.       Za23 = BN_CTX_get(ctx);
1150.       Zb23 = 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:1149:12: Call
1147.       tmp1 = BN_CTX_get(ctx);
1148.       tmp2 = BN_CTX_get(ctx);
1149.       Za23 = BN_CTX_get(ctx);
                   ^
1150.       Zb23 = BN_CTX_get(ctx);
1151.       if (Zb23 == 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:1150:12: Call
1148.       tmp2 = BN_CTX_get(ctx);
1149.       Za23 = BN_CTX_get(ctx);
1150.       Zb23 = BN_CTX_get(ctx);
                   ^
1151.       if (Zb23 == NULL)
1152.           goto end;

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:1211:5: Call
1209.   
1210.    end:
1211.       BN_CTX_end(ctx);
            ^
1212.       if (new_ctx != NULL)
1213.           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--) {
