crypto/rsa/rsa_gen.c:140: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BN_cmp`.
Showing all 6 steps of the trace


crypto/rsa/rsa_gen.c:122:8: Call
120.   		if(!BN_generate_prime_ex(rsa->p, bitsp, 0, NULL, NULL, cb))
121.   			goto err;
122.   		if (!BN_sub(r2,rsa->p,BN_value_one())) goto err;
              ^
123.   		if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err;
124.   		if (BN_is_one(r1)) break;

crypto/bn/bn_add.c:263:1: Parameter `a->top`
  261.   	}
  262.   
  263. > int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
  264.   	{
  265.   	size_t max;

crypto/rsa/rsa_gen.c:140:13: Call
138.   			if(!BN_generate_prime_ex(rsa->q, bitsq, 0, NULL, NULL, cb))
139.   				goto err;
140.   			} while((BN_cmp(rsa->p, rsa->q) == 0) && (++degenerate < 3));
                   ^
141.   		if(degenerate == 3)
142.   			{

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

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_lib.c:709:7: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BN_cmp` 
  707.   	if (a->top > b->top) return(gt);
  708.   	if (a->top < b->top) return(lt);
  709.   	for (i=a->top-1; i>=0; i--)
               ^
  710.   		{
  711.   		t1=a->d[i];
