From ca7ea5a6e7cd91a4b2a3c0b6444125682bf9834e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 18 Sep 2000 02:20:42 +0000 Subject: * exceptions.cc (interruptible): Return 0 if given an address in uncommitted memory. --- winsup/cygwin/exceptions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 82ef8861c..5fcb69ae9 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -601,7 +601,7 @@ interruptible (DWORD pc, int testvalid = 0) /* Apparently Windows 95 can sometimes return bogus addresses from GetThreadContext. These resolve to an allocation base == 0. These should *never* be treated as interruptible. */ - if (!h) + if (!h || m.State != MEM_COMMIT) res = 0; else if (testvalid) res = 1; /* All we wanted to know was if this was a valid module. */ -- cgit v1.2.3