mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-09 20:34:54 +00:00
[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:
parent
d15325c9e0
commit
405093045f
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user