ASan: add backtrace_symbols test and clarify code is correct
authorThurston Dang <thurston@google.com>
Sat, 13 May 2023 00:00:31 +0000 (00:00 +0000)
committerThurston Dang <thurston@google.com>
Sat, 13 May 2023 05:26:45 +0000 (05:26 +0000)
commit04fd535409ddc601a4654e38ff28db3f13c10713
tree95da8bea961be4f6b220f3d7b908f41e08cab2f7
parent0bbf3ddf5fea86e0eb0726142827e175aadaf53b
ASan: add backtrace_symbols test and clarify code is correct

This is another patch for https://github.com/google/sanitizers/issues/321
(sanitizer interceptors can write to freed memory, causing corruption),
in this case for backtrace_symbols.

backtrace_symbols is already correct, hence this patch removes the
TODO note. Additionally, this patch adds a test case for it.

Differential Revision: https://reviews.llvm.org/D150498
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/test/asan/TestCases/backtrace_symbols_interceptor.cpp [new file with mode: 0644]