Lagom/Fuzzers: Add fuzzer for ICCProfile
This commit is contained in:
parent
79547896b7
commit
cbb6f8de65
Notes:
sideshowbarker
2024-07-17 03:03:44 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/cbb6f8de65 Pull-request: https://github.com/SerenityOS/serenity/pull/17072
2 changed files with 16 additions and 0 deletions
Meta/Lagom/Fuzzers
|
@ -30,6 +30,7 @@ add_simple_fuzzer(FuzzGemini LibGemini)
|
|||
add_simple_fuzzer(FuzzGIFLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzGzipCompression LibCompress)
|
||||
add_simple_fuzzer(FuzzGzipDecompression LibCompress)
|
||||
add_simple_fuzzer(FuzzICCProfile LibGfx)
|
||||
add_simple_fuzzer(FuzzICOLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzJPGLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzMatroskaReader LibVideo)
|
||||
|
|
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
Reference in a new issue