@@ -1693,12 +1693,52 @@ TEST_CASE(test_tiff_fuzz)
1693
1693
{
1694
1694
Array test_inputs = {
1695
1695
TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5992525535969280" sv),
1696
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-4568002606465024" sv),
1697
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-4568095444238336" sv),
1698
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-4792178760024064" sv),
1699
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-4843377133682688" sv),
1700
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5141058625273856" sv),
1701
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5148654958608384" sv),
1702
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5153321679650816" sv),
1703
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5185775050227712" sv),
1704
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5355241142812672.fuzz" sv),
1705
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5363511089758208" sv),
1706
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5852152004149248" sv),
1707
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-5903464527888384" sv),
1708
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-6054150979780608" sv),
1709
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-6276881913544704" sv),
1710
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-6440082630311936.fuzz" sv),
1711
+ TEST_INPUT (" tiff/fuzz/clusterfuzz-testcase-minimized-FuzzTIFFLoader-6483860697186304" sv),
1712
+ TEST_INPUT (" tiff/fuzz/slow-unit-02ef887f920faad55e5ec28151d00607bf2b086b.tiff" sv),
1713
+ TEST_INPUT (" tiff/fuzz/slow-unit-05ee1cc597d59f1f9af6b45d470af975dd19333d.tiff" sv),
1714
+ TEST_INPUT (" tiff/fuzz/slow-unit-0bdf220eda18e5358776999e94c2c9d67a55db35.tiff" sv),
1715
+ TEST_INPUT (" tiff/fuzz/slow-unit-149cb59b6c0ba8ba7d2396576ed11c9f40a19713.tiff" sv),
1716
+ TEST_INPUT (" tiff/fuzz/slow-unit-31a9053415ab4e40929362b13de1ba31d7cde3a9.tiff" sv),
1717
+ TEST_INPUT (" tiff/fuzz/slow-unit-3d9cbd81749f40ea2f306d7bd43a26acbc29a2ba.tiff" sv),
1718
+ TEST_INPUT (" tiff/fuzz/slow-unit-4277841b311ac054a274dd91760d63524714f832.tiff" sv),
1719
+ TEST_INPUT (" tiff/fuzz/slow-unit-4ae44e39ec71d081fa58ab87f041729227b246d1.tiff" sv),
1720
+ TEST_INPUT (" tiff/fuzz/slow-unit-5aaaae267780d7b72e92937af8fe677d85c48b69.tiff" sv),
1721
+ TEST_INPUT (" tiff/fuzz/slow-unit-5c5d914b1ae9512e521cd9a8fb6b544503033346.tiff" sv),
1722
+ TEST_INPUT (" tiff/fuzz/slow-unit-6eadb23505a2c1759105e22e68c4e11260b8063e.tiff" sv),
1723
+ TEST_INPUT (" tiff/fuzz/slow-unit-80bb2427eef917332c2366b40fb8c2c6279313bd.tiff" sv),
1724
+ TEST_INPUT (" tiff/fuzz/slow-unit-8f0546b6fe9e107df58e805f0d02b754d14a862b.tiff" sv),
1725
+ TEST_INPUT (" tiff/fuzz/slow-unit-ac4bfed7fbcedd8e53b1fa7cf415121af882b015.tiff" sv),
1726
+ TEST_INPUT (" tiff/fuzz/slow-unit-c2f7bdc38e7d9cbaff8c8e5f99363ee25ec6dbed.tiff" sv),
1727
+ TEST_INPUT (" tiff/fuzz/slow-unit-cb47f14a856d06b5e823de8f630ec52f1e929648.tiff" sv),
1728
+ TEST_INPUT (" tiff/fuzz/slow-unit-cf6894f9b445188675a8d8dd4cd85d857947a71f.tiff" sv),
1729
+ TEST_INPUT (" tiff/fuzz/slow-unit-d2b5882aa20ec80cdb33dfe3e15365dbb6a8886a.tiff" sv),
1730
+ TEST_INPUT (" tiff/fuzz/slow-unit-eb5ac3125b129340ce5068546282ca727936eb4f.tiff" sv),
1731
+ TEST_INPUT (" tiff/fuzz/slow-unit-ece3cf3e41f99255110d605638649f99a5f2f8dd.tiff" sv),
1732
+ TEST_INPUT (" tiff/fuzz/slow-unit-f37b61114c857c656ef3a2243893cfdcae10a0e9.tiff" sv),
1733
+ TEST_INPUT (" tiff/fuzz/slow-unit-fc21cd65c6df8dcb3bfc63dc7a41d5f22ce60226.tiff" sv),
1696
1734
};
1697
1735
1698
1736
for (auto test_input : test_inputs) {
1699
1737
auto file = TRY_OR_FAIL (Core::MappedFile::map (test_input));
1700
- auto plugin_decoder = TRY_OR_FAIL (Gfx::TIFFImageDecoderPlugin::create (file->bytes ()));
1701
- auto frame_or_error = plugin_decoder->frame (0 );
1738
+ auto plugin_decoder_or_error = Gfx::TIFFImageDecoderPlugin::create (file->bytes ());
1739
+ if (plugin_decoder_or_error.is_error ())
1740
+ continue ;
1741
+ auto frame_or_error = plugin_decoder_or_error.value ()->frame (0 );
1702
1742
EXPECT (frame_or_error.is_error ());
1703
1743
}
1704
1744
}
0 commit comments