@@ -9,6 +9,7 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
- Gfx::load_bmp_from_memory(data, size);
+ Gfx::BMPImageDecoderPlugin decoder(data, size);
+ (void)decoder.bitmap();
return 0;
}
@@ -10,6 +10,7 @@
- Gfx::load_ico_from_memory(data, size);
+ Gfx::ICOImageDecoderPlugin decoder(data, size);
- Gfx::load_jpg_from_memory(data, size);
+ Gfx::JPGImageDecoderPlugin decoder(data, size);
- Gfx::load_pbm_from_memory(data, size);
+ Gfx::PBMImageDecoderPlugin decoder(data, size);
- Gfx::load_pgm_from_memory(data, size);
+ Gfx::PGMImageDecoderPlugin decoder(data, size);
- Gfx::load_png_from_memory(data, size);
+ Gfx::PNGImageDecoderPlugin decoder(data, size);
- Gfx::load_ppm_from_memory(data, size);
+ Gfx::PPMImageDecoderPlugin decoder(data, size);