cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH 1/4] lib: remove some uses of malloc in favor of stack alloc

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 6 May 2013 20:36:50 +0200

On Mon, May 06, 2013 at 02:19:48PM -0400, Dave Reisner wrote:
> These are all cases where we're alloc'ing a fixed size buffer and not
> returning it to the caller, or explicitly avoiding large allocations on
> the stack.

You hit the nail on the head--large allocations on the stack just aren't
possible on some of the platforms on which libcurl runs--some have as little
as 16 KiB available.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-06