[libunwind] [Libunwind] Try to fix msan failures (PR #120013)

Alexander Richardson via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 01:02:26 PST 2024


================
@@ -133,6 +133,10 @@ _LIBUNWIND_EXPORT _Unwind_Reason_Code
 _Unwind_Backtrace(_Unwind_Trace_Fn callback, void *ref) {
   unw_cursor_t cursor;
   unw_context_t uc;
+#if __has_feature(memory_sanitizer)
+  __builtin_memset(&cursor, 0, sizeof(cursor));
----------------
arichardson wrote:

I'm not keen on working around the missing msan annotations on every call. This seems fragile.

https://github.com/llvm/llvm-project/pull/120013


More information about the cfe-commits mailing list