cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: autobuilds test 512 fails

From: Tor Arntsen <tor_at_spacetec.no>
Date: Wed, 6 Oct 2010 11:41:54 +0200

On Tue, Oct 5, 2010 at 19:45, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 5 Oct 2010, Tor Arntsen wrote:
>
>> options->nsort == 0. This malloc calls curl_dmalloc() if libcurl is built
>> with --enable-debug, and there's an assert in there which fails then. (The
>> test doesn't fail without --enable-debug)
>
> Thanks for this! I've committed a fix to c-ares now for that flaw. malloc(0)
> is not a good idea to do in general since the return code might be NULL or a
> pointer and NULL in this case would be considered an error by the code.

I confirm that your change fixed the problem on my test setup.

-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-06