crypto/bn/bn_exp.c:181: 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:148:1: Parameter `ctx->stack.depth`
146.   
147.   /* this one works - simple but works */
148. > int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
149.   {
150.       int i, bits, ret = 0;

crypto/bn/bn_exp.c:159:5: Call
157.       }
158.   
159.       BN_CTX_start(ctx);
           ^
160.       if ((r == a) || (r == p))
161.           rr = BN_CTX_get(ctx);

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

crypto/bn/bn_exp.c:181:14: Call
179.   
180.       for (i = 1; i < bits; i++) {
181.           if (!BN_sqr(v, v, ctx))
                    ^
182.               goto err;
183.           if (BN_is_bit_set(p, i)) {

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

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

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

crypto/bn/bn_sqr.c:148:5: Call
  146.       bn_check_top(rr);
  147.       bn_check_top(tmp);
  148.       BN_CTX_end(ctx);
             ^
  149.       return (ret);
  150.   }

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->stack.depth`
    265.   }
    266.   
    267. > void BN_CTX_end(BN_CTX *ctx)
    268.   {
    269.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:273:27: Call
    271.           ctx->err_stack--;
    272.       else {
    273.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    274.           /* Does this stack frame have anything to release? */
    275.           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:12: 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.   
