mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
Fuzzers: Don't disable debug logging in GIF fuzzer if GIF_DEBUG is set
This commit is contained in:
parent
d186582d30
commit
4173a9880f
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/tcl3
Commit: 4173a9880f
Pull-request: https://github.com/SerenityOS/serenity/pull/22835
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/LucasChollet ✅
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@
|
||||||
|
|
||||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||||
{
|
{
|
||||||
AK::set_debug_enabled(false);
|
if constexpr (!GIF_DEBUG) {
|
||||||
|
AK::set_debug_enabled(false);
|
||||||
|
}
|
||||||
auto decoder_or_error = Gfx::GIFImageDecoderPlugin::create({ data, size });
|
auto decoder_or_error = Gfx::GIFImageDecoderPlugin::create({ data, size });
|
||||||
if (decoder_or_error.is_error())
|
if (decoder_or_error.is_error())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue