On 6/10/2021 8:15 AM, Daniel Stenberg via curl-library wrote:
On Tue, 8 Jun 2021, Christian Weisgerber via curl-library wrote:

Maybe such oversized allocations should use malloc() instead of local variables?  Here's a patch to this effect:

Thanks! (proves we should have openbsd CI jobs...)

Converted to a pull-request: https://github.com/curl/curl/pull/7235


Will this program ever go through valgrind or other memory-checking tool?  If so, it now has a memory leak.  The patch doesn't free the allocated memory.

--
    David Chapman      dcchap...@acm.org
    Chapman Consulting -- San Jose, CA
    EDA Software Developer, Expert Witness
    www.chapman-consulting-sj.com
    2018-2019 Chair, IEEE Consultants' Network of Silicon Valley

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to