diff options
author | Christopher Faylor <me@cgf.cx> | 2013-01-23 18:06:06 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-01-23 18:06:06 +0400 |
commit | 0e8c8b009361a87243874b8e576b9326d8ec9ab2 (patch) | |
tree | 5490ea1bea45d092a843fcdc87bda6400182da74 /winsup | |
parent | df37bdc5b7df09ca4d26f8dbf93f07676f097321 (diff) |
* miscfuncs.cc (__import_address): On second thought, the chance that this
pointer could be NULL is very low so don't bother checking for it.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/miscfuncs.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c7bd6575b..ef1fbab1f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2013-01-23 Christopher Faylor <me.cygwin2013@cgf.cx> + * miscfuncs.cc (__import_address): On second thought, the chance that + this pointer could be NULL is very low so don't bother checking for it. + +2013-01-23 Christopher Faylor <me.cygwin2013@cgf.cx> + * exceptions.cc (exception::handle): Make attempt to recursively dump stack fatal. diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc index 8e954b39f..4f9c9df9d 100644 --- a/winsup/cygwin/miscfuncs.cc +++ b/winsup/cygwin/miscfuncs.cc @@ -437,7 +437,7 @@ slashify (const char *src, char *dst, bool trailing_slash_p) void * __reg1 __import_address (void *imp) { - if (!imp || *((uint16_t *) imp) != 0x25ff) + if (*((uint16_t *) imp) != 0x25ff) return NULL; myfault efault; if (efault.faulted ()) |