From faf348306be9c5803523d2ed257cbc74b7cc108d Mon Sep 17 00:00:00 2001 From: rebnridgway Date: Wed, 25 Apr 2018 17:28:04 +0100 Subject: [PATCH] Escaped filename, which can contain invalid xml (#1192) --- lib/preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index b02f751f2..bd46d1e7d 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -818,7 +818,7 @@ void Preprocessor::dump(std::ostream &out) const for (std::list::const_iterator it = directives.begin(); it != directives.end(); ++it) { out << " file << "\" " + << "file=\"" << ErrorLogger::toxml(it->file) << "\" " << "linenr=\"" << it->linenr << "\" " // str might contain characters such as '"', '<' or '>' which // could result in invalid XML, so run it through toxml().