Bug found in nightbuilds

Niels Möller nisse at lysator.liu.se
Sat Feb 15 16:12:10 UTC 2014


Torbjorn Granlund <tg at gmplib.org> writes:

> I traced it to a nn=0 call to the underlying pi1 call.  Dunno if that's
> problematic.

I'd expect it is. At least both implementations in div_qr_1n_pi1.c have
an ASSERT (n > 0), and the code also looks like it's *not* handling n ==
0 in a sane way.

Maybe it can be reproduced with an --disable-assembly --enable-assert
build on other machines (possibly depending also on
UDIV_NEEDS_NORMALIZATION).

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list