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

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

crypto/ec/ec2_mult.c:175:2: Call
  173.   		
  174.   	/* Since Mxy is static we can guarantee that ctx != NULL. */
  175.   	BN_CTX_start(ctx);
          ^
  176.   	t3 = BN_CTX_get(ctx);
  177.   	t4 = 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:209:2: Call
  207.   
  208.    err:
  209.   	BN_CTX_end(ctx);
          ^
  210.   	return ret;
  211.   	}

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