]> git.ipfire.org Git - thirdparty/libarchive.git/commit
rar5: Avoid dangling pointers in init_unpack 3071/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 24 May 2026 13:06:06 +0000 (15:06 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 24 May 2026 13:06:06 +0000 (15:06 +0200)
commit1c914cdfef533cbee1ae3aa21a89ba02ed4d5f61
tree07daeba17125875358cd5aa7902aebab11df653c
parente20a0b2136d2b10afbe8fa118788affd5a70b93d
rar5: Avoid dangling pointers in init_unpack

If init_unpack fails to allocate memory for given window size, a
dangling pointer can lead to an eventual double free.

Resolves #3069.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_format_rar5.c