mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
LibGfx: Rename JPGLoader
to JPEGLoader
The patch also contains modifications on several classes, functions or files that are related to the `JPGLoader`. Renaming include: - JPGLoader{.h, .cpp} - JPGImageDecoderPlugin - JPGLoadingContext - JPG_DEBUG - decode_jpg - FuzzJPGLoader.cpp - Few string literals or texts
This commit is contained in:
parent
ab298ca106
commit
856d0202f2
14 changed files with 118 additions and 118 deletions
20
Meta/Lagom/Fuzzers/FuzzJPEGLoader.cpp
Normal file
20
Meta/Lagom/Fuzzers/FuzzJPEGLoader.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibGfx/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();
|
||||
decoder->initialize();
|
||||
(void)decoder->frame(0);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue