openwrt/package/system
Matt Merhar 324e157b4b apk: handle edge case when parsing .apk files
This was a regression introduced in the recent alignment changes and led
to failures when reading (i.e. 'mkndx') certain packages like follows:

ERROR: python3-botocore-1.31.7-r1.apk: unexpected end of file

It affected packages with a header size greater than the read buffer
size of 128KB but less than 160KB (128KB + (128KB / 4)).

In those cases, we'd attempt a 0 byte read, leading to APKE_EOF.

Based on some tests of files across multiple archs and feeds, it seems
the only packages meeting those criteria were python3-botocore and
golang-github-jedisct1-dnscrypt-proxy2-dev.

Fixes: 64ec08eee1 ("apk: backport upstream fixes for unaligned access")
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/21992
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 8c6ed4e927)
Link: https://github.com/openwrt/openwrt/pull/22001
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-13 00:12:35 +01:00
..
apk apk: handle edge case when parsing .apk files 2026-02-13 00:12:35 +01:00
ca-certificates ca-certificates: provide a virtual package 2026-01-02 18:11:03 +01:00
fstools fstools: update to Git HEAD (2025-10-03) 2025-10-03 23:56:46 +02:00
fwtool fwtool: update to Git HEAD (2025-10-03) 2025-10-03 23:56:29 +02:00
gpio-cdev/nu801 nu801: Mark as nonshared to build in step 1 2024-11-04 21:20:37 +01:00
iucode-tool packages: refresh patches 2024-05-31 11:30:06 +02:00
mtd mtd: add dump command help 2025-11-25 00:43:23 +01:00
openwrt-keyring OpenWrt v25.12: set branch defaults 2025-12-11 00:49:28 +01:00
opkg opkg: update to Git HEAD (2025-11-05) 2025-11-05 16:47:32 +01:00
procd treewide: add explicit default variant 2026-01-02 18:11:04 +01:00
refpolicy refpolicy: update to 2.20250923 2025-11-23 09:23:21 +01:00
rpcd rpcd: update to Git HEAD (2025-12-03) 2025-12-04 11:06:48 +01:00
selinux-policy selinux-policy: update to 2.8.4 2025-11-27 13:32:52 +01:00
ubox ubox: update to Git HEAD (2025-10-30) 2025-11-11 00:20:14 +01:00
ubus ubus: update to Git HEAD (2025-12-02) 2025-12-09 20:39:06 +01:00
ucert treewide: add explicit default variant 2026-01-02 18:11:04 +01:00
uci uci: update to Git HEAD (2025-12-02) 2025-12-09 20:36:25 +01:00
urandom-seed treewide: disable QUILT refresh for unsupported packages 2023-10-20 16:13:13 +02:00
urngd urngd: update to Git HEAD (2025-10-03) 2025-10-03 23:54:41 +02:00
usign usign: update to Git HEAD (2025-10-03) 2025-10-03 23:54:34 +02:00
zram-swap treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00