crypto/ec/ecp_smpl.c:1151: 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:1045:1: Parameter `ctx->pool.used`
1043.   
1044.   
1045. > int ec_GFp_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
1046.   	{
1047.   	/*-

crypto/ec/ecp_smpl.c:1085:9: Call
1083.   
1084.   	BN_CTX_start(ctx);
1085.   	tmp1 = BN_CTX_get(ctx);
                ^
1086.   	tmp2 = BN_CTX_get(ctx);
1087.   	Za23 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:290:1: Parameter `ctx->pool.used`
  288.   	}
  289.   
  290. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  291.   	{
  292.   	BIGNUM *ret;

crypto/ec/ecp_smpl.c:1086:9: Call
1084.   	BN_CTX_start(ctx);
1085.   	tmp1 = BN_CTX_get(ctx);
1086.   	tmp2 = BN_CTX_get(ctx);
                ^
1087.   	Za23 = BN_CTX_get(ctx);
1088.   	Zb23 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:290:1: Parameter `ctx->pool.used`
  288.   	}
  289.   
  290. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  291.   	{
  292.   	BIGNUM *ret;

crypto/ec/ecp_smpl.c:1087:9: Call
1085.   	tmp1 = BN_CTX_get(ctx);
1086.   	tmp2 = BN_CTX_get(ctx);
1087.   	Za23 = BN_CTX_get(ctx);
                ^
1088.   	Zb23 = BN_CTX_get(ctx);
1089.   	if (Zb23 == NULL) goto end;

crypto/bn/bn_ctx.c:290:1: Parameter `ctx->pool.used`
  288.   	}
  289.   
  290. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  291.   	{
  292.   	BIGNUM *ret;

crypto/ec/ecp_smpl.c:1088:9: Call
1086.   	tmp2 = BN_CTX_get(ctx);
1087.   	Za23 = BN_CTX_get(ctx);
1088.   	Zb23 = BN_CTX_get(ctx);
                ^
1089.   	if (Zb23 == NULL) goto end;
1090.   

crypto/bn/bn_ctx.c:290:1: Parameter `ctx->pool.used`
  288.   	}
  289.   
  290. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  291.   	{
  292.   	BIGNUM *ret;

crypto/ec/ecp_smpl.c:1151:2: Call
1149.   
1150.    end:
1151.   	BN_CTX_end(ctx);
         ^
1152.   	if (new_ctx != NULL)
1153.   		BN_CTX_free(new_ctx);

crypto/bn/bn_ctx.c:272:1: Parameter `ctx->pool.used`
  270.   	}
  271.   
  272. > void BN_CTX_end(BN_CTX *ctx)
  273.   	{
  274.   	CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:282:4: Call
  280.   		/* Does this stack frame have anything to release? */
  281.   		if(fp < ctx->used)
  282.   			BN_POOL_release(&ctx->pool, ctx->used - fp);
            ^
  283.   		ctx->used = fp;
  284.   		/* Unjam "too_many" in case "get" had failed */

crypto/bn/bn_ctx.c:440:1: <LHS trace>
438.   	}
439.   
440. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
441.   	{
442.   	unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:440:1: Parameter `p->used`
    438.   	}
    439.   
    440. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
    441.   	{
    442.   	unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:442:2: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_CTX_end` 
    440.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
    441.   	{
    442.   	unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
            ^
    443.   	p->used -= num;
    444.   	while(num--)
