weidai11 / cryptopp

free C++ class library of cryptographic schemes
https://cryptopp.com
Other
4.82k stars 1.49k forks source link

Fixing an infinite loop scenario in case of memory exhaustion #1266

Open jvanegue opened 6 months ago

jvanegue commented 6 months ago

Throwing an exception after 10 attempts rather than trying to allocate indefinitely (which could be infinite)

jvanegue commented 1 month ago

Any update on the above? This file has two distinct locations where this problem may happen. Thank you