]> git.ipfire.org Git - thirdparty/libarchive.git/commit
7zip: Fix NULL pointer dereference on non-zlib builds (#2193)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Sat, 18 May 2024 04:43:47 +0000 (06:43 +0200)
committerGitHub <noreply@github.com>
Sat, 18 May 2024 04:43:47 +0000 (21:43 -0700)
commit8fc0569bab522212fd593210e5a88e07918cbd5e
tree76edcb1f9c78bde70ed593d1902973902d35f82a
parent17333c27adc2d2c0d3831ae1dc98b48b19579d6d
7zip: Fix NULL pointer dereference on non-zlib builds (#2193)

If libarchive is built without zlib support, it is possible to trigger a
NULL pointer dereference with specially crafted 7zip files.

It takes multiple conditions to be able to reach the issue in crc32 and
all 7zip-specific ones are fixed with this PR.
libarchive/archive_crc32.h
libarchive/archive_read_support_format_7zip.c