[PATCH] D14637: [tsan] Don't demangle names not starting with "_Z"
Alexander Potapenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 02:38:49 PST 2015
glider added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc:51
@@ -50,1 +50,3 @@
const char *DemangleCXXABI(const char *name) {
+ if (name[0] != '_' || name[1] != 'Z')
+ return name;
----------------
Please make sure name[1] is addressable (BTW do we always know name is not NULL?)
http://reviews.llvm.org/D14637
More information about the llvm-commits
mailing list