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:
parent
e9be1bcd09
commit
fff1645c6b
3 changed files with 17 additions and 0 deletions
14
Meta/Lagom/Fuzzers/FuzzWOFF2.cpp
Normal file
14
Meta/Lagom/Fuzzers/FuzzWOFF2.cpp
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue