cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl - why curl require 64k stack size?

From: Jamie Lokier <>
Date: Fri, 18 Apr 2008 17:24:27 +0100

Dan Fandrich wrote:
> On Fri, Apr 18, 2008 at 02:45:50PM +0200, Daniel Stenberg wrote:
> > On Fri, 18 Apr 2008, Abhishek Srivastava wrote:
> >> I was wondering why curl require 64k stack size?
> >
> > Me too.
> The --manual decompressor uses a 64k decompression buffer located on
> the stack. That's easy to move to the heap.

Thanks for mentioning it. Is there anything else?

I'm using curl/libcurl on a small device, and we have to allocate the
stack with a fixed size. There's no memory protection, so overflow is
bad. We allocate 32kiB stack at the moment, for no particular reason.

-- Jamie
Received on 2008-04-18