[compiler-rt] Follow up fix for the refactoring in https://reviews.llvm.org/D74137.

Summary:
The refactoring has caused a failure in
http://lab.llvm.org:8011/builders/clang-ppc64le-linux/builds/29265

The idea of failing the symbolization when the symbolizer bufer is too small
was incorrect. The symbolizer can be invoked for other frames that may fit into
the buffer and get symbolized.

Reviewers: vitalybuka, eugenis

Subscribers: dberris, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D74343
This commit is contained in:
Max Moroz 2020-02-10 10:19:03 -08:00
parent d15325c9e0
commit 405093045f

View File

@ -529,8 +529,8 @@ bool SymbolizerProcess::ReadFromSymbolizer(char *buffer, uptr max_length) {
break;
if (read_len + 1 == max_length) {
Report("WARNING: Symbolizer buffer too small\n");
buffer[0] = '\0';
return false;
read_len = 0;
break;
}
}
buffer[read_len] = '\0';