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


crypto/bn/bn_x931p.c:98:1: Parameter `ctx->stack.depth`
96.    */
97.   
98. > int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
99.                               const BIGNUM *Xp, const BIGNUM *Xp1,
100.                               const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx,

crypto/bn/bn_x931p.c:111:5: Call
109.           return 0;
110.   
111.       BN_CTX_start(ctx);
           ^
112.       if (!p1)
113.           p1 = 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_x931p.c:124:10: Call
122.       pm1 = BN_CTX_get(ctx);
123.   
124.       if (!bn_x931_derive_pi(p1, Xp1, ctx, cb))
                ^
125.           goto err;
126.   

crypto/bn/bn_x931p.c:71:1: Parameter `ctx->stack.depth`
  69.    */
  70.   
  71. > static int bn_x931_derive_pi(BIGNUM *pi, const BIGNUM *Xpi, BN_CTX *ctx,
  72.                                BN_GENCB *cb)
  73.   {

crypto/bn/bn_x931p.c:127:10: Call
125.           goto err;
126.   
127.       if (!bn_x931_derive_pi(p2, Xp2, ctx, cb))
                ^
128.           goto err;
129.   

crypto/bn/bn_x931p.c:71:1: Parameter `ctx->stack.depth`
  69.    */
  70.   
  71. > static int bn_x931_derive_pi(BIGNUM *pi, const BIGNUM *Xpi, BN_CTX *ctx,
  72.                                BN_GENCB *cb)
  73.   {

crypto/bn/bn_x931p.c:130:10: Call
128.           goto err;
129.   
130.       if (!BN_mul(p1p2, p1, p2, ctx))
                ^
131.           goto err;
132.   

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