Segfault in mpn_toom42_mul with small unbalanced inputs (e.g., 9x5) when MUL_TOOM22_THRESHOLD is low

Torbjörn Granlund tg at gmplib.org
Mon Feb 16 12:31:46 CET 2026


marco.bodrato at tutanota.com writes:

  Should we add lines like the following in all toom*.c functions?ASSERT( MUL_TOOM22_THRESHOLD >= MPN_TOOM22_MUL_MINSIZE); 

That would add overhead for a fat binary, IIRC.

So a NONFAT_ASSERTis needed. :-)

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


More information about the gmp-bugs mailing list