libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).
https://support.apple.com/kb/HT213193
https://support.apple.com/kb/HT213183
https://support.apple.com/kb/HT213182
https://security.gentoo.org/glsa/202208-26
https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375
http://seclists.org/fulldisclosure/2022/Mar/29