cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: autobuilds test 512 fails

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Oct 2010 19:45:02 +0200 (CEST)

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.

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