crypto/bn/bntest.c:1384: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_GF2m_mod_div`.
Showing all 15 steps of the trace


crypto/bn/bntest.c:1360:1: Parameter `ctx->stack.depth`
1358.   	}
1359.   
1360. > int test_gf2m_mod_div(BIO *bp,BN_CTX *ctx)
1361.   	{
1362.   	BIGNUM *a,*b[2],*c,*d,*e,*f;

crypto/bn/bntest.c:1384:4: Call
1382.   		for (j=0; j < 2; j++)
1383.   			{
1384.   			BN_GF2m_mod_div(d, a, c, b[j], ctx);
           ^
1385.   			BN_GF2m_mod_mul(e, d, c, b[j], ctx);
1386.   			BN_GF2m_mod_div(f, a, e, b[j], ctx);

crypto/bn/bn_gf2m.c:678:1: Parameter `ctx->stack.depth`
  676.    * or y, x could equal y.
  677.    */
  678. > int BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *y, const BIGNUM *x, const BIGNUM *p, BN_CTX *ctx)
  679.   	{
  680.   	BIGNUM *xinv = NULL;

crypto/bn/bn_gf2m.c:687:2: Call
  685.   	bn_check_top(p);
  686.   
  687.   	BN_CTX_start(ctx);
          ^
  688.   	xinv = BN_CTX_get(ctx);
  689.   	if (xinv == NULL) goto err;

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/bn/bn_gf2m.c:691:7: Call
  689.   	if (xinv == NULL) goto err;
  690.   	
  691.   	if (!BN_GF2m_mod_inv(xinv, x, p, ctx)) goto err;
               ^
  692.   	if (!BN_GF2m_mod_mul(r, y, xinv, p, ctx)) goto err;
  693.   	bn_check_top(r);

crypto/bn/bn_gf2m.c:525:1: Parameter `ctx->stack.depth`
    523.    *     of Elliptic Curve Cryptography Over Binary Fields".
    524.    */
    525. > int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
    526.   	{
    527.   	BIGNUM *b, *c, *u, *v, *tmp;

crypto/bn/bn_gf2m.c:533:2: Call
    531.   	bn_check_top(p);
    532.   
    533.   	BN_CTX_start(ctx);
            ^
    534.   	
    535.   	if ((b = BN_CTX_get(ctx))==NULL) goto err;

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/bn/bn_gf2m.c:645:4: Call
    643.   
    644.   err:
    645.     	BN_CTX_end(ctx);
              ^
    646.   	return ret;
    647.   	}

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