* exceptions.cc (interruptible): Return 0 if given an address in uncommitted

memory.
This commit is contained in:
Christopher Faylor 2000-09-18 02:20:42 +00:00
parent a12b2260d0
commit ca7ea5a6e7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Sep 17 22:18:39 2000 Christopher Faylor <cgf@cygnus.com>
* exceptions.cc (interruptible): Return 0 if given an address in
uncommitted memory.
2000-09-16 Egor Duda <deo@logos-m.ru>
* signal.cc (sleep): If interrupted by signal, return the

View File

@ -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. */