diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-03-30 00:39:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-30 08:45:35 +0200 |
commit | 8ff36e5910445ad59ceb5d1d2acb84381c15036e (patch) | |
tree | e8935d1d64c53d767f343773207d081adf94cf4d /Tests/LibCompress | |
parent | b6f3b2f1161a3c98c947511b3452e878cae449c7 (diff) | |
download | serenity-8ff36e5910445ad59ceb5d1d2acb84381c15036e.zip |
LibCompress: Implement proper handling of LZMA end-of-stream markers
Diffstat (limited to 'Tests/LibCompress')
-rw-r--r-- | Tests/LibCompress/TestLzma.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/LibCompress/TestLzma.cpp b/Tests/LibCompress/TestLzma.cpp index 825a54803c..6007d6c8ac 100644 --- a/Tests/LibCompress/TestLzma.cpp +++ b/Tests/LibCompress/TestLzma.cpp @@ -166,7 +166,6 @@ TEST_CASE(specification_bad_incorrect_size_lzma_decompress) auto stream = MUST(try_make<FixedMemoryStream>(compressed)); auto decompressor = MUST(Compress::LzmaDecompressor::create_from_container(move(stream))); - // FIXME: This should detect that there is still remaining (non-'end of stream') data after the expected data and reject the last read. - // As of now, this test accepts any result, except for crashes. - (void)decompressor->read_until_eof(PAGE_SIZE); + auto buffer_or_error = decompressor->read_until_eof(PAGE_SIZE); + EXPECT(buffer_or_error.is_error()); } |