mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
4291288a31
No plugin is currently overriding the default implementation, which is a no-op. So we can safely delete it.
20 lines
495 B
C++
20 lines
495 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/ImageFormats/JPEGLoader.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
|
{
|
|
auto decoder_or_error = Gfx::JPEGImageDecoderPlugin::create({ data, size });
|
|
if (decoder_or_error.is_error())
|
|
return 0;
|
|
auto decoder = decoder_or_error.release_value();
|
|
(void)decoder->frame(0);
|
|
return 0;
|
|
}
|