bug in gmp_fprintf still in next release?

Torbjörn Granlund tg at gmplib.org
Fri Sep 27 10:16:23 UTC 2019


paul zimmermann <Paul.Zimmermann at inria.fr> writes:

  four years ago [1] I reported an issue with gmp_fprintf in GMP 6.1.0,
  which cannot print correcly a number of 8589934589 bits (less than 2^33).

  I just checked with today's snapshot: the issue is still there.

Yikes!

  Will the next GMP release be still limited to less than 2^33 bits?

Probably.

I believe the issue is the printf family's use of 'int' for sizes.  We
cannot really get around that in gmp_*printf* while staying compatible.
(I assume it was poor design by us in the first place not to use some
wider signed type.)

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list