crypto/dh/dh_check.c:112: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_is_prime_ex`.
Showing all 12 steps of the trace


crypto/dh/dh_check.c:111:8: Call
109.   	else
110.   		{
111.   		if (!BN_rshift1(q,dh->p)) goto err;
              ^
112.   		if (!BN_is_prime_ex(q,BN_prime_checks,ctx,NULL))
113.   			*ret|=DH_CHECK_P_NOT_SAFE_PRIME;

crypto/bn/bn_shift.c:99:1: Parameter `r->top`
  97.   	}
  98.   
  99. > int BN_rshift1(BIGNUM *r, const BIGNUM *a)
  100.   	{
  101.   	BN_ULONG *ap,*rp,t,c;

crypto/dh/dh_check.c:112:8: Call
110.   		{
111.   		if (!BN_rshift1(q,dh->p)) goto err;
112.   		if (!BN_is_prime_ex(q,BN_prime_checks,ctx,NULL))
              ^
113.   			*ret|=DH_CHECK_P_NOT_SAFE_PRIME;
114.   		}

crypto/bn/bn_prime.c:238:1: Parameter `a->top`
  236.   	}
  237.   
  238. > int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb)
  239.   	{
  240.   	return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);

crypto/bn/bn_prime.c:240:9: Call
  238.   int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb)
  239.   	{
  240.   	return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
                 ^
  241.   	}
  242.   

crypto/bn/bn_prime.c:243:1: Parameter `a->top`
    241.   	}
    242.   
    243. > int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
    244.   		int do_trial_division, BN_GENCB *cb)
    245.   	{

crypto/bn/bn_prime.c:253:6: Call
    251.   	const BIGNUM *A = NULL;
    252.   
    253.   	if (BN_cmp(a, BN_value_one()) <= 0)
                ^
    254.   		return 0;
    255.   	

crypto/bn/bn_lib.c:678:1: Parameter `a->top`
      676.   	}
      677.   
      678. > int BN_cmp(const BIGNUM *a, const BIGNUM *b)
      679.   	{
      680.   	int i;

crypto/bn/bn_prime.c:257:12: Call
    255.   	
    256.   	if (checks == BN_prime_checks)
    257.   		checks = BN_prime_checks_for_size(BN_num_bits(a));
                      ^
    258.   
    259.   	/* first look for small factors */

crypto/bn/bn_lib.c:248:1: <LHS trace>
246.   	}
247.   
248. > int BN_num_bits(const BIGNUM *a)
249.   	{
250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:248:1: Parameter `a->top`
      246.   	}
      247.   
      248. > int BN_num_bits(const BIGNUM *a)
      249.   	{
      250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:250:2: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_is_prime_ex` 
      248.   int BN_num_bits(const BIGNUM *a)
      249.   	{
      250.   	int i = a->top - 1;
              ^
      251.   	bn_check_top(a);
      252.   
