[sanitizer] fix a memory safety bug (!!!) in sanitizer suppressions code, discovered by Aaron Jacobs
llvm-svn: 354366
This commit is contained in:
parent
e1414d1760
commit
6bde702ac9
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue