mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00

Previously, some fuzzers were generating an excessive amount of debug logging. This change explicitly disables debug logging for all fuzzers. This allows higher test throughput and makes the logs easier to read when fuzzing locally.
16 lines
382 B
C++
16 lines
382 B
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/Font/OpenType/Font.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
|
|
{
|
|
AK::set_debug_enabled(false);
|
|
(void)OpenType::Font::try_load_from_externally_owned_memory({ data, size });
|
|
return 0;
|
|
}
|