crypto/bn/bntest.c:1997: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `bn_probable_prime_dh_coprime`.
Showing all 11 steps of the trace


crypto/bn/bntest.c:1987:1: Parameter `ctx->stack.depth`
1985.   	}
1986.   #ifndef OPENSSL_SYS_WIN32
1987. > int test_probable_prime_coprime(BIO *bp, BN_CTX *ctx)
1988.   	{
1989.   	int i, j, ret = 0;

crypto/bn/bntest.c:1997:8: Call
1995.   	for (i = 0; i < 1000; i++)
1996.   		{
1997.   		if (!bn_probable_prime_dh_coprime(r, 1024, ctx)) goto err;
               ^
1998.   		
1999.   		for (j = 0; j < 5; j++)

crypto/bn/bn_prime.c:433:1: Parameter `ctx->stack.depth`
  431.   	}
  432.   
  433. > int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx)
  434.   	{
  435.   	int i;

crypto/bn/bn_prime.c:442:2: Call
  440.   	OPENSSL_assert(bits > prime_multiplier_bits);
  441.   	
  442.   	BN_CTX_start(ctx);
          ^
  443.   	if ((offset_index = BN_CTX_get(ctx)) == NULL) goto err;
  444.   	if ((offset_count = BN_CTX_get(ctx)) == NULL) goto err;

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:470:2: Call
  468.   
  469.   err:
  470.   	BN_CTX_end(ctx);
          ^
  471.   	bn_check_top(rnd);
  472.   	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, +oo] - 1):unsigned32 by call to `bn_probable_prime_dh_coprime` 
      353.   static unsigned int BN_STACK_pop(BN_STACK *st)
      354.   	{
      355.   	return st->indexes[--(st->depth)];
                     ^
      356.   	}
      357.   
