mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Lagom/Fuzzers: Add fuzzer for the quoted printable decoder
This commit is contained in:
parent
a00b5fc7b7
commit
7e7c65abb6
Notes:
sideshowbarker
2024-07-18 08:24:30 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/7e7c65abb6b Pull-request: https://github.com/SerenityOS/serenity/pull/8826 Reviewed-by: https://github.com/MaxWipfli Reviewed-by: https://github.com/X-yl Reviewed-by: https://github.com/linusg
2 changed files with 17 additions and 0 deletions
|
@ -32,6 +32,7 @@ add_simple_fuzzer(FuzzPNGLoader)
|
|||
add_simple_fuzzer(FuzzPBMLoader)
|
||||
add_simple_fuzzer(FuzzPGMLoader)
|
||||
add_simple_fuzzer(FuzzPPMLoader)
|
||||
add_simple_fuzzer(FuzzQuotedPrintableParser)
|
||||
add_simple_fuzzer(FuzzHebrewDecoder)
|
||||
add_simple_fuzzer(FuzzHttpRequest)
|
||||
add_simple_fuzzer(FuzzIMAPParser)
|
||||
|
|
16
Meta/Lagom/Fuzzers/FuzzQuotedPrintableParser.cpp
Normal file
16
Meta/Lagom/Fuzzers/FuzzQuotedPrintableParser.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibIMAP/QuotedPrintable.h>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
auto quoted_printable_string = StringView(static_cast<unsigned char const*>(data), size);
|
||||
IMAP::decode_quoted_printable(quoted_printable_string);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue