]> git.ipfire.org Git - thirdparty/libarchive.git/commit
rar5: return ARCHIVE_FAILED (not ARCHIVE_FATAL) for per-entry data errors
authorTim Kientzle <kientzle@acm.org>
Sun, 3 May 2026 22:21:21 +0000 (15:21 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 3 May 2026 22:21:21 +0000 (15:21 -0700)
commit9fa772abe4266f52ebdc5b3bbdf7709cf9446261
tree95b2349d3e685d0f3981a335c003f95c894e8cec
parent4f148608e35f02a9fd86d51ec2a5d0d765faba59
rar5: return ARCHIVE_FAILED (not ARCHIVE_FATAL) for per-entry data errors

Two per-entry errors in the RAR5 data-reading path were returning
ARCHIVE_FATAL, preventing iteration over subsequent entries:

- "Reading encrypted data is not currently supported": the encryption
  is per-entry; unencrypted entries in the same archive remain readable.

- "Invalid filter encountered": a malformed filter spec in one entry
  does not make the rest of the archive unreadable.

Change both to ARCHIVE_FAILED.
libarchive/archive_read_support_format_rar5.c