Upstream patch to remove abort() that occur during memory overflow

Torbjörn Granlund tg at gmplib.org
Sun Sep 13 09:38:30 UTC 2020


Marco Bodrato <bodrato at mail.dm.unipi.it> writes:

  With ABI=64 I get:
  16777216 ^ 768614336404564651 = 256

  With ABI=32 I get:
  16777216 ^ 178956971 = 256

  Not a signal, nor an abort, simply an incorrect result :-)

That's undesirable.

I thought we cought overflows also in this difficult a^b case by
(indirectly means of allocation errors).

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list