crypto/ecdsa/ecs_ossl.c:447: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 27 steps of the trace


crypto/ecdsa/ecs_ossl.c:421:10: Call
419.       }
420.       /* calculate tmp1 = inv(S) mod order */
421.       if (!BN_mod_inverse(u2, sig->s, order, ctx)) {
                ^
422.           ECDSAerr(ECDSA_F_ECDSA_DO_VERIFY, ERR_R_BN_LIB);
423.           goto err;

crypto/bn/bn_gcd.c:231:10: Call
  229.       BIGNUM *rv;
  230.       int noinv;
  231.       rv = int_bn_mod_inverse(in, a, n, ctx, &noinv);
                  ^
  232.       if (noinv)
  233.           BNerr(BN_F_BN_MOD_INVERSE, BN_R_NO_INVERSE);

crypto/bn/bn_gcd.c:237:1: Parameter `ctx->stack.depth`
    235.   }
    236.   
    237. > BIGNUM *int_bn_mod_inverse(BIGNUM *in,
    238.                              const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx,
    239.                              int *pnoinv)

crypto/bn/bn_gcd.c:256:5: Call
    254.       bn_check_top(n);
    255.   
    256.       BN_CTX_start(ctx);
               ^
    257.       A = BN_CTX_get(ctx);
    258.       B = 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_gcd.c:548:5: Call
    546.       if ((ret == NULL) && (in == NULL))
    547.           BN_free(R);
    548.       BN_CTX_end(ctx);
               ^
    549.       bn_check_top(ret);
    550.       return (ret);

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/ecdsa/ecs_ossl.c:442:10: Call
440.       }
441.       /* u1 = m * tmp mod order */
442.       if (!BN_mod_mul(u1, m, u2, order, ctx)) {
                ^
443.           ECDSAerr(ECDSA_F_ECDSA_DO_VERIFY, ERR_R_BN_LIB);
444.           goto err;

crypto/bn/bn_mod.c:187:1: Parameter `ctx->stack.depth`
  185.   
  186.   /* slow but works */
  187. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  188.                  BN_CTX *ctx)
  189.   {

crypto/bn/bn_mod.c:197:5: Call
  195.       bn_check_top(m);
  196.   
  197.       BN_CTX_start(ctx);
             ^
  198.       if ((t = BN_CTX_get(ctx)) == NULL)
  199.           goto err;

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_mod.c:212:5: Call
  210.       ret = 1;
  211.    err:
  212.       BN_CTX_end(ctx);
             ^
  213.       return (ret);
  214.   }

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/ecdsa/ecs_ossl.c:447:10: Call
445.       }
446.       /* u2 = r * w mod q */
447.       if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) {
                ^
448.           ECDSAerr(ECDSA_F_ECDSA_DO_VERIFY, ERR_R_BN_LIB);
449.           goto err;

crypto/bn/bn_mod.c:187:1: Parameter `ctx->stack.depth`
  185.   
  186.   /* slow but works */
  187. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  188.                  BN_CTX *ctx)
  189.   {

crypto/bn/bn_mod.c:197:5: Call
  195.       bn_check_top(m);
  196.   
  197.       BN_CTX_start(ctx);
             ^
  198.       if ((t = BN_CTX_get(ctx)) == NULL)
  199.           goto err;

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_mod.c:204:14: Call
  202.               goto err;
  203.       } else {
  204.           if (!BN_mul(t, a, b, ctx))
                      ^
  205.               goto err;
  206.       }

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

crypto/bn/bn_mul.c:909:5: Call
    907.       top = al + bl;
    908.   
    909.       BN_CTX_start(ctx);
               ^
    910.       if ((r == a) || (r == b)) {
    911.           if ((rr = BN_CTX_get(ctx)) == NULL)

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_mul.c:1033:5: Call
    1031.    err:
    1032.       bn_check_top(r);
    1033.       BN_CTX_end(ctx);
                ^
    1034.       return (ret);
    1035.   }

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