]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Merge pull request #3055 from stoeckmann/cpio_uaf
authorDustin L. Howett <dustin@howett.net>
Tue, 26 May 2026 19:00:53 +0000 (14:00 -0500)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 19:00:53 +0000 (14:00 -0500)
cpio: Fix UAF in error path
Add entry only after its full initialization into list. Otherwise the error handling of a failing strdup would have to unlink the entry again.

Fixes: 16ad9310733e ("cpio reader: Validate pathname in record_hardlink")
Resolves #3053.


Trivial merge