* pecoff.c (coff_add): Use coff_read4, not memcpy.
authorIan Lance Taylor <iant@golang.org>
Thu, 25 Jan 2018 02:42:26 +0000 (02:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 25 Jan 2018 02:42:26 +0000 (02:42 +0000)
From-SVN: r257040

libbacktrace/ChangeLog
libbacktrace/pecoff.c

index 2d89ea1..a035ec3 100644 (file)
@@ -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.
index 55b0f82..48bc7ac 100644 (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;