cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-408488 ] crash on redirect with basic-auth

From: nobody <nobody_at_sourceforge.net>
Date: Wed, 14 Mar 2001 05:42:44 -0800

Bugs #408488, was updated on 2001-03-14 05:42
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=408488&group_id=976

Category: http
Group: crash
Status: Open
Priority: 5
Submitted By: Edin Kadribaic
Assigned to: Daniel Stenberg
Summary: crash on redirect with basic-auth

Initial Comment:
PHP was crashing on me in libcurl, so I checked the
command line version and it had the same problem which
occurs when I try to follow a redirect and use basic
authentication at the same time.

I've checked with 7.6 and 7.7-beta3 with the same
result. The backtrace is from the former:

gdb curl
(gdb) r -L -
i "http://user:pass@194.68.213.78/se/info.nsf/CurrentNe
ws/FEDB074667F3B44BC1256A0E003B5430?Navigate&To=Next"
Program received signal SIGSEGV, Segmentation fault.
0x4002553e in Connect (data=0x80606f0,
in_connect=0xbffff568, allow_port=0 '\000')
    at url.c:1413
1413 if(*data->userpwd != ':') {
(gdb) bt
#0 0x4002553e in Connect (data=0x80606f0,
in_connect=0xbffff568, allow_port=0 '\000')
    at url.c:1413
#1 0x400266f3 in Curl_connect (data=0x80606f0,
in_connect=0xbffff568, allow_port=0)
    at url.c:2106
#2 0x4002d439 in Curl_perform (curl=0x80606f0) at
transfer.c:714
#3 0x4002d688 in curl_easy_perform (curl=0x80606f0)
at easy.c:136
#4 0x804b35c in operate (config=0xbffff814, argc=4,
argv=0xbffff924) at main.c:1843
#5 0x804b5bc in main (argc=4, argv=0xbffff924) at
main.c:1913
(gdb) p data->userpwd
$22 = 0x0

You see, data->userpwd is NULL, it gets reset somwhere.

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=408488&group_id=976
Received on 2001-03-14