crypto/dh/dh_check.c:99: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_exp`.
Showing all 20 steps of the trace


crypto/dh/dh_check.c:84:5: Call
82.       if (ctx == NULL)
83.           goto err;
84.       BN_CTX_start(ctx);
          ^
85.       t1 = BN_CTX_get(ctx);
86.       if (t1 == NULL)

crypto/bn/bn_ctx.c:235:1: Parameter `ctx->stack.depth`
  233.   }
  234.   
  235. > void BN_CTX_start(BN_CTX *ctx)
  236.   {
  237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/dh/dh_check.c:99:18: Call
97.           else {
98.               /* Check g^q == 1 mod p */
99.               if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx))
                        ^
100.                   goto err;
101.               if (!BN_is_one(t1))

crypto/bn/bn_exp.c:190:1: Parameter `ctx->stack.depth`
  188.   }
  189.   
  190. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  191.                  BN_CTX *ctx)
  192.   {

crypto/bn/bn_exp.c:255:15: Call
  253.   #ifdef RECP_MUL_MOD
  254.       {
  255.           ret = BN_mod_exp_recp(r, a, p, m, ctx);
                       ^
  256.       }
  257.   #else

crypto/bn/bn_exp.c:267:1: Parameter `ctx->stack.depth`
    265.   }
    266.   
    267. > int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
    268.                       const BIGNUM *m, BN_CTX *ctx)
    269.   {

crypto/bn/bn_exp.c:295:5: Call
    293.       }
    294.   
    295.       BN_CTX_start(ctx);
               ^
    296.       aa = BN_CTX_get(ctx);
    297.       val[0] = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:235:1: Parameter `ctx->stack.depth`
      233.   }
      234.   
      235. > void BN_CTX_start(BN_CTX *ctx)
      236.   {
      237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_exp.c:314:10: Call
    312.       }
    313.   
    314.       if (!BN_nnmod(val[0], a, m, ctx))
                    ^
    315.           goto err;               /* 1 */
    316.       if (BN_is_zero(val[0])) {

crypto/bn/bn_mod.c:118:1: Parameter `ctx->stack.depth`
      116.   #include "bn_lcl.h"
      117.   
      118. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
      119.   {
      120.       /*

crypto/bn/bn_mod.c:125:11: Call
      123.        */
      124.   
      125.       if (!(BN_mod(r, m, d, ctx)))
                       ^
      126.           return 0;
      127.       if (!r->neg)

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

crypto/bn/bn_div.c:241:5: Call
        239.       }
        240.   
        241.       BN_CTX_start(ctx);
                   ^
        242.       tmp = BN_CTX_get(ctx);
        243.       snum = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:235:1: Parameter `ctx->stack.depth`
          233.   }
          234.   
          235. > void BN_CTX_start(BN_CTX *ctx)
          236.   {
          237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_div.c:468:5: Call
        466.       if (no_branch)
        467.           bn_correct_top(res);
        468.       BN_CTX_end(ctx);
                   ^
        469.       return (1);
        470.    err:

crypto/bn/bn_ctx.c:249:1: Parameter `ctx->stack.depth`
          247.   }
          248.   
          249. > void BN_CTX_end(BN_CTX *ctx)
          250.   {
          251.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:255:27: Call
          253.           ctx->err_stack--;
          254.       else {
          255.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                           ^
          256.           /* Does this stack frame have anything to release? */
          257.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:325:1: <LHS trace>
323.   }
324.   
325. > static unsigned int BN_STACK_pop(BN_STACK *st)
326.   {
327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: Parameter `st->depth`
            323.   }
            324.   
            325. > static unsigned int BN_STACK_pop(BN_STACK *st)
            326.   {
            327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:327:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_mod_exp` 
            325.   static unsigned int BN_STACK_pop(BN_STACK *st)
            326.   {
            327.       return st->indexes[--(st->depth)];
                              ^
            328.   }
            329.   
