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


crypto/bn/bntest.c:1728:1: Parameter `ctx->stack.depth`
1726.   }
1727.   
1728. > int test_kron(BIO *bp, BN_CTX *ctx)
1729.   {
1730.       BN_GENCB cb;

crypto/bn/bntest.c:1776:14: Call
1774.           b->neg = 0;
1775.   
1776.           if (!BN_mod_exp_recp(r, a, t, b, ctx))
                     ^
1777.               goto err;
1778.           b->neg = 1;

crypto/bn/bn_exp.c:274:1: Parameter `ctx->stack.depth`
  272.   }
  273.   
  274. > int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
  275.                       const BIGNUM *m, BN_CTX *ctx)
  276.   {

crypto/bn/bn_exp.c:297:5: Call
  295.       }
  296.   
  297.       BN_CTX_start(ctx);
             ^
  298.       aa = BN_CTX_get(ctx);
  299.       val[0] = 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:316:10: Call
  314.       }
  315.   
  316.       if (!BN_nnmod(val[0], a, m, ctx))
                  ^
  317.           goto err;               /* 1 */
  318.       if (BN_is_zero(val[0])) {

crypto/bn/bn_mod.c:127:1: Parameter `ctx->stack.depth`
    125.   #endif
    126.   
    127. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
    128.   {
    129.       /*

crypto/bn/bn_mod.c:134:11: Call
    132.        */
    133.   
    134.       if (!(BN_mod(r, m, d, ctx)))
                     ^
    135.           return 0;
    136.       if (!r->neg)

crypto/bn/bn_div.c:189:1: Parameter `ctx->stack.depth`
      187.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
      188.    */
      189. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
      190.              BN_CTX *ctx)
      191.   {

crypto/bn/bn_div.c:242:5: Call
      240.       }
      241.   
      242.       BN_CTX_start(ctx);
                 ^
      243.       tmp = BN_CTX_get(ctx);
      244.       snum = 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_div.c:469:5: Call
      467.       if (no_branch)
      468.           bn_correct_top(res);
      469.       BN_CTX_end(ctx);
                 ^
      470.       return (1);
      471.    err:

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