openwrt/package
Matt Merhar 8c6ed4e927
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
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>
2026-02-12 10:23:56 +01:00
..
base-files build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00
boot mediatek: filogic: gl-mt2500 fix compatibles PHY variants 2026-02-11 00:03:05 +01:00
devel strace: use bundled kernel headers 2026-01-21 11:41:59 +01:00
firmware linux-firmware: update to 20260110 2026-01-30 16:51:32 +01:00
kernel lantiq: ltq-adsl: remove of_platform header 2026-02-04 00:38:31 +01:00
libs jansson: update to 2.15.0 2026-02-07 09:04:19 +01:00
network xdp-tools: bump PKG_RELEASE 2026-02-11 22:05:25 +01:00
system apk: handle edge case when parsing .apk files 2026-02-12 10:23:56 +01:00
utils usbmode: add modeswitch rule for ZTE MF833U1 2026-02-11 23:21:42 +01:00
Makefile build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00