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

Dmitry Chestnykh via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 01:05:24 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));
----------------
chestnykh wrote:

It's better to create a bug on msan?

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


More information about the cfe-commits mailing list