Bug#704653: apt: segfault with http sources whose name contains '['
On Thu, Apr 04, 2013 at 06:58:59AM +0300, Tzafrir Cohen wrote:
> Package: apt
> Version: 0.9.7.8
> Severity: minor
Thanks for your bugreport!
> Issue also reproduced with the package in experimental: 0.9.7.9~exp2
>
> I accidentally wrote a sources.list line that contained a ']' character.
>
> I expect 'apt-get update' to fail to resolve the host name and fail in
> one way or another. Instead, apt-get just segfailts.
>
> An example sources.list file:
>
> deb http://ftp.us.debian.org/debian sid main
> deb http://hostname[ whatever
>
> # apt-get update
> Segmentation fault
[..]
I can reproduce the issue and fixed it in bzr.
Cheers,
Michael
Reply to: