summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-18 13:47:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-18 21:11:30 +0100
commit2b866e3c9b0c6e230054edbbbe431cb1fbe3037e (patch)
tree41d4b7570daeae5d998b81023928dd63eab66544 /Meta/Lagom/Fuzzers
parent750f1d580aa0358816ef1896b630e2ffe66ff232 (diff)
downloadserenity-2b866e3c9b0c6e230054edbbbe431cb1fbe3037e.zip
LibGfx: Remove ImageDecoderPlugin::bitmap() in favor of frame(index)
To encourage proper support for multi-frame images throughout the system, get rid of the single-frame convenience bitmap() API.
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzGIFLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzGIFLoader.cpp b/Meta/Lagom/Fuzzers/FuzzGIFLoader.cpp
index b672500ae7..c713c2234c 100644
--- a/Meta/Lagom/Fuzzers/FuzzGIFLoader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzGIFLoader.cpp
@@ -14,7 +14,7 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
Gfx::GIFImageDecoderPlugin gif_decoder(data, size);
- auto bitmap = gif_decoder.bitmap();
+ auto bitmap = gif_decoder.frame(0).image;
if (bitmap) {
// Looks like a valid GIF. Try to load the other frames:
dbgln_if(GIF_DEBUG, "bitmap size: {}", bitmap->size());