Thu 21 Nov 2013 11:31:24 AM UTC, original submission:
I was downloading a website, after a while wget crashed when it found an unicode character in an invalid url and the server responded 404.
The last file url was similar to:
http://www.example.com/aaa\303%9Faaa
I created an empty file named aaaßaaa.html and downloaded it from my local server.
<code>
[user@localhost ~]$ wget localhost/aaaßaaa.html
--2013-11-21 05:04:53-- http://localhost/aaa%C3%9Faaa.html
Resolving localhost (localhost)... ::1, ::1, 127.0.0.1, ...
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: ‘aaa\303%9Faaa.html’
</code>
The Content-Type header is "text/html; charset=UTF-8"
The file was saved as "aaa�%9Faaa.html (invalid encoding)"
The test didn't reproduce the error, but probably is related.
Command to download website:
wget -U '' -kr http://www.example.com/ -D 'www.example.com' -nc --html-extension --convert-links --page-requisites -H
Message:
Error in `wget': double free or corruption (!prev): 0x0000000001d939b0
Version:
GNU Wget 1.14 built on linux-gnu.
+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
Wgetrc:
/etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/share/locale" -I. -I../lib -I../lib
-D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4
Link: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4
-Wl,-O1,--sort-common,--as-needed,-z,relro /usr/lib/libssl.so
/usr/lib/libcrypto.so /usr/lib/libz.so -ldl -lz -lz -lidn -luuid
-lpcre ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
uname -a
Linux localhost.localdomain 3.12.0-1-ARCH #1 SMP PREEMPT Wed Nov 6 09:06:27 CET 2013 x86_64 GNU/Linux
|