mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[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
This commit is contained in:
11
package/opkg/patches/011-fix_nullpointer_deref.patch
Normal file
11
package/opkg/patches/011-fix_nullpointer_deref.patch
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user