curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl leaks information in freed memory

From: Dennis Clarke via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 19 Oct 2018 10:49:14 -0400

On 10/19/2018 10:15 AM, Daniel Stenberg via curl-library wrote:
> On Fri, 19 Oct 2018, Gabriel Zachmann wrote:
>
>>> memory before the pointer it returns.
>> I attached some code that should be capable of doing so.
>
> If clearing the memory just before free is all that's necessary, I
> suppose an alternative option is to link in a malloc replacement that
> does exactly this.

Please no.

There must be a way to fire off a thread to clear the memory and then
free it and maybe call it clear_free() or some trivial but blunt trauma
approach which works without a malloc/calloc replacement.

Dennis
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-19