]> git.ipfire.org Git - thirdparty/libarchive.git/commit
zip: Improve bid for huge EOCDs (#2159)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Fri, 3 May 2024 22:18:34 +0000 (00:18 +0200)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 22:18:34 +0000 (15:18 -0700)
commit80af74ccbf529b31c66b1879ebc570b9b828a2a6
tree0a3a10697fa2db17426d5d7f4a4ac17f6f6805e1
parentb9f713540cc33a66a44728dd706aea487b989913
zip: Improve bid for huge EOCDs (#2159)

Cast any of cd_offset or cd_size to int64_t to avoid truncation of
result because both variables are of type uint32_t.

The calculation happens before comparison with current_offset, so it is
not automatically expanded to int64_t during calculation.
libarchive/archive_read_support_format_zip.c