crypto/bn/bn_prime.c:257: error: INTEGER_OVERFLOW_L2
  ([0, `a->top`] - 1):unsigned64 by call to `BN_num_bits`.
Showing all 9 steps of the trace


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: Parameter `a->top`
  246.   	}
  247.   
  248. > int BN_num_bits(const BIGNUM *a)
  249.   	{
  250.   	int i = a->top - 1;

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, a->top] - 1):unsigned64 by call to `BN_num_bits` 
  248.   int BN_num_bits(const BIGNUM *a)
  249.   	{
  250.   	int i = a->top - 1;
          ^
  251.   	bn_check_top(a);
  252.   
