summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-18 13:41:03 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-18 21:11:30 +0100
commit750f1d580aa0358816ef1896b630e2ffe66ff232 (patch)
treef0f0b00f0666c661d364f9627db934dfe2ff5a96 /Meta/Lagom/Fuzzers
parent578a576a98598dc5476795a754d5cd4adf63864d (diff)
downloadserenity-750f1d580aa0358816ef1896b630e2ffe66ff232.zip
Fuzzers: Use ImageDecoderPlugin::frame() in image decoder fuzzers
Let's work towards getting rid of the first-frame-only bitmap() API.
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzBMPLoader.cpp2
-rw-r--r--Meta/Lagom/Fuzzers/FuzzICOLoader.cpp2
-rw-r--r--Meta/Lagom/Fuzzers/FuzzJPGLoader.cpp2
-rw-r--r--Meta/Lagom/Fuzzers/FuzzPBMLoader.cpp2
-rw-r--r--Meta/Lagom/Fuzzers/FuzzPGMLoader.cpp2
-rw-r--r--Meta/Lagom/Fuzzers/FuzzPNGLoader.cpp2
-rw-r--r--Meta/Lagom/Fuzzers/FuzzPPMLoader.cpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzBMPLoader.cpp b/Meta/Lagom/Fuzzers/FuzzBMPLoader.cpp
index 60c6c9d5db..f27a2707d5 100644
--- a/Meta/Lagom/Fuzzers/FuzzBMPLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzBMPLoader.cpp
@@ -10,6 +10,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::BMPImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}
diff --git a/Meta/Lagom/Fuzzers/FuzzICOLoader.cpp b/Meta/Lagom/Fuzzers/FuzzICOLoader.cpp
index ae1caa1ecf..b691415ee6 100644
--- a/Meta/Lagom/Fuzzers/FuzzICOLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzICOLoader.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::ICOImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}
diff --git a/Meta/Lagom/Fuzzers/FuzzJPGLoader.cpp b/Meta/Lagom/Fuzzers/FuzzJPGLoader.cpp
index 106049be92..4d3c97aed0 100644
--- a/Meta/Lagom/Fuzzers/FuzzJPGLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzJPGLoader.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::JPGImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}
diff --git a/Meta/Lagom/Fuzzers/FuzzPBMLoader.cpp b/Meta/Lagom/Fuzzers/FuzzPBMLoader.cpp
index 1074fbcdd8..24464bbae1 100644
--- a/Meta/Lagom/Fuzzers/FuzzPBMLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzPBMLoader.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::PBMImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}
diff --git a/Meta/Lagom/Fuzzers/FuzzPGMLoader.cpp b/Meta/Lagom/Fuzzers/FuzzPGMLoader.cpp
index fd5c64ae79..4ec226d962 100644
--- a/Meta/Lagom/Fuzzers/FuzzPGMLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzPGMLoader.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::PGMImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}
diff --git a/Meta/Lagom/Fuzzers/FuzzPNGLoader.cpp b/Meta/Lagom/Fuzzers/FuzzPNGLoader.cpp
index 8ea01c17a7..848ce18562 100644
--- a/Meta/Lagom/Fuzzers/FuzzPNGLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzPNGLoader.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::PNGImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}
diff --git a/Meta/Lagom/Fuzzers/FuzzPPMLoader.cpp b/Meta/Lagom/Fuzzers/FuzzPPMLoader.cpp
index 211b059ad1..9b99627b88 100644
--- a/Meta/Lagom/Fuzzers/FuzzPPMLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzPPMLoader.cpp
@@ -11,6 +11,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::PPMImageDecoderPlugin decoder(data, size);
- (void)decoder.bitmap();
+ (void)decoder.frame(0);
return 0;
}