diff options
-rw-r--r-- | libbacktrace/ChangeLog | 4 | ||||
-rw-r--r-- | libbacktrace/pecoff.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 2d89ea1..a035ec3 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,5 +1,9 @@ 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 * mmap.c (backtrace_free_locked): Don't put more than 16 entries on the free list. diff --git a/libbacktrace/pecoff.c b/libbacktrace/pecoff.c index 55b0f82..48bc7ac 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; |