1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

Fuzzers: Disable debug logging for all fuzzers

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.
This commit is contained in:
Tim Ledbetter 2023-11-03 17:49:54 +00:00 committed by Andrew Kaster
parent cdbde1765a
commit a1f9d2420f
Notes: sideshowbarker 2024-07-18 03:23:00 +09:00
68 changed files with 77 additions and 0 deletions

View file

@ -4,12 +4,15 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Format.h>
#include <LibCrypto/Authentication/Poly1305.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
AK::set_debug_enabled(false);
if (size < 32)
return 0;