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

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

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

crypto/ec/ec2_mult.c:297:6: Call
295.   
296.   	/* convert out of "projective" coordinates */
297.   	i = gf2m_Mxy(group, point->X, point->Y, x1, z1, x2, z2, ctx);
            ^
298.   	if (i == 0) goto err;
299.   	else if (i == 1) 

crypto/ec/ec2_mult.c:155:1: Parameter `ctx->stack.depth`
  153.    *     2 otherwise
  154.    */
  155. > static int gf2m_Mxy(const EC_GROUP *group, const BIGNUM *x, const BIGNUM *y, BIGNUM *x1, 
  156.   	BIGNUM *z1, BIGNUM *x2, BIGNUM *z2, BN_CTX *ctx)
  157.   	{

crypto/ec/ec2_mult.c:176:2: Call
  174.   		
  175.   	/* Since Mxy is static we can guarantee that ctx != NULL. */
  176.   	BN_CTX_start(ctx);
          ^
  177.   	t3 = BN_CTX_get(ctx);
  178.   	t4 = BN_CTX_get(ctx);

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

crypto/ec/ec2_mult.c:210:2: Call
  208.   
  209.    err:
  210.   	BN_CTX_end(ctx);
          ^
  211.   	return ret;
  212.   	}

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

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

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

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

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