summaryrefslogtreecommitdiff
path: root/tests/fuzz_parse.cpp
blob: 94c610a70a6f12accdb09a5b8e1311e5a31aab0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "../src/pugixml.hpp"

#include <stdint.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
{
    pugi::xml_document doc;

	doc.load_buffer(Data, Size);
	doc.load_buffer(Data, Size, pugi::parse_minimal);
	doc.load_buffer(Data, Size, pugi::parse_full);

	return 0;
}