out-of-bound write

Niels Möller nisse at lysator.liu.se
Thu Dec 19 07:38:13 UTC 2013


Vincent Lefevre <vincent at vinc17.net> writes:

> It took me some time to understand that, i.e. that in addition to
> valid limbs, other (invalid) limbs may also be written. I wonder
> what the other users think about that...

At least it's not unique to mpn_set_str. mpn_gcd also have require space
for an extra limb for the cofactor output (also related to mpn_mul api),
and earlier versions also required an extra limb for the (destroyed)
inputs(!).

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