]> sourceware.org Git - newlib-cygwin.git/commitdiff
cygwin: initialize variable for stack unwinding
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Mon, 9 Oct 2017 15:37:40 +0000 (17:37 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 9 Oct 2017 16:58:52 +0000 (18:58 +0200)
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

index 743c73200cb6292b97380e78f0ac64f812bbacd9..a3ee5cf71bbd4dc3fb274a1710938b9c84db90bb 100644 (file)
@@ -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;
 
This page took 0.033937 seconds and 5 git commands to generate.