[compiler-rt] 456974a - [sanitizer] Fix SymbolizedStack leak
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 00:51:10 PDT 2020
Author: Vitaly Buka
Date: 2020-10-01T00:50:45-07:00
New Revision: 456974ac78f107d74b6db35401aff5ac4ab2665d
URL: https://github.com/llvm/llvm-project/commit/456974ac78f107d74b6db35401aff5ac4ab2665d
DIFF: https://github.com/llvm/llvm-project/commit/456974ac78f107d74b6db35401aff5ac4ab2665d.diff
LOG: [sanitizer] Fix SymbolizedStack leak
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp
index 4ef305cf1799..68bd0bb29629 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp
@@ -134,6 +134,7 @@ void __sanitizer_symbolize_pc(uptr pc, const char *fmt, char *out_buf,
}
CHECK(out_buf <= out_end);
*out_buf = 0;
+ frame->ClearAll();
}
SANITIZER_INTERFACE_ATTRIBUTE
More information about the llvm-commits
mailing list