]> git.ipfire.org Git - thirdparty/libarchive.git/commit
xz: fix incorrect eof at the end of an lzip member. (#2027)
authorYAMASHINA Hio <168243+hio@users.noreply.github.com>
Mon, 4 Dec 2023 16:24:51 +0000 (01:24 +0900)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 16:24:51 +0000 (08:24 -0800)
commitf3a6cb6af38f22e2f607cc4c27ef08a4ffb6477d
tree4caee0b1c79c4655528828108bd4f6fd84a83b07
parenta5aac7c9295449dc2fabf36f203f4ff464724ccf
xz: fix incorrect eof at the end of an lzip member. (#2027)

xz filter returns incorrect eof if the end of an lzip member is at the
end of the read buffer (`state->stream.next_in`).
At next call of `xz_filter_read()`, following lzip members are never
read since `state->eof` is still flagged.
Fixes #2026.
Makefile.am
libarchive/archive_read_support_filter_xz.c
libarchive/test/test_compat_lzip.c
libarchive/test/test_compat_lzip_3.lz.uu [new file with mode: 0644]
libarchive/test/test_compat_lzip_4.tlz.uu [new file with mode: 0644]