]> git.ipfire.org Git - thirdparty/libarchive.git/commit
rar5: Fix Visual Studio compiler warnings (#2187)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Sun, 2 Jun 2024 23:43:38 +0000 (01:43 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 23:43:38 +0000 (16:43 -0700)
commit9cbe1627ca89e0a798072964eed5595c5d6005a3
tree137b62c28f35975347008dacb9e0b09eaea1f35b
parent1aafde5923a5991dce13a042a0921f16ff648b1a
rar5: Fix Visual Studio compiler warnings (#2187)

Turning window_mask into ssize_t and adjusting the signature of
circular_memcpy reduces the amount of required casts. Since window_mask
depends on value window_size, which is ssize_t, this change is safe.

Also turned extra_data_size into int64_t, which is a no-op on 64 bit
systems but prevents 32 bit systems from truncating these huge values in
archives. Since these systems most likely have large file support, this
could have meant truncation -- in theory.
libarchive/archive_read_support_format_rar5.c