mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
Lagom/Fuzzers: Add fuzzer for ICCProfile
This commit is contained in:
parent
79547896b7
commit
cbb6f8de65
2 changed files with 16 additions and 0 deletions
15
Meta/Lagom/Fuzzers/FuzzICCProfile.cpp
Normal file
15
Meta/Lagom/Fuzzers/FuzzICCProfile.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibGfx/ICCProfile.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
(void)Gfx::ICC::Profile::try_load_from_externally_owned_memory({ data, size });
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue