[sanitizer] fix a memory safety bug (!!!) in sanitizer suppressions code, discovered by Aaron Jacobs

llvm-svn: 354366
This commit is contained in:
Kostya Serebryany 2019-02-19 18:43:24 +00:00
parent e1414d1760
commit 6bde702ac9
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ bool SuppressionContext::Match(const char *str, const char *type,
}
static const char *StripPrefix(const char *str, const char *prefix) {
while (str && *str == *prefix) {
while (*str && *str == *prefix) {
str++;
prefix++;
}