aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/opkg/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/opkg/patches')
-rw-r--r--package/system/opkg/patches/270-fix-use-after-free.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/system/opkg/patches/270-fix-use-after-free.patch b/package/system/opkg/patches/270-fix-use-after-free.patch
new file mode 100644
index 0000000000..96e24b9456
--- /dev/null
+++ b/package/system/opkg/patches/270-fix-use-after-free.patch
@@ -0,0 +1,11 @@
+--- a/libopkg/opkg_download.c
++++ b/libopkg/opkg_download.c
+@@ -335,7 +335,7 @@ opkg_prepare_url_for_install(const char
+ hash_insert_pkg(pkg, 1);
+
+ if (namep) {
+- *namep = pkg->name;
++ *namep = xstrdup(pkg->name);
+ }
+ return 0;
+ }