[RESOLVED] Re: wget segfaults (busybox-1.4.1/uclibc)

Natanael Copa natanael.copa at gmail.com
Thu Feb 8 02:18:58 PST 2007


On Wed, 2007-02-07 at 22:26 +0100, Denis Vlasenko wrote:
> On Wednesday 07 February 2007 10:33, Natanael Copa wrote:
> > Hi,
> > 
> > I just discovered that busybox wget segfaults in my
> > gentoo/hardened/uclibc environment.

Here is the explanation:

When url is "http://a/b" evertyhing works. When url is "http://a" then
the following happens:

parse_url sets target.path = ""

later, when guessing the out file name

 fname_out = bb_get_last_path_component(target.path);

bb_get_last_path_component() will write to target.path.

Looks like its fixed in svn. Would be nice to have it fixed for 1.4.2.

Attached is a patch for 1.4.1.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-wget-path.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070208/3fe517bc/attachment.bin 


More information about the busybox mailing list