[patch] fix wget crash when given a numeric url
Denys Vlasenko
vda.linux at googlemail.com
Tue Mar 22 19:15:12 UTC 2011
On Tue, Mar 22, 2011 at 6:55 PM, Vitaly Magerya <vmagerya at gmail.com> wrote:
> Hi, folks. I'm having a problem with busybox on FreeBSD: it segfaults
> when I run something like this:
>
> $ busybox wget http://1.2.3.4
>
> The reason for this is line 288 of ibbb/xconnect.c: result is freed
> there, but if the address is numeric, it will contain NULL, hence
> the segfault.
>
> In short, the trivial fix is attached (if the attachment doesn't
> get through, it simply prefixes the freeaddinfo call with a
> conditional on result).
Applied, thanks!
--
vda
More information about the busybox
mailing list