mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibCompress: Implement correct validation of last filters
This commit is contained in:
parent
786e654dfd
commit
25642dfe87
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/timschumi
Commit: 25642dfe87
Pull-request: https://github.com/SerenityOS/serenity/pull/21552
Reviewed-by: https://github.com/gmta ✅
3 changed files with 12 additions and 6 deletions
|
@ -1864,9 +1864,6 @@ TEST_CASE(xz_utils_unsupported_filter_flags_2)
|
|||
auto stream = MUST(try_make<FixedMemoryStream>(compressed));
|
||||
auto decompressor = MUST(Compress::XzDecompressor::create(move(stream)));
|
||||
|
||||
// TODO: We don't yet check whether the filter chain satisfies the "can't be the last filter"
|
||||
// requirement. We just happen to get the result right because we try to uncompress the
|
||||
// test case and fail.
|
||||
auto buffer_or_error = decompressor->read_until_eof(PAGE_SIZE);
|
||||
EXPECT(buffer_or_error.is_error());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue