CURLE_OUT_OF_MEMORY when adding large header after update to 7.71.0 #6681
I did this
An application I'm working on uses
We compile curl from source with:
I expected the following
Before version 7.71.0 (tested up to 7.75.0), this worked fine for headers with size up to 1mb but after the update I've started seeing
Amazon Linux 2
I'd really appreciate guidance on this, thanks!
The text was updated successfully, but these errors were encountered:
bisected to ed35d65 (dynbuf: introduce internal generic dynamic buffer functions).
The solution would be remove the limit. DYN_NO_LIMIT was previously proposed in #5966
Thanks, that makes sense - neat quick repro too :)
Another option could maybe be to make them configurable as
I still believe no limit to be bad (because this is used to trap mistakes or malicious use), but I'm all for discussing upping the limit to something larger than 128KB. Maybe go with 1MB here?. I would like to try to avoid having setopts for them as they're so specific and 99.99% of all users would never change them.