cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-624782 ] crash on empty location header

From: <noreply_at_sourceforge.net>
Date: Thu, 17 Oct 2002 10:19:19 -0700

Bugs item #624782, was opened at 2002-10-17 19:19
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=624782&group_id=976

Category: http
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Alberty (staybyte)
Assigned to: Daniel Stenberg (bagder)
Summary: crash on empty location header

Initial Comment:
Hi,

i've found a segfault with empty Location headers.

The curl binary and also the php curl extension is
affected.

The follow code snip with an small php script
demonstrate the problem:

---<empty_location.php>---
<?php
header ('Location: ');
?>
---</empty_location.php>---

./curl -L "http://mytestserver/empty_location.php"

Results a segfault:

Here the backtrace:
#0 0x4002d62b in Curl_perform ()
from /usr/local/curl/7.10/lib/libcurl.so.2
#1 0x4002e2b8 in curl_easy_perform ()
from /usr/local/curl/7.10/lib/libcurl.so.2
#2 0x0804c6a8 in operate ()
#3 0x08049cd6 in main ()

I've test it with
curl 7.10 (i686-pc-linux-gnu) libcurl/7.10
OpenSSL/0.9.6g zlib/1.1.3

Best regards,

-- 
Steve Alberty
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=624782&group_id=976
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
Received on 2002-10-17