1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 06:20:46 +00:00

Tests/LibCompress: Add a reproducer of oss-fuzz issue 58046

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58046
This commit is contained in:
Lucas CHOLLET 2024-01-13 01:28:44 -05:00 committed by Andrew Kaster
parent 336b8ed80b
commit 75bd1308c5
2 changed files with 9 additions and 0 deletions

View File

@ -172,3 +172,11 @@ TEST_CASE(ossfuzz_63183)
auto decompressed = TRY_OR_FAIL(Compress::DeflateDecompressor::decompress_all(compressed));
EXPECT(test_data == decompressed);
}
TEST_CASE(ossfuzz_58046)
{
auto path = TEST_INPUT("clusterfuzz-testcase-minimized-FuzzDeflateDecompression-5523852259360768.fuzz"sv);
auto test_file = TRY_OR_FAIL(Core::File::open(path, Core::File::OpenMode::Read));
auto test_data = TRY_OR_FAIL(test_file->read_until_eof());
EXPECT(Compress::DeflateDecompressor::decompress_all(test_data).is_error());
}

View File

@ -0,0 +1 @@
 I˙żž I˙żIŔž I˙żž żžĽž