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


crypto/bn/bn_exp.c:120:1: Parameter `ctx->stack.depth`
118.   
119.   /* this one works - simple but works */
120. > int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
121.   	{
122.   	int i,bits,ret=0;

crypto/bn/bn_exp.c:132:2: Call
130.   		}
131.   
132.   	BN_CTX_start(ctx);
        ^
133.   	if ((r == a) || (r == p))
134.   		rr = BN_CTX_get(ctx);

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_exp.c:148:8: Call
146.   	for (i=1; i<bits; i++)
147.   		{
148.   		if (!BN_sqr(v,v,ctx)) goto err;
              ^
149.   		if (BN_is_bit_set(p,i))
150.   			{

crypto/bn/bn_sqr.c:65:1: Parameter `ctx->stack.depth`
  63.   /* r must not be a */
  64.   /* I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96 */
  65. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
  66.   	{
  67.   	int max,al;

crypto/bn/bn_sqr.c:83:2: Call
  81.   		}
  82.   
  83.   	BN_CTX_start(ctx);
         ^
  84.   	rr=(a != r) ? r : BN_CTX_get(ctx);
  85.   	tmp=BN_CTX_get(ctx);

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_sqr.c:153:2: Call
  151.   	if(rr) bn_check_top(rr);
  152.   	if(tmp) bn_check_top(tmp);
  153.   	BN_CTX_end(ctx);
          ^
  154.   	return(ret);
  155.   	}

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