diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2007-02-12 14:43:57 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2007-02-12 14:43:57 +0000 |
commit | 6e53512a7d86929330456c29d5e954a39ade906f (patch) | |
tree | dc33fd26acddc0c4d15dd56b56aebf516564c7e6 /package/busybox/busybox-1.4.1-wgetSEGV.patch | |
parent | 99cf7293f9eb943e00e2ebca6eee0e36eaa801bd (diff) | |
download | buildroot-novena-6e53512a7d86929330456c29d5e954a39ade906f.tar.gz buildroot-novena-6e53512a7d86929330456c29d5e954a39ade906f.zip |
Additional 1.4.1 patches
Diffstat (limited to 'package/busybox/busybox-1.4.1-wgetSEGV.patch')
-rw-r--r-- | package/busybox/busybox-1.4.1-wgetSEGV.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.4.1-wgetSEGV.patch b/package/busybox/busybox-1.4.1-wgetSEGV.patch new file mode 100644 index 000000000..8375cc79c --- /dev/null +++ b/package/busybox/busybox-1.4.1-wgetSEGV.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; |