Nikos Mavrogiannopoulos <[email protected]> writes:

>> That said, Nettle shouldn't do unbounded stack allocations in this case,
>> it ought to use malloc, or abort or fail in some other *reliable*
>> fashion. (I think having some documented limit on keysize would be
>> acceptable, but I'm leaning towards saying that it's better to just use
>> heap allcoation).
>> Do you agree?
>
> Yes, that would be much better. Do you want me to send an updated patch?

That would be good. I think it makes sense to use gmp's allocation
functions here, so the user can override allocation, without having to
do it separately for nettle and gmp. See gmp-glue.c:gmp_alloc_limbs.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to