mirror of
https://github.com/morluto/rea.git
synced 2026-11-24 13:18:39 +00:00
* fix(zip): account apksigner alignment padding before the APK Signing Block Signed release APKs pad the member region with zero bytes so the APK Signing Block starts on a 4 KiB boundary. The member-region account counted that pad as unaccounted bytes, so ZIP listing coverage was unknown for ordinary apksigner output. An all-zero range under 4 KiB that ends at a well-formed, 4 KiB-aligned signing block is now accounted as padding. A non-zero byte, an unaligned block or a zero run with no signing block stays unaccounted. Fixes #14178 * fix(zip): prefer the descriptor layout that leaves signing-block padding An empty member's zero sizes match both the 16-byte and the 24-byte data descriptor layouts. When the 24-byte layout is followed only by apksigner alignment padding, the first-match 16-byte choice left more than 4 KiB for the padding check, so valid padding stayed unaccounted. The descriptor search now also prefers a layout whose remainder is that padding.