crypto/rsa/rsa_chk.c:144: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 24 steps of the trace


crypto/rsa/rsa_chk.c:85:9: Call
83.   
84.       /* p prime? */
85.       r = BN_is_prime_ex(key->p, BN_prime_checks, NULL, cb);
              ^
86.       if (r != 1) {
87.           ret = r;

crypto/bn/bn_prime.c:293:1: Parameter `ctx_passed->stack.depth`
  291.   }
  292.   
  293. > int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
  294.                      BN_GENCB *cb)
  295.   {

crypto/bn/bn_prime.c:296:12: Call
  294.                      BN_GENCB *cb)
  295.   {
  296.       return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
                    ^
  297.   }
  298.   

crypto/bn/bn_prime.c:299:1: Parameter `ctx_passed->stack.depth`
    297.   }
    298.   
    299. > int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
    300.                               int do_trial_division, BN_GENCB *cb)
    301.   {

crypto/rsa/rsa_chk.c:94:9: Call
92.   
93.       /* q prime? */
94.       r = BN_is_prime_ex(key->q, BN_prime_checks, NULL, cb);
              ^
95.       if (r != 1) {
96.           ret = r;

crypto/bn/bn_prime.c:293:1: Parameter `ctx_passed->stack.depth`
  291.   }
  292.   
  293. > int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
  294.                      BN_GENCB *cb)
  295.   {

crypto/bn/bn_prime.c:296:12: Call
  294.                      BN_GENCB *cb)
  295.   {
  296.       return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
                    ^
  297.   }
  298.   

crypto/bn/bn_prime.c:299:1: Parameter `ctx_passed->stack.depth`
    297.   }
    298.   
    299. > int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
    300.                               int do_trial_division, BN_GENCB *cb)
    301.   {

crypto/rsa/rsa_chk.c:103:9: Call
101.   
102.       /* n = p*q? */
103.       r = BN_mul(i, key->p, key->q, ctx);
               ^
104.       if (!r) {
105.           ret = -1;

crypto/bn/bn_mul.c:882:1: Parameter `ctx->stack.depth`
  880.   #endif                          /* BN_RECURSION */
  881.   
  882. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
  883.   {
  884.       int ret = 0;

crypto/rsa/rsa_chk.c:144:9: Call
142.       }
143.   
144.       r = BN_mod_mul(i, key->d, key->e, k, ctx);
               ^
145.       if (!r) {
146.           ret = -1;

crypto/bn/bn_mod.c:178:1: Parameter `ctx->stack.depth`
  176.   
  177.   /* slow but works */
  178. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  179.                  BN_CTX *ctx)
  180.   {

crypto/bn/bn_mod.c:188:5: Call
  186.       bn_check_top(m);
  187.   
  188.       BN_CTX_start(ctx);
             ^
  189.       if ((t = BN_CTX_get(ctx)) == NULL)
  190.           goto err;

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_mod.c:195:14: Call
  193.               goto err;
  194.       } else {
  195.           if (!BN_mul(t, a, b, ctx))
                      ^
  196.               goto err;
  197.       }

crypto/bn/bn_mul.c:882:1: Parameter `ctx->stack.depth`
    880.   #endif                          /* BN_RECURSION */
    881.   
    882. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    883.   {
    884.       int ret = 0;

crypto/bn/bn_mul.c:908:5: Call
    906.       top = al + bl;
    907.   
    908.       BN_CTX_start(ctx);
               ^
    909.       if ((r == a) || (r == b)) {
    910.           if ((rr = BN_CTX_get(ctx)) == 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/bn/bn_mul.c:1032:5: Call
    1030.    err:
    1031.       bn_check_top(r);
    1032.       BN_CTX_end(ctx);
                ^
    1033.       return (ret);
    1034.   }

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_mul` 
        325.   static unsigned int BN_STACK_pop(BN_STACK *st)
        326.   {
        327.       return st->indexes[--(st->depth)];
                          ^
        328.   }
        329.   
