1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:57:34 +00:00

Fuzzers: Add WOFF2 fuzzer

This commit is contained in:
Tim Ledbetter 2023-10-24 07:54:20 +01:00 committed by Andreas Kling
parent e9be1bcd09
commit fff1645c6b
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2023, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGfx/Font/WOFF2/Font.h>
#include <stddef.h>
extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
{
(void)WOFF2::Font::try_load_from_externally_owned_memory({ data, size });
return 0;
}