crypto/ec/ec2_mult.c:286: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `gf2m_Mxy`.
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:286:6: Call
284.   
285.   	/* convert out of "projective" coordinates */
286.   	i = gf2m_Mxy(group, &point->X, &point->Y, x1, z1, x2, z2, ctx);
            ^
287.   	if (i == 0) goto err;
288.   	else if (i == 1) 

crypto/ec/ec2_mult.c:150:1: Parameter `ctx->stack.depth`
  148.    *     2 otherwise
  149.    */
  150. > static int gf2m_Mxy(const EC_GROUP *group, const BIGNUM *x, const BIGNUM *y, BIGNUM *x1, 
  151.   	BIGNUM *z1, BIGNUM *x2, BIGNUM *z2, BN_CTX *ctx)
  152.   	{

crypto/ec/ec2_mult.c:171:2: Call
  169.   		
  170.   	/* Since Mxy is static we can guarantee that ctx != NULL. */
  171.   	BN_CTX_start(ctx);
          ^
  172.   	t3 = BN_CTX_get(ctx);
  173.   	t4 = 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:205:2: Call
  203.   
  204.    err:
  205.   	BN_CTX_end(ctx);
          ^
  206.   	return ret;
  207.   	}

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_Mxy` 
      351.   static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   	{
      353.   	return st->indexes[--(st->depth)];
                     ^
      354.   	}
      355.   
