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:
parent
b19e134999
commit
4cbbb72ce8
2 changed files with 15 additions and 0 deletions
14
Meta/Lagom/Fuzzers/FuzzWOFF.cpp
Normal file
14
Meta/Lagom/Fuzzers/FuzzWOFF.cpp
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue