mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
750f1d580a
Let's work towards getting rid of the first-frame-only bitmap() API.
16 lines
343 B
C++
16 lines
343 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/PNGLoader.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
{
|
|
Gfx::PNGImageDecoderPlugin decoder(data, size);
|
|
(void)decoder.frame(0);
|
|
return 0;
|
|
}
|