https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4bee8c48dfb1c53669dcc94dbe0e13e13af298ac
commit 4bee8c48dfb1c53669dcc94dbe0e13e13af298ac Author: Michael Haubenwallner <[email protected]> Date: Mon Oct 9 17:37:40 2017 +0200 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. Diff: --- 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 743c732..a3ee5cf 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;
