diff options
author | Ian Lance Taylor <iant@golang.org> | 2018-01-25 02:42:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-25 02:42:26 +0000 |
commit | 017707ce062b849a32049341ab28066b312cbc88 (patch) | |
tree | f9f2ec88204d5ce0b54ffc829ad38c6acc773e62 /libbacktrace | |
parent | 3fe3c7d749fbf146ae6c6f8c84c5cd847a1ce098 (diff) | |
download | gcc-017707ce062b849a32049341ab28066b312cbc88.zip gcc-017707ce062b849a32049341ab28066b312cbc88.tar.gz gcc-017707ce062b849a32049341ab28066b312cbc88.tar.bz2 |
* pecoff.c (coff_add): Use coff_read4, not memcpy.
From-SVN: r257040
Diffstat (limited to 'libbacktrace')
-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; |