]> git.ipfire.org Git - thirdparty/libarchive.git/commit
rpm: Calculate huge header sizes correctly (#2158)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Fri, 3 May 2024 21:41:35 +0000 (23:41 +0200)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 21:41:35 +0000 (14:41 -0700)
commitb9f713540cc33a66a44728dd706aea487b989913
tree9b6cb3c4b65d3c760b9057b84a86ba61ce8953fa
parent83e8b0ea8c3b07e07ac3dee90a8724565f8e53fd
rpm: Calculate huge header sizes correctly (#2158)

If an RPM file contains a huge header which is larger than 4 GB then
libarchive starts parsing the RPM header as actual archive instead of
skipping it.

Switched to uint64_t from size_t for proper 32 bit support as well.
libarchive/archive_read_support_filter_rpm.c