]> git.ipfire.org Git - thirdparty/libarchive.git/commit
cpio: Improve afio header detection 3095/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 30 May 2026 19:09:28 +0000 (21:09 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 31 May 2026 09:07:43 +0000 (11:07 +0200)
commit46a1f02675af339ed3a89b54afef6c1ffd2e0803
treec4ae03aaa542646fe784f1f914d6acb560118669
parent02fa05675fdf8054ae0dd73df8c5264e61f3a068
cpio: Improve afio header detection

Do not assume that enough bytes will be provided by filter if not
explicitly requested. The requested size is 76, but some checks expect
116 bytes. If these were not supplied by filter, th afio header
detection erroneously skips headers which otherwise could be found.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_format_cpio.c