From: Ian Lance Taylor Date: Thu, 25 Jan 2018 02:42:26 +0000 (+0000) Subject: * pecoff.c (coff_add): Use coff_read4, not memcpy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=017707ce062b849a32049341ab28066b312cbc88;p=gcc.git * pecoff.c (coff_add): Use coff_read4, not memcpy. From-SVN: r257040 --- diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 2d89ea1dd6c..a035ec36937 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2018-01-24 Ian Lance Taylor + + * pecoff.c (coff_add): Use coff_read4, not memcpy. + 2018-01-24 Ian Lance Taylor PR other/68239 diff --git a/libbacktrace/pecoff.c b/libbacktrace/pecoff.c index 55b0f82a139..48bc7ac4492 100644 --- a/libbacktrace/pecoff.c +++ b/libbacktrace/pecoff.c @@ -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;