crypto/bn/bn_x931p.c:127: 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:96:1: Parameter `ctx->stack.depth`
94.    */
95.   
96. > int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
97.   			const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2,
98.   			const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb)

crypto/bn/bn_x931p.c:108:2: Call
106.   		return 0;
107.   
108.   	BN_CTX_start(ctx);
        ^
109.   	if (!p1)
110.   		p1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:255:1: Parameter `ctx->stack.depth`
  253.   	}
  254.   
  255. > void BN_CTX_start(BN_CTX *ctx)
  256.   	{
  257.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_x931p.c:121:7: Call
119.   	pm1 = BN_CTX_get(ctx);
120.   
121.   	if (!bn_x931_derive_pi(p1, Xp1, ctx, cb))
             ^
122.   		goto err;
123.   

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

crypto/bn/bn_x931p.c:124:7: Call
122.   		goto err;
123.   
124.   	if (!bn_x931_derive_pi(p2, Xp2, ctx, cb))
             ^
125.   		goto err;
126.   

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

crypto/bn/bn_x931p.c:127:7: Call
125.   		goto err;
126.   
127.   	if (!BN_mul(p1p2, p1, p2, ctx))
             ^
128.   		goto err;
129.   

crypto/bn/bn_mul.c:943:1: Parameter `ctx->stack.depth`
  941.   #endif /* BN_RECURSION */
  942.   
  943. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
  944.   	{
  945.   	int ret=0;

crypto/bn/bn_mul.c:974:2: Call
  972.   	top=al+bl;
  973.   
  974.   	BN_CTX_start(ctx);
          ^
  975.   	if ((r == a) || (r == b))
  976.   		{

crypto/bn/bn_ctx.c:255:1: Parameter `ctx->stack.depth`
    253.   	}
    254.   
    255. > void BN_CTX_start(BN_CTX *ctx)
    256.   	{
    257.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mul.c:1100:2: Call
  1098.   err:
  1099.   	bn_check_top(r);
  1100.   	BN_CTX_end(ctx);
           ^
  1101.   	return(ret);
  1102.   	}

crypto/bn/bn_ctx.c:270:1: Parameter `ctx->stack.depth`
    268.   	}
    269.   
    270. > void BN_CTX_end(BN_CTX *ctx)
    271.   	{
    272.   	CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:277:21: Call
    275.   	else
    276.   		{
    277.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                               ^
    278.   		/* Does this stack frame have anything to release? */
    279.   		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:9: 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.   
