openwrt/package
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
..
base-files OpenWrt v25.12.0-rc4: revert to branch defaults 2026-01-29 23:52:16 +01:00
boot mediatek: filogic: gl-mt2500 fix compatibles PHY variants 2026-02-11 00:09:30 +01:00
devel kselftests-bpf: drop dependency on kernel 6.6 2025-11-27 12:47:16 +01:00
firmware ipq-wifi: Add entry for TP-Link TL-WA1201 v2 2026-02-11 00:14:43 +01:00
kernel airoha: an7581: enable USB support 2026-02-07 17:03:16 +01:00
libs libpcap: update to 1.10.6 2026-01-29 10:47:14 +01:00
network iproute2: add cake_mq support 2026-02-11 02:12:22 +01:00
system apk: handle edge case when parsing .apk files 2026-02-13 00:12:35 +01:00
utils packages: nvram: add set_bcm43602_variables quirk for ASUS RT-AC3200 2026-01-23 16:06:24 +00:00
Makefile package: do not sign individual APK packages 2025-10-09 12:52:43 +02:00