File: fuzz_parse.cpp

package info (click to toggle)
pugixml 1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,052 kB
  • sloc: cpp: 24,068; xml: 2,151; makefile: 80; python: 44; sh: 9
file content (14 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (4)
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;
}