Ciao,

Il 2021-09-18 10:07 Torbjörn Granlund ha scritto:
I suppose that, in this case, as my fix has problems with nails, this

Your fix also aborts, instead of returning 0.

might be a better patch.  An UNLIKELY(...) might have a place here,
though.

I commited the patch, adding UNLIKELY to all error branches.

I took a very quick lock at other uses of BITS_TO_LIMBS and think we
might have one more place where scalar overflow might occur:
mpz/import.c.  There might be more places.

I also changed mpz/import.c but I did not correct this possible overflow.

Ĝis,
m
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to