gmp_snprintf tries to allocate 18 EB on long strings

Marco Bodrato bodrato at
Fri Feb 9 22:01:36 UTC 2018

Ciao Vincent,

Il Gio, 1 Febbraio 2018 11:32 am, Niels Möller ha scritto:
> I think we should be able to rely on C99 vsnprintf. If need, check for
> correct behavior in configure, and fall back to repl_vsnprintf if
> snprintf exhibits non-standard behavior.

The issue you spotted should be healed by the two patches below:



More information about the gmp-devel mailing list