mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Fuzzers: Add WOFF2 fuzzer
This commit is contained in:
parent
e9be1bcd09
commit
fff1645c6b
Notes:
sideshowbarker
2024-07-16 18:26:46 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/fff1645c6b Pull-request: https://github.com/SerenityOS/serenity/pull/21567
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;
|
||||
}
|
|
@ -62,6 +62,7 @@ set(FUZZER_TARGETS
|
|||
WAVLoader
|
||||
WebPLoader
|
||||
WOFF
|
||||
WOFF2
|
||||
XML
|
||||
Zip
|
||||
ZlibDecompression
|
||||
|
@ -133,6 +134,7 @@ set(FUZZER_DEPENDENCIES_WasmParser LibWasm)
|
|||
set(FUZZER_DEPENDENCIES_WAVLoader LibAudio)
|
||||
set(FUZZER_DEPENDENCIES_WebPLoader LibGfx)
|
||||
set(FUZZER_DEPENDENCIES_WOFF LibGfx)
|
||||
set(FUZZER_DEPENDENCIES_WOFF2 LibGfx)
|
||||
set(FUZZER_DEPENDENCIES_XML LibXML)
|
||||
set(FUZZER_DEPENDENCIES_Zip LibArchive)
|
||||
set(FUZZER_DEPENDENCIES_ZlibDecompression LibCompress)
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
T(WAVLoader) \
|
||||
T(WebPLoader) \
|
||||
T(WOFF) \
|
||||
T(WOFF2) \
|
||||
T(XML) \
|
||||
T(Zip) \
|
||||
T(ZlibDecompression)
|
||||
|
|
Loading…
Reference in a new issue