mpz_set_str fails if minus sign is followed by white space

2018-02-10 Thread Trevor Spiteri
mpz_set_str and mpz_init_set_str fail when white space immediately follows the minus sign, for example with the string "- 1". Other strings like " -1 1 " are parsed correctly. This code: #include #include int main() {     mpz_t z;     int ret = mpz_init_set_str(z, "- 1", 10);    

Stray backslashes in html docs

2019-01-12 Thread Trevor Spiteri
/Low_002dlevel-Functions.html#index-mpn_005fsec_005finvert \log (twice) Regards. Trevor Spiteri ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs

possible miscompilation on macOS Catalina 10.15.6

2020-10-28 Thread Trevor Spiteri
I maintain Rust language bindings to GMP and got a bug report from a user on macOS Catalina 10.15.6.  I do not know if this issue is caused by the particular system setup of the user or if it is more general, so I'm listing what information I have in case it is actually reproducible in a more

Re: possible miscompilation on macOS Catalina 10.15.6

2020-10-29 Thread Trevor Spiteri
On 28/10/2020 12:14, Torbjörn Granlund wrote: > Trevor Spiteri writes: > > I maintain Rust language bindings to GMP and got a bug report from a > user on macOS Catalina 10.15.6.  I do not know if this issue is caused > by the particular system setup of the user or if it is m

Valgrind reports use of uninitialised value for __gmpz_powm_sec on i686 host

2023-08-28 Thread Trevor Spiteri
Valgrind is reporting the use of uninitialised value(s) in __gmpz_powm_sec for i686 host, though I found no similar issue for x86_64 host. This issue started in 6.3.0, and was not there for 6.2.1. Please find the details below. Best regards, Trevor Spiteri GMP version 6.3.0 (unpatched

Arch bus error for t-cmp, t-cmp_ui and t-cmp_z

2023-03-18 Thread Trevor Spiteri
was unable to reproduce on Fedora 37. I have included the relevant details below; I hope I did not miss anything. (Sorry for not replying to the original bug thread, but I'm not subscribed to this mailing list so I only saw the messages on the archives web page.) Best regards, Trevor Spiteri