1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

Meta/Lagom: Add a fuzzer for the WOFF parser

This commit is contained in:
Simon Wanner 2022-04-09 22:13:37 +02:00 committed by Andreas Kling
parent b19e134999
commit 4cbbb72ce8
2 changed files with 15 additions and 0 deletions

View file

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