* pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
From-SVN: r257052
This commit is contained in:
parent
3d8fb31133
commit
45f3ab193d
@ -1,3 +1,7 @@
|
||||
2018-01-25 Ian Lance Taylor <iant@golang.org>
|
||||
|
||||
* pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
|
||||
|
||||
2018-01-24 Ian Lance Taylor <iant@golang.org>
|
||||
|
||||
* pecoff.c (coff_add): Use coff_read4, not memcpy.
|
||||
|
@ -631,10 +631,10 @@ coff_add (struct backtrace_state *state, int descriptor,
|
||||
goto fail;
|
||||
|
||||
{
|
||||
const char *vptr = (const char *)fhdr_view.data;
|
||||
const unsigned char *vptr = fhdr_view.data;
|
||||
|
||||
if (vptr[0] == 'M' && vptr[1] == 'Z')
|
||||
memcpy (&fhdr_off, vptr + 0x3c, 4);
|
||||
fhdr_off = coff_read4 (vptr + 0x3c);
|
||||
else
|
||||
fhdr_off = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user