crypto/bn/bntest.c:1249: 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:1225:1: Parameter `ctx->stack.depth`
1223.   	}
1224.   
1225. > int test_gf2m_mod_div(BIO *bp,BN_CTX *ctx)
1226.   	{
1227.   	BIGNUM *a,*b[2],*c,*d,*e,*f;

crypto/bn/bntest.c:1249:4: Call
1247.   		for (j=0; j < 2; j++)
1248.   			{
1249.   			BN_GF2m_mod_div(d, a, c, b[j], ctx);
           ^
1250.   			BN_GF2m_mod_mul(e, d, c, b[j], ctx);
1251.   			BN_GF2m_mod_div(f, a, e, b[j], ctx);

crypto/bn/bn_gf2m.c:664:1: Parameter `ctx->stack.depth`
  662.    * or y, x could equal y.
  663.    */
  664. > int BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *y, const BIGNUM *x, const BIGNUM *p, BN_CTX *ctx)
  665.   	{
  666.   	BIGNUM *xinv = NULL;

crypto/bn/bn_gf2m.c:673:2: Call
  671.   	bn_check_top(p);
  672.   
  673.   	BN_CTX_start(ctx);
          ^
  674.   	xinv = BN_CTX_get(ctx);
  675.   	if (xinv == NULL) goto err;

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

crypto/bn/bn_gf2m.c:677:7: Call
  675.   	if (xinv == NULL) goto err;
  676.   	
  677.   	if (!BN_GF2m_mod_inv(xinv, x, p, ctx)) goto err;
               ^
  678.   	if (!BN_GF2m_mod_mul(r, y, xinv, p, ctx)) goto err;
  679.   	bn_check_top(r);

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

crypto/bn/bn_gf2m.c:587:2: Call
    585.   	bn_check_top(p);
    586.   
    587.   	BN_CTX_start(ctx);
            ^
    588.   	
    589.   	b = BN_CTX_get(ctx);

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

crypto/bn/bn_gf2m.c:631:4: Call
    629.   
    630.   err:
    631.     	BN_CTX_end(ctx);
              ^
    632.   	return ret;
    633.   	}

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