diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-12 22:34:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-12 22:34:54 +0000 |
commit | f2c73eaa2010098feaca7952f110ba3b59e6b4a0 (patch) | |
tree | bb667d60c3cdda8df608b37ec552ab6e1863dcc0 /package/busybox/patches/150-wget_segv_fix.patch | |
parent | ba20f21c7e67525b71f8c0a57a04fe24ee64549d (diff) | |
download | mtk-20170518-f2c73eaa2010098feaca7952f110ba3b59e6b4a0.zip mtk-20170518-f2c73eaa2010098feaca7952f110ba3b59e6b4a0.tar.gz mtk-20170518-f2c73eaa2010098feaca7952f110ba3b59e6b4a0.tar.bz2 |
add some more busybox patches from upstream
SVN-Revision: 6290
Diffstat (limited to 'package/busybox/patches/150-wget_segv_fix.patch')
-rw-r--r-- | package/busybox/patches/150-wget_segv_fix.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/busybox/patches/150-wget_segv_fix.patch b/package/busybox/patches/150-wget_segv_fix.patch new file mode 100644 index 0000000..8375cc7 --- /dev/null +++ b/package/busybox/patches/150-wget_segv_fix.patch @@ -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; |