diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-28 14:43:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-29 00:18:56 +0300 |
commit | 482cbfc4e1299434a6f632fe7f4b4e3704e65e87 (patch) | |
tree | a629b12b8a768f8431de0c134990bdbaf98912b3 /src/utils/xml.cpp | |
parent | 72cc5d13430dff4e41c77482eebd9e5e421fe739 (diff) | |
download | mv-482cbfc4e1299434a6f632fe7f4b4e3704e65e87.tar.gz mv-482cbfc4e1299434a6f632fe7f4b4e3704e65e87.tar.bz2 mv-482cbfc4e1299434a6f632fe7f4b4e3704e65e87.tar.xz mv-482cbfc4e1299434a6f632fe7f4b4e3704e65e87.zip |
add file access fuzzer.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 8e0b03e1e..d19c466d1 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -26,6 +26,8 @@ #include "resources/resourcemanager.h" +#include "utils/fuzzer.h" + #include "utils/translation/podict.h" #include <iostream> @@ -44,6 +46,10 @@ namespace XML Document::Document(const std::string &filename, const bool useResman) : mDoc(nullptr) { +#ifdef USE_FUZZER + if (Fuzzer::conditionTerminate(filename.c_str())) + return; +#endif int size = 0; char *data = nullptr; if (useResman) |