mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
Lagom/Fuzzers: Add fuzzer for the quoted printable decoder
This commit is contained in:
parent
a00b5fc7b7
commit
7e7c65abb6
2 changed files with 17 additions and 0 deletions
|
@ -32,6 +32,7 @@ add_simple_fuzzer(FuzzPNGLoader)
|
||||||
add_simple_fuzzer(FuzzPBMLoader)
|
add_simple_fuzzer(FuzzPBMLoader)
|
||||||
add_simple_fuzzer(FuzzPGMLoader)
|
add_simple_fuzzer(FuzzPGMLoader)
|
||||||
add_simple_fuzzer(FuzzPPMLoader)
|
add_simple_fuzzer(FuzzPPMLoader)
|
||||||
|
add_simple_fuzzer(FuzzQuotedPrintableParser)
|
||||||
add_simple_fuzzer(FuzzHebrewDecoder)
|
add_simple_fuzzer(FuzzHebrewDecoder)
|
||||||
add_simple_fuzzer(FuzzHttpRequest)
|
add_simple_fuzzer(FuzzHttpRequest)
|
||||||
add_simple_fuzzer(FuzzIMAPParser)
|
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…
Add table
Add a link
Reference in a new issue