gmp-4.1.2 integer overflow

Kevin Ryde user42 at
Sun Feb 15 08:14:46 CET 2004

Jason <jasonmoxham at> writes:
> line 66 in mpz/root.c
>  unb = un * GMP_NUMB_BITS - cnt + GMP_NAIL_BITS;

That's changed in the development sources, is it still a problem

We're probably not overly worried about cases where an mpz of more
than LONG_MAX or ULONG_MAX bits induces an overflow.  Most systems
usually won't have enough address space or enough memory to actually
hold one of those.  Though if there's an easy change that can remove
any limit it can be considered.

More information about the gmp-bugs mailing list