2020-07-13 15:58:55 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-07-13 15:58:55 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <AK/OwnPtr.h>
|
|
|
|
|
#include <AK/StringView.h>
|
|
|
|
|
#include <LibMarkdown/Document.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
|
|
|
{
|
2021-02-25 17:10:47 -03:00
|
|
|
auto markdown = StringView(static_cast<const unsigned char*>(data), size);
|
2020-07-13 15:58:55 -03:00
|
|
|
Markdown::Document::parse(markdown);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|