cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Check for malloc() failure in AddFormData()

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 10 May 2004 08:48:01 +0200 (CEST)

On Fri, 7 May 2004, James Bursa wrote:

> This patch to formdata.c adds a check for malloc() failure to AddFormData().
> Unfortunately this makes Curl_getFormData() more complex, but I couldn't see
> a cleaner solution.

Thanks a lot!

When I saw this, I couldn't help thinking you had somehow been running the
"torture" testing with this... and your later torture-patch certainly
confirmed my suspicions! ;-)

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-10