* pecoff.c (coff_add): Use coff_read4, not memcpy.

From-SVN: r257040
This commit is contained in:
Ian Lance Taylor 2018-01-25 02:42:26 +00:00 committed by Ian Lance Taylor
parent 3fe3c7d749
commit 017707ce06
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-01-24 Ian Lance Taylor <iant@golang.org>
* pecoff.c (coff_add): Use coff_read4, not memcpy.
2018-01-24 Ian Lance Taylor <iant@golang.org>
PR other/68239

View File

@ -727,7 +727,7 @@ coff_add (struct backtrace_state *state, int descriptor,
goto fail;
syms_view_valid = 1;
memcpy (&str_size, syms_view.data + syms_size, 4);
str_size = coff_read4 (syms_view.data + syms_size);
str_off = syms_off + syms_size;