cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: stack overflow

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 11 Sep 2001 09:04:50 +0200 (MET DST)

On Tue, 11 Sep 2001, T. Bharath wrote:

> scratch[BUFSIZE * 2] is what it reads .

Doh! You're right. That's 100 big fat kilobytes on the stack. Mostly unused
as the 'scratch' buffer is only for the CURLOPT_CRLF option.

Feel free to submit a patch that makes that buffer a heap based one.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-09-11