crypto/ec/ec2_mult.c:286: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `gf2m_Madd`.
Showing all 13 steps of the trace


crypto/ec/ec2_mult.c:223:1: Parameter `ctx->stack.depth`
221.    * avoiding conditional branches.
222.    */
223. > static int ec_GF2m_montgomery_point_multiply(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
224.   	const EC_POINT *point, BN_CTX *ctx)
225.   	{

crypto/ec/ec2_mult.c:247:2: Call
245.   
246.   	/* Since point_multiply is static we can guarantee that ctx != NULL. */
247.   	BN_CTX_start(ctx);
        ^
248.   	x1 = BN_CTX_get(ctx);
249.   	z1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:257:1: Parameter `ctx->stack.depth`
  255.   	}
  256.   
  257. > void BN_CTX_start(BN_CTX *ctx)
  258.   	{
  259.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/ec/ec2_mult.c:286:9: Call
284.   			BN_consttime_swap(word & mask, x1, x2, group->field.top);
285.   			BN_consttime_swap(word & mask, z1, z2, group->field.top);
286.   			if (!gf2m_Madd(group, &point->X, x2, z2, x1, z1, ctx)) goto err;
               ^
287.   			if (!gf2m_Mdouble(group, x1, z1, ctx)) goto err;
288.   			BN_consttime_swap(word & mask, x1, x2, group->field.top);

crypto/ec/ec2_mult.c:117:1: Parameter `ctx->stack.depth`
  115.    *     GF(2^m) without precomputation" (CHES '99, LNCS 1717).
  116.    */
  117. > static int gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1, BIGNUM *z1, 
  118.   	const BIGNUM *x2, const BIGNUM *z2, BN_CTX *ctx)
  119.   	{

crypto/ec/ec2_mult.c:124:2: Call
  122.   	
  123.   	/* Since Madd is static we can guarantee that ctx != NULL. */
  124.   	BN_CTX_start(ctx);
          ^
  125.   	t1 = BN_CTX_get(ctx);
  126.   	t2 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:257:1: Parameter `ctx->stack.depth`
    255.   	}
    256.   
    257. > void BN_CTX_start(BN_CTX *ctx)
    258.   	{
    259.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/ec/ec2_mult.c:141:2: Call
  139.   
  140.    err:
  141.   	BN_CTX_end(ctx);
          ^
  142.   	return ret;
  143.   	}

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

crypto/bn/bn_ctx.c:279:21: Call
    277.   	else
    278.   		{
    279.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                               ^
    280.   		/* Does this stack frame have anything to release? */
    281.   		if(fp < ctx->used)

crypto/bn/bn_ctx.c:353:1: <LHS trace>
351.   	}
352.   
353. > static unsigned int BN_STACK_pop(BN_STACK *st)
354.   	{
355.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:353:1: Parameter `st->depth`
      351.   	}
      352.   
      353. > static unsigned int BN_STACK_pop(BN_STACK *st)
      354.   	{
      355.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:355:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `gf2m_Madd` 
      353.   static unsigned int BN_STACK_pop(BN_STACK *st)
      354.   	{
      355.   	return st->indexes[--(st->depth)];
                     ^
      356.   	}
      357.   
