]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix size_t cast in read_mac_metadata_blob 1570/head
authorSamanta Navarro <ferivoz@riseup.net>
Sat, 28 Aug 2021 11:58:00 +0000 (11:58 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Sat, 28 Aug 2021 11:58:20 +0000 (11:58 +0000)
commita7ce8a6aa7b710986ab918761c8d2ff1b0e9f537
tree093a17eeef8a69115e2e9a3fe8b5aa8a7f53e867
parent3aeea1ea8de681738814aa12138a4fc0a20906f4
Fix size_t cast in read_mac_metadata_blob

The size_t data type on 32 bit systems is smaller than int64_t. Check
the int64_t value before casting to size_t. If the value is too large
then stop operation instead of continuing operation with truncated
value.
libarchive/archive_read_support_format_tar.c