crypto/bn/bntest.c:1461: 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:1437:1: Parameter `ctx->stack.depth`
1435.   	}
1436.   
1437. > int test_gf2m_mod_div(BIO *bp,BN_CTX *ctx)
1438.   	{
1439.   	BIGNUM *a,*b[2],*c,*d,*e,*f;

crypto/bn/bntest.c:1461:4: Call
1459.   		for (j=0; j < 2; j++)
1460.   			{
1461.   			BN_GF2m_mod_div(d, a, c, b[j], ctx);
           ^
1462.   			BN_GF2m_mod_mul(e, d, c, b[j], ctx);
1463.   			BN_GF2m_mod_div(f, a, e, b[j], ctx);

crypto/bn/bn_gf2m.c:685:1: Parameter `ctx->stack.depth`
  683.    * or y, x could equal y.
  684.    */
  685. > int BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *y, const BIGNUM *x, const BIGNUM *p, BN_CTX *ctx)
  686.   	{
  687.   	BIGNUM *xinv = NULL;

crypto/bn/bn_gf2m.c:694:2: Call
  692.   	bn_check_top(p);
  693.   
  694.   	BN_CTX_start(ctx);
          ^
  695.   	xinv = BN_CTX_get(ctx);
  696.   	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:698:7: Call
  696.   	if (xinv == NULL) goto err;
  697.   	
  698.   	if (!BN_GF2m_mod_inv(xinv, x, p, ctx)) goto err;
               ^
  699.   	if (!BN_GF2m_mod_mul(r, y, xinv, p, ctx)) goto err;
  700.   	bn_check_top(r);

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

crypto/bn/bn_gf2m.c:534:2: Call
    532.   	bn_check_top(p);
    533.   
    534.   	BN_CTX_start(ctx);
            ^
    535.   	
    536.   	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:652:4: Call
    650.           bn_correct_top(v);
    651.   #endif
    652.     	BN_CTX_end(ctx);
              ^
    653.   	return ret;
    654.   	}

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.   
