]> git.ipfire.org Git - thirdparty/libarchive.git/commit
[RAR5] Correct handling of unknown filter types
authorTim Kientzle <kientzle@acm.org>
Tue, 5 May 2026 17:00:01 +0000 (10:00 -0700)
committerTim Kientzle <kientzle@acm.org>
Tue, 5 May 2026 20:39:27 +0000 (13:39 -0700)
commit48410001f10943f75cb267d76b5fafc4fd0de57d
tree49d713513cedd6f333e79e9baaaea008e57abe94
parent25d973151801872e07db6486abffdd9e47580d5b
[RAR5] Correct handling of unknown filter types

The change to return FAILED for entry-specific issues uncovered
flaws in RAR5 handling of filter types:
* Supported filter types are verified in `parse_filter` and
  were being also checked in `run_filter` -- the duplication
  confused the error handling here.
* `do_uncompress_file` was only checking for `FATAL` from
  the upstream filter logic, so failed to properly pass
  `FAILED` errors through
Makefile.am
libarchive/archive_read_support_format_rar5.c
libarchive/test/CMakeLists.txt
libarchive/test/test_read_format_rar5_bad_filter.c [new file with mode: 0644]