Richard Salz wrote:
Your test is wrong. NaN != NaN.
My test is right. Please, look into the code and the previous
discussion. The whole point of the test is that the x0/x1 are
mysteriously changed from outside of the process.
The test will run indefinitely (well until precision
suffices) disabling the genrsa. And if I add the
else
{
fprintf(stderr, "\npid=%d, iteration=%d, should=%g, is=%g\n", getpid(), iter, x1+1,
x0);
}
I get the loop counting for a while before bombing out.
Starting loop, pid=16986
pid=16986, iteration=1, should=3, is=3
Generating RSA private key, 4096 bit long modulus
...............
pid=16986, iteration=2, should=4, is=4
.++
..............
pid=16986, iteration=3, should=5, is=5
.................
pid=16986, iteration=4, should=6, is=6
.....++
e is 65537 (0x10001)
pid=16986, iteration=5, should=7, is=7
Generating RSA private key, 4096 bit long modulus
.......
pid=16986, iteration=6, should=8, is=8
.................
pid=16986, iteration=7, should=9, is=9
................Double variable changed! pid=16986, iteration=8, should=nan,
is=nan
Terminated
I am Cc-ing the ssl list because I previously thought it
is an openssl bug - it is not.
Regards
--
Stano
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]