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


crypto/bn/bntest.c:1553:1: Parameter `ctx->stack.depth`
1551.   	}
1552.   
1553. > int test_gf2m_mod_solve_quad(BIO *bp,BN_CTX *ctx)
1554.   	{
1555.   	BIGNUM *a,*b[2],*c,*d,*e;

crypto/bn/bntest.c:1575:8: Call
1573.   		for (j=0; j < 2; j++)
1574.   			{
1575.   			t = BN_GF2m_mod_solve_quad(c, a, b[j], ctx);
               ^
1576.   			if (t)
1577.   				{

crypto/bn/bn_gf2m.c:951:1: Parameter `ctx->stack.depth`
  949.    * BN_GF2m_mod_solve_quad_arr function.
  950.    */
  951. > int BN_GF2m_mod_solve_quad(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
  952.   	{
  953.   	int ret = 0;

crypto/bn/bntest.c:1579:5: Call
1577.   				{
1578.   				s++;
1579.   				BN_GF2m_mod_sqr(d, c, b[j], ctx);
            ^
1580.   				BN_GF2m_add(d, c, d);
1581.   				BN_GF2m_mod(e, a, b[j]);

crypto/bn/bn_gf2m.c:489:1: Parameter `ctx->stack.depth`
  487.    * BN_GF2m_mod_sqr_arr function.
  488.    */
  489. > int	BN_GF2m_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
  490.   	{
  491.   	int ret = 0;

crypto/bn/bn_gf2m.c:504:8: Call
  502.   		goto err;
  503.   		}
  504.   	ret = BN_GF2m_mod_sqr_arr(r, a, arr, ctx);
                ^
  505.   	bn_check_top(r);
  506.   err:

crypto/bn/bn_gf2m.c:457:1: Parameter `ctx->stack.depth`
    455.   
    456.   /* Square a, reduce the result mod p, and store it in a.  r could be a. */
    457. > int	BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const int p[], BN_CTX *ctx)
    458.   	{
    459.   	int i, ret = 0;

crypto/bn/bn_gf2m.c:463:2: Call
    461.   
    462.   	bn_check_top(a);
    463.   	BN_CTX_start(ctx);
            ^
    464.   	if ((s = BN_CTX_get(ctx)) == NULL) return 0;
    465.   	if (!bn_wexpand(s, 2 * a->top)) goto err;

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

crypto/bn/bn_gf2m.c:479:2: Call
    477.   	ret = 1;
    478.   err:
    479.   	BN_CTX_end(ctx);
            ^
    480.   	return ret;
    481.   	}

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