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
Notes:
sideshowbarker
2024-07-17 03:35:24 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/75bd1308c5 Pull-request: https://github.com/SerenityOS/serenity/pull/22731 Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 9 additions and 0 deletions
Tests/LibCompress
|
@ -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
Reference in a new issue