mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-29 13:39:07 +08:00
4
pecoff.c
4
pecoff.c
@@ -631,10 +631,10 @@ coff_add (struct backtrace_state *state, int descriptor,
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
{
|
{
|
||||||
const char *vptr = (const char *)fhdr_view.data;
|
const unsigned char *vptr = fhdr_view.data;
|
||||||
|
|
||||||
if (vptr[0] == 'M' && vptr[1] == 'Z')
|
if (vptr[0] == 'M' && vptr[1] == 'Z')
|
||||||
memcpy (&fhdr_off, vptr + 0x3c, 4);
|
fhdr_off = coff_read4 (vptr + 0x3c);
|
||||||
else
|
else
|
||||||
fhdr_off = 0;
|
fhdr_off = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user