diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-03-13 08:12:46 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-03-13 08:12:46 -0700 |
commit | 6457f0941204a79ec5ba359a12aa00bf06f0e621 (patch) | |
tree | d3cde590a04fafb28e4e24c0d77f0289a1c80550 /tests/fuzz_parse.cpp | |
parent | 50822aa2ac07175a96e65324627d5e31877ac40a (diff) | |
parent | 15fba1debca5498989048677ffda38758b2df984 (diff) |
Merge branch 'master' into compact
Diffstat (limited to 'tests/fuzz_parse.cpp')
-rw-r--r-- | tests/fuzz_parse.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/fuzz_parse.cpp b/tests/fuzz_parse.cpp new file mode 100644 index 0000000..e758196 --- /dev/null +++ b/tests/fuzz_parse.cpp @@ -0,0 +1,16 @@ +#include "../src/pugixml.hpp" +#include "allocator.hpp" + +int main(int argc, const char** argv) +{ + pugi::set_memory_management_functions(memory_allocate, memory_deallocate); + + pugi::xml_document doc; + + for (int i = 1; i < argc; ++i) + { + doc.load_file(argv[i]); + doc.load_file(argv[i], pugi::parse_minimal); + doc.load_file(argv[i], pugi::parse_full); + } +} |