* 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 2d89ea1dd6c772a0e537f8a9d274c5b96625e070..a035ec36937402c648ec723ee9f20993b41694c3 100644 (file)
@@ -1,3 +1,7 @@
+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
index 55b0f82a139f21a01b4bb544d277b6a9672ea6e1..48bc7ac4492402a87d297b4bd3699fa2a4c3a0b4 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;