summaryrefslogtreecommitdiff
path: root/libunwind
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-12-11 09:53:11 +0000
committerMartin Storsjo <martin@martin.st>2018-12-11 09:53:11 +0000
commiteffc19e0c7c4d3f9d91ba7fada130281a80aecc6 (patch)
tree389470f1a4255bf1ecd8bac9f45220dbd06853a1 /libunwind
parentcb3252bee106c8043eacdad52fb0d797f3a7587b (diff)
[SEH] Zero-initialize EXCEPTION_RECORD and UNWIND_HISTORY_TABLE before calling RtlUnwindEx
This fixes PR39935.
Diffstat (limited to 'libunwind')
-rw-r--r--libunwind/src/Unwind-seh.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwind/src/Unwind-seh.cpp b/libunwind/src/Unwind-seh.cpp
index 73616a8c389..73a950a1913 100644
--- a/libunwind/src/Unwind-seh.cpp
+++ b/libunwind/src/Unwind-seh.cpp
@@ -374,6 +374,8 @@ _Unwind_Resume(_Unwind_Exception *exception_object) {
CONTEXT ms_ctx;
UNWIND_HISTORY_TABLE hist;
+ memset(&ms_exc, 0, sizeof(ms_exc));
+ memset(&hist, 0, sizeof(hist));
ms_exc.ExceptionCode = STATUS_GCC_THROW;
ms_exc.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
ms_exc.NumberParameters = 4;