From 017707ce062b849a32049341ab28066b312cbc88 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 25 Jan 2018 02:42:26 +0000 Subject: [PATCH] * pecoff.c (coff_add): Use coff_read4, not memcpy. From-SVN: r257040 --- libbacktrace/ChangeLog | 4 ++++ libbacktrace/pecoff.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2