crypto/ec/ec2_mult.c:273: 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:215:1: Parameter `ctx->stack.depth`
213.    *     GF(2^m) without precomputation" (CHES '99, LNCS 1717).
214.    */
215. > static int ec_GF2m_montgomery_point_multiply(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
216.   	const EC_POINT *point, BN_CTX *ctx)
217.   	{

crypto/ec/ec2_mult.c:239:2: Call
237.   
238.   	/* Since point_multiply is static we can guarantee that ctx != NULL. */
239.   	BN_CTX_start(ctx);
        ^
240.   	x1 = BN_CTX_get(ctx);
241.   	z1 = BN_CTX_get(ctx);

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

crypto/ec/ec2_mult.c:273:10: Call
271.   			if (word & mask)
272.   				{
273.   				if (!gf2m_Madd(group, &point->X, x1, z1, x2, z2, ctx)) goto err;
                ^
274.   				if (!gf2m_Mdouble(group, x2, z2, ctx)) goto err;
275.   				}

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

crypto/ec/ec2_mult.c:120:2: Call
  118.   	
  119.   	/* Since Madd is static we can guarantee that ctx != NULL. */
  120.   	BN_CTX_start(ctx);
          ^
  121.   	t1 = BN_CTX_get(ctx);
  122.   	t2 = BN_CTX_get(ctx);

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

crypto/ec/ec2_mult.c:137:2: Call
  135.   
  136.    err:
  137.   	BN_CTX_end(ctx);
          ^
  138.   	return ret;
  139.   	}

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

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

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

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

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