diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-22 08:46:55 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-22 08:46:55 +0000 |
commit | 3231dce5aa4afff0c3b4a40f082f13035d9f341f (patch) | |
tree | a5c90b0669563b0cb372d372d427cb0aef1d9b26 /package/opkg/patches/011-fix_nullpointer_deref.patch | |
parent | 991a35c6a621a3b03a0a6de6aa3045b951a7b627 (diff) | |
download | upstream-3231dce5aa4afff0c3b4a40f082f13035d9f341f.tar.gz upstream-3231dce5aa4afff0c3b4a40f082f13035d9f341f.tar.bz2 upstream-3231dce5aa4afff0c3b4a40f082f13035d9f341f.zip |
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
SVN-Revision: 18119
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 0000000000..1eecfd3ff0 --- /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; + } |