Skip to content

Commit b836942

Browse files
authored
[sanitizer_common] [Darwin] Fix typo in AtosSymbolizer error message (#173329)
1 parent ae29a16 commit b836942

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_mac.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ bool AtosSymbolizer::SymbolizePC(uptr addr, SymbolizedStack *stack) {
215215

216216
// Upon failure, ParseCommandOutput returns NULL.
217217
if (!buf) {
218-
Report("WARNING: atos failed to symbolize buf address \"0x%zx\"\n", addr);
219-
return NULL;
218+
Report("WARNING: atos failed to symbolize address \"0x%zx\"\n", addr);
219+
return false;
220220
}
221221
cur->info.line = (int)line;
222222

compiler-rt/test/asan/TestCases/Darwin/atos-symbolized-recover.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ void bar() {
1414
int main() {
1515
bar();
1616
return 0;
17-
// CHECK: WARNING: atos failed to symbolize buf address{{.*}}
17+
// CHECK: WARNING: atos failed to symbolize address{{.*}}
1818
// CHECK: {{.*}}atos-symbolized-recover.cpp:[[@LINE-3]]{{.*}}
1919
}

0 commit comments

Comments
 (0)