cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash in curl library while processing HTTP HEAD response

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 20 Aug 2016 19:26:34 +0200 (CEST)

On Sat, 20 Aug 2016, Ray Satiro via curl-library wrote:

> I don't know if this was mentioned already but in your case even though you
> chose CURLOPT_NOBODY [1] the data still goes to the write function
> (CURLOPT_WRITEFUNCTION [2], CURLOPT_WRITEDATA [3]) since there doesn't
> appear to be a proper response. I guess an issue is whether or not that's
> correct for NOBODY but also I guess on your end your write function is
> probably crashing.

Right, this could indeed be a surprising behavior to applications. We should
probably prevent this from happening.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-08-20