]> git.ipfire.org Git - thirdparty/libarchive.git/commit
tar: Handle many sparse comments on 32 bit systems 2646/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 27 May 2025 19:08:55 +0000 (21:08 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 27 May 2025 19:30:19 +0000 (21:30 +0200)
commitebca99719214272c210972ee9d0ae27a2c11f7a7
treee6c8d7de88a7ef80a124b48c0c2ddd68f48a64f9
parent6389d172ed25de1b84606716553241c171a30111
tar: Handle many sparse comments on 32 bit systems

The sparse 1.0 parser skips lines with comments. The amount of skipped
bytes is stored in a ssize_t variable, although common 32 bit systems
allow files larger than 4 GB.

Gracefully handle files with more than 2 GB bytes full of comments to
prevent integer truncations.

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