]> git.ipfire.org Git - thirdparty/libarchive.git/commit
rar: Do not forcefully set offset to unpacked size
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 3 Jun 2025 19:59:05 +0000 (21:59 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 3 Jun 2025 19:59:05 +0000 (21:59 +0200)
commitf3949062edd13da3d0ac330d3226871350f3ff6b
treee290a0b880bd4f5d2bb5ae26046e19cd54b8657f
parentcdb45d71b2857d2a9d96bbfd4b2af02ed66cb85a
rar: Do not forcefully set offset to unpacked size

If an entry reaches its end of file, the offset is not necessarily
the same as unp_size. This is especially true for links which have
a "0 size body" even though the unpacked size is not 0.

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