Commit 017707ce by Ian Lance Taylor Committed by Ian Lance Taylor

* pecoff.c (coff_add): Use coff_read4, not memcpy.

From-SVN: r257040
parent 3fe3c7d7
2018-01-24 Ian Lance Taylor <iant@golang.org> 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 PR other/68239
* mmap.c (backtrace_free_locked): Don't put more than 16 entries * mmap.c (backtrace_free_locked): Don't put more than 16 entries
on the free list. on the free list.
......
...@@ -727,7 +727,7 @@ coff_add (struct backtrace_state *state, int descriptor, ...@@ -727,7 +727,7 @@ coff_add (struct backtrace_state *state, int descriptor,
goto fail; goto fail;
syms_view_valid = 1; 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; str_off = syms_off + syms_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment