]> git.ipfire.org Git - thirdparty/libarchive.git/commit
bzip2: Remove dead code 3082/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 27 May 2026 19:19:09 +0000 (21:19 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 27 May 2026 19:19:09 +0000 (21:19 +0200)
commita54de78b87dff2768d94ee149c4eda847f0c35fe
tree74fd39a99b340d24d10683b2c3ae68204e604e24
parentc15997d4f303e01da11cb13e95783866c5cb0687
bzip2: Remove dead code

The check for end of file (avail == 0) happens after the check for a
NULL return value of __archive_read_filter_ahead.

Remove it, because at this stage, it's definitely truncated, not just
end of file.

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