Skip to content

Commit 1eaec17

Browse files
committed
escape special characters in suppression comment
1 parent 7a11c85 commit 1eaec17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/suppressions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ void SuppressionList::dump(std::ostream & out) const
544544
else
545545
out << " inline=\"false\"";
546546
if (!suppression.extraComment.empty())
547-
out << " comment=\"" << suppression.extraComment << "\"";
547+
out << " comment=\"" << ErrorLogger::toxml(suppression.extraComment) << "\"";
548548
out << " />" << std::endl;
549549
}
550550
out << " </suppressions>" << std::endl;

0 commit comments

Comments
 (0)