mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
LibCompress: Implement correct validation of last filters
This commit is contained in:
parent
786e654dfd
commit
25642dfe87
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