Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-04-09 23:20:01 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-04-09 23:20:01 +0400
commit09a7cdcc4b383e300f7fc46a3358c77b4b6a62d2 (patch)
treeb9c8079d64aa1c2577305c519a72972339a547cb /winsup/cygwin/exceptions.cc
parent236f226893d87190ada15e56bcc8fca29a0442f9 (diff)
* exceptions.cc (exception::myfault_handle): Only handle the minimum
amount of exceptions the myfault handler was designed for.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 120d71b0e..62a30d5de 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -555,7 +555,20 @@ exception::myfault_handle (LPEXCEPTION_POINTERS ep)
_cygtls& me = _my_tls;
if (me.andreas)
- me.andreas->leave (); /* Return from a "san" caught fault */
+ {
+ /* Only handle the minimum amount of exceptions the myfault handler
+ was designed for. */
+ switch (ep->ExceptionRecord->ExceptionCode)
+ {
+ case STATUS_ACCESS_VIOLATION:
+ case STATUS_DATATYPE_MISALIGNMENT:
+ case STATUS_STACK_OVERFLOW:
+ case STATUS_ARRAY_BOUNDS_EXCEEDED:
+ me.andreas->leave (); /* Return from a "san" caught fault */
+ default:
+ break;
+ }
+ }
return EXCEPTION_CONTINUE_SEARCH;
}
#endif /* __x86_64 */