Skip to content

Commit cb47672

Browse files
committed
remove multi-byte characters from suppression comment
1 parent 36fefc8 commit cb47672

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/suppressions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ bool SuppressionList::Suppression::parseComment(std::string comment, std::string
347347

348348
if (extraPos != std::string::npos) {
349349
extraComment = trim(comment.substr(extraPos + extraDelimiterSize));
350+
for (auto it = extraComment.begin(); it != extraComment.end();)
351+
it = *it & 0x80 ? extraComment.erase(it) : it + 1;
350352
comment.erase(extraPos);
351353
}
352354

0 commit comments

Comments
 (0)