mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-27 13:33:17 +08:00
00ef791078
This allows us to have faster fuzz cycles since the fuzzer is in-process.
15 lines
298 B
C++
15 lines
298 B
C++
#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;
|
|
}
|