apps/prime.c:147: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_is_prime_ex`.
Showing all 14 steps of the trace


apps/prime.c:141:6: Call
139.   	{
140.   	if(hex)
141.   	    BN_hex2bn(&bn,argv[0]);
            ^
142.   	else
143.   	    BN_dec2bn(&bn,argv[0]);

crypto/bn/bn_print.c:172:1: Parameter `(*bn)->top`
  170.   	}
  171.   
  172. > int BN_hex2bn(BIGNUM **bn, const char *a)
  173.   	{
  174.   	BIGNUM *ret=NULL;

apps/prime.c:145:2: Call
143.   	    BN_dec2bn(&bn,argv[0]);
144.   
145.   	BN_print(bio_out,bn);
        ^
146.   	BIO_printf(bio_out," is %sprime\n",
147.   		   BN_is_prime_ex(bn,checks,NULL,NULL) ? "" : "not ");

crypto/bn/bn_print.c:334:1: Parameter `a->top`
  332.   #endif
  333.   
  334. > int BN_print(BIO *bp, const BIGNUM *a)
  335.   	{
  336.   	int i,j,v,z=0;

apps/prime.c:147:6: Call
145.   	BN_print(bio_out,bn);
146.   	BIO_printf(bio_out," is %sprime\n",
147.   		   BN_is_prime_ex(bn,checks,NULL,NULL) ? "" : "not ");
            ^
148.   	}
149.   

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.   
