mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Meta/Lagom: Add a fuzzer for the WOFF parser
This commit is contained in:
parent
b19e134999
commit
4cbbb72ce8
Notes:
sideshowbarker
2024-07-17 14:12:26 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/4cbbb72ce8 Pull-request: https://github.com/SerenityOS/serenity/pull/13595
2 changed files with 15 additions and 0 deletions
|
@ -64,6 +64,7 @@ add_simple_fuzzer(FuzzUTF16BEDecoder LagomTextCodec)
|
|||
add_simple_fuzzer(FuzzRSAKeyParsing LagomCrypto)
|
||||
add_simple_fuzzer(FuzzWAVLoader LagomAudio)
|
||||
add_simple_fuzzer(FuzzWasmParser LagomWasm)
|
||||
add_simple_fuzzer(FuzzWOFF LagomGfx)
|
||||
add_simple_fuzzer(FuzzZip LagomArchive)
|
||||
add_simple_fuzzer(FuzzZlibDecompression LagomCompress)
|
||||
|
||||
|
|
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…
Reference in a new issue