[OpenWrt-Devel] [PATCH][opkg-lede] libopkg: Fix segfault on trailing comma in deps

2019-04-17 Thread Patrick McDermott
ch is passed through ensure_abstract_pkg_by_name(), abstract_pkg_fetch_by_name(), hash_table_get(), hash_index(), and finally djb2_hash() which dereferences the NULL pointer. Signed-off-by: Patrick McDermott --- libopkg/pkg_depends.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libopkg/pkg_depends.c b/libopkg

[OpenWrt-Devel] [PATCH][opkg-lede] libopkg: Detect gzipped pkg lists by magic number

2019-04-17 Thread Patrick McDermott
Signed-off-by: Patrick McDermott --- libbb/gzip.h | 2 ++ libopkg/pkg_hash.c | 27 --- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/libbb/gzip.h b/libbb/gzip.h index 3a61a1d..28e3a50 100644 --- a/libbb/gzip.h +++ b/libbb/gzip.h @@ -22,6 +22,8

[OpenWrt-Devel] [PATCH][opkg-lede] build: Allow overriding opkg state dir prefix

2019-04-17 Thread Patrick McDermott
Signed-off-by: Patrick McDermott --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26230b3..f57fe10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ INCLUDE(TestBigEndian) SET(HOST_CPU "" CA