1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-11 07:52:06 +00:00
serenity/Meta/Lagom/Fuzzers/FuzzMarkdown.cpp
2022-04-01 21:24:45 +01:00

18 lines
443 B
C++

/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/OwnPtr.h>
#include <AK/StringView.h>
#include <LibMarkdown/Document.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
auto markdown = StringView(static_cast<unsigned char const*>(data), size);
(void)Markdown::Document::parse(markdown);
return 0;
}