summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2017-10-09 17:37:40 +0200
committerCorinna Vinschen <corinna@vinschen.de>2017-10-09 18:58:52 +0200
commit4bee8c48dfb1c53669dcc94dbe0e13e13af298ac (patch)
treecf26ba0dc69a6a25ec7007129239f1ba9ebc5a9a
parent7346a162f2956c53f36a0cabf969e7b8186d81b0 (diff)
downloadcygnal-4bee8c48dfb1c53669dcc94dbe0e13e13af298ac.tar.gz
cygnal-4bee8c48dfb1c53669dcc94dbe0e13e13af298ac.tar.bz2
cygnal-4bee8c48dfb1c53669dcc94dbe0e13e13af298ac.zip
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.
-rw-r--r--winsup/cygwin/exceptions.cc2
1 files changed, 1 insertions, 1 deletions
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;