Tue 10 May 2016 03:50:13 AM UTC, original submission:
Just a recent discovery with folks at #archlinux-cn, that wget 1.17.1 would crash on this command.
wget '202.38.70.145:555/中文中文中文中文'
A case of address containing multi-width characters, wget would crash with SIGSEGV and dumps core. The program crashes on memset() in libc.so. I can provide a complete backtrace once requested.
A simple git bisect leads us to this commit: http://git.savannah.gnu.org/cgit/wget.git/commit/?id=9933da2b9fdeddfc94859192438071bab7e467b2
Reverting this commit resolves the issue, just thought that this would help locating the problematic commit. There is also an issue with output file name encoding, with the same command above.
jeffbai [ ~ ] $ wget '202.38.70.145:555/中文中文中文中文'
--2016-05-09 21:48:46-- http://202.38.70.145:555/%E4%B8%AD%E6%96%87%E4%B8%AD%E6%96%87%E4%B8%AD%E6%96%87%E4%B8%AD%E6%96%87
正在连接 202.38.70.145:555... 已连接。
已发出 HTTP 请求,正在等待回应... 200 没有 HTTP 头,假定为 HTTP/0.9
长度:未指定
正在保存至: “中\346%96%87中\346%96%87中\346%96%87中\346%96%87”
中�%96%87中�%96%87中�%96% [ <=> ] 113 --.-KB/s 用时 0s
2016-05-09 21:48:47 (15.8 MB/s) - “中\346%96%87中\346%96%87中\346%96%87中\346%96%87” 已保存 [113]
As you can see, the file name requested, "中文中文中文中文" is output'd to a completely different one, "中\346%96%87中\346%96%87中\346%96%87中\346%96%87". I will open up a separate bug report for this.
|