diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-22 08:46:55 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-22 08:46:55 +0000 |
commit | a460e82adb8a229339e8d5b0e6296876ee37dc34 (patch) | |
tree | 5ccd41da04f3e01ab748f8376812b4a00fbd840f /package/opkg/patches/011-fix_nullpointer_deref.patch | |
parent | 5641ac5c0416c32fc1ed92c92e8fb33a7ed79029 (diff) |
[package] opkg:
- replace package list parser by something that works with fixed buffers
to avoid slurping the whole file into memory during parsing
- fix a possible null pointer dereference in opkg_remove_cmd()
- get rid of upgrade, it cannot upgrade single packages and kills
the system in most cases
- get rid of the flag operation, not needed
- bump package revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18119 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/opkg/patches/011-fix_nullpointer_deref.patch')
-rw-r--r-- | package/opkg/patches/011-fix_nullpointer_deref.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/opkg/patches/011-fix_nullpointer_deref.patch b/package/opkg/patches/011-fix_nullpointer_deref.patch new file mode 100644 index 000000000..1eecfd3ff --- /dev/null +++ b/package/opkg/patches/011-fix_nullpointer_deref.patch @@ -0,0 +1,11 @@ +--- a/libopkg/opkg_cmd.c ++++ b/libopkg/opkg_cmd.c +@@ -878,7 +878,7 @@ + pkg_to_remove = pkg_hash_fetch_installed_by_name(&conf->pkg_hash, pkg->name ); + } + +- if (pkg == NULL) { ++ if (pkg_to_remove == NULL) { + opkg_message(conf, OPKG_ERROR, "Package %s is not installed.\n", pkg->name); + continue; + } |