summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers/FuzzQuotedPrintableParser.cpp
blob: ad85fcb9defbc755393fd1f16f2401e24b018478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}