mini-gmp: mpz_abs_sub_bit needs more normalization

Niels Möller nisse at lysator.liu.se
Mon Aug 25 21:39:32 UTC 2014


tg at gmplib.org (Torbjörn Granlund) writes:

> Will you please take a look to see if this is done in more places?  Then
> fix for the 6.0 repo as well as the head repo (and perhaps 5.1 repo if
> the bug is there).

I'll try to get to it.

> I thought mini-gmp now had complete testing after my rants about it...

It has pretty good coverage, but that doesn't mean that *all* corner cases
are covered...

At least it triggered an assert on the next operation depending on mpz
values being properly normalized.

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-bugs mailing list