mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +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:
parent
336b8ed80b
commit
75bd1308c5
2 changed files with 9 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
I˙żž I˙żIŔž I˙żž żžĽž
|
Loading…
Add table
Add a link
Reference in a new issue