crypto/bn/bn_gf2m.c:997: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_GF2m_mod_sqr_arr`.
Showing all 13 steps of the trace


crypto/bn/bn_gf2m.c:942:1: Parameter `ctx->stack.depth`
940.    * Uses algorithms A.4.7 and A.4.6 from IEEE P1363.
941.    */
942. > int BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a_, const int p[], BN_CTX *ctx)
943.   	{
944.   	int ret = 0, count = 0, j;

crypto/bn/bn_gf2m.c:956:2: Call
954.   		}
955.   
956.   	BN_CTX_start(ctx);
        ^
957.   	a = BN_CTX_get(ctx);
958.   	z = 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/bn/bn_gf2m.c:997:10: Call
995.   			for (j = 1; j <= p[0] - 1; j++)
996.   				{
997.   				if (!BN_GF2m_mod_sqr_arr(z, z, p, ctx)) goto err;
                 ^
998.   				if (!BN_GF2m_mod_sqr_arr(w2, w, p, ctx)) goto err;
999.   				if (!BN_GF2m_mod_mul_arr(tmp, w2, a, p, ctx)) goto err;

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

crypto/bn/bn_gf2m.c:472:2: Call
  470.   
  471.   	bn_check_top(a);
  472.   	BN_CTX_start(ctx);
          ^
  473.   	if ((s = BN_CTX_get(ctx)) == NULL) return 0;
  474.   	if (!bn_wexpand(s, 2 * a->top)) 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:488:2: Call
  486.   	ret = 1;
  487.   err:
  488.   	BN_CTX_end(ctx);
          ^
  489.   	return ret;
  490.   	}

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