* miscfuncs.cc (__import_address): Avoid NULL explicitly.
This commit is contained in:
parent
9c4478df47
commit
1fc747f37a
|
@ -1,3 +1,7 @@
|
||||||
|
2013-01-22 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
|
* miscfuncs.cc (__import_address): Avoid NULL explicitly.
|
||||||
|
|
||||||
2013-01-22 Christopher Faylor <me.cygwin2013@cgf.cx>
|
2013-01-22 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
* miscfuncs.cc (__import_address): Avoid treating random instructions
|
* miscfuncs.cc (__import_address): Avoid treating random instructions
|
||||||
|
|
|
@ -437,7 +437,7 @@ slashify (const char *src, char *dst, bool trailing_slash_p)
|
||||||
void * __reg1
|
void * __reg1
|
||||||
__import_address (void *imp)
|
__import_address (void *imp)
|
||||||
{
|
{
|
||||||
if (*((uint16_t *) imp) != 0x25ff)
|
if (!imp || *((uint16_t *) imp) != 0x25ff)
|
||||||
return NULL;
|
return NULL;
|
||||||
myfault efault;
|
myfault efault;
|
||||||
if (efault.faulted ())
|
if (efault.faulted ())
|
||||||
|
|
Loading…
Reference in New Issue