mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
add some more busybox patches from upstream
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6290 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
14
package/busybox/patches/150-wget_segv_fix.patch
Normal file
14
package/busybox/patches/150-wget_segv_fix.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff -urN busybox-1.4.1/networking/wget.c busybox-1.4.1-wgetSEGV/networking/wget.c
|
||||
--- busybox-1.4.1/networking/wget.c 2007-01-24 22:34:34.000000000 +0100
|
||||
+++ busybox-1.4.1-wgetSEGV/networking/wget.c 2007-02-11 17:21:18.000000000 +0100
|
||||
@@ -543,7 +543,9 @@
|
||||
p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p;
|
||||
p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p;
|
||||
if (!sp) {
|
||||
- h->path = "";
|
||||
+ /* must be writable because of bb_get_last_path_component() */
|
||||
+ static char nullstr[] = "";
|
||||
+ h->path = nullstr;
|
||||
} else if (*sp == '/') {
|
||||
*sp = '\0';
|
||||
h->path = sp + 1;
|
||||
Reference in New Issue
Block a user