cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3572331 ] HTTPs + long URL = segfault

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 28 Sep 2012 14:07:28 -0700

Bugs item #3572331, was opened at 2012-09-27 00:26
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3572331&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SSL/TLS
Group: crash
>Status: Pending
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Michal Bryxí (michal-bryxi)
Assigned to: Daniel Stenberg (bagder)
Summary: HTTPs + long URL = segfault

Initial Comment:
When you generate ultra long URL and try to curl HTTPs domain, some memory dump occurs. Test log is attached. Can be tested with following bash script:

#!/bin/bash

num=2048
something_long=$(for i in `seq 1 $num`; do printf "a${i}=${i}"; done)
url="https://google.com/?q=${something_long}"

curl -v -g "${url}"

My system:

michal_at_localhost:~/tmp$ uname -a
Linux localhost 3.2.0-sabayon #1 SMP Sat Feb 11 08:52:29 UTC 2012 x86_64 Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz GenuineIntel GNU/Linux
michal_at_localhost:~/tmp$ curl -V
curl 7.24.0 (x86_64-pc-linux-gnu) libcurl/7.24.0 OpenSSL/1.0.0j zlib/1.2.6
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

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

Comment By: Daniel Stenberg (bagder)
Date: 2012-09-27 03:58

Message:
Thanks a lot for your report.

However, I just tried your script with curl 7.27.0 and with the current git
HEAD and neither show this problem...

$ curl -V
curl 7.27.0 (i486-pc-linux-gnu) libcurl/7.27.0 OpenSSL/1.0.1c zlib/1.2.7
libidn/1.25 libssh2/1.4.2 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: Debug GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz
TLS-SRP

$ uname -a
Linux sture 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 i686
GNU/Linux

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

Comment By: Michal Bryxí (michal-bryxi)
Date: 2012-09-27 00:27

Message:
Just one more note: On HTTP, there is no problem.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3572331&group_id=976
Received on 2012-09-28

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET