From 4bee8c48dfb1c53669dcc94dbe0e13e13af298ac Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Mon, 9 Oct 2017 17:37:40 +0200 Subject: [PATCH] cygwin: initialize variable for stack unwinding The third argument of RtlLookupFunctionEntry actually is documented as _Inout_opt_ for both x64 and ARM, although generic doc says _Out_ only. * exceptions.cc (__unwind_single_frame): Initialize hist variable. --- winsup/cygwin/exceptions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 743c73200..a3ee5cf71 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -280,7 +280,7 @@ __unwind_single_frame (PCONTEXT ctx) { PRUNTIME_FUNCTION f; ULONG64 imagebase; - UNWIND_HISTORY_TABLE hist; + UNWIND_HISTORY_TABLE hist = {0}; DWORD64 establisher; PVOID hdl;