[SEH] Zero-initialize EXCEPTION_RECORD and UNWIND_HISTORY_TABLE before calling RtlUnwindEx

This fixes PR39935.

llvm-svn: 348836
This commit is contained in:
Martin Storsjo 2018-12-11 09:53:11 +00:00
parent ce24c878d9
commit 4862ff8d17

View File

@ -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;