crypto/bn/bn_prime.c:525: error: INTEGER_OVERFLOW_L2
  ([0, 2+max(0, `ctx->stack.depth`)] - 1):unsigned32 by call to `BN_CTX_end`.
Showing all 9 steps of the trace


crypto/bn/bn_prime.c:493:1: Parameter `ctx->stack.depth`
491.   	}
492.   
493. > static int probable_prime_dh(BIGNUM *rnd, const BIGNUM *add,
494.   	const BIGNUM *rem, BN_CTX *ctx, int first_prime_index)
495.   	{

crypto/bn/bn_prime.c:499:2: Call
497.   	BIGNUM *t1;
498.   
499.   	BN_CTX_start(ctx);
        ^
500.   	if ((t1 = BN_CTX_get(ctx)) == NULL) goto err;
501.   

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

crypto/bn/bn_prime.c:525:2: Call
523.   	ret=1;
524.   err:
525.   	BN_CTX_end(ctx);
        ^
526.   	bn_check_top(rnd);
527.   	return(ret);

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

crypto/bn/bn_ctx.c:279:21: Call
  277.   	else
  278.   		{
  279.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                             ^
  280.   		/* Does this stack frame have anything to release? */
  281.   		if(fp < ctx->used)

crypto/bn/bn_ctx.c:353:1: <LHS trace>
351.   	}
352.   
353. > static unsigned int BN_STACK_pop(BN_STACK *st)
354.   	{
355.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:353:1: Parameter `st->depth`
    351.   	}
    352.   
    353. > static unsigned int BN_STACK_pop(BN_STACK *st)
    354.   	{
    355.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:355:9: Binary operation: ([0, 2+max(0, ctx->stack.depth)] - 1):unsigned32 by call to `BN_CTX_end` 
    353.   static unsigned int BN_STACK_pop(BN_STACK *st)
    354.   	{
    355.   	return st->indexes[--(st->depth)];
                   ^
    356.   	}
    357.   
