Skip to content

Commit

Permalink
* pecoff.c (coff_add): Use coff_read4, not memcpy.
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
ianlancetaylor committed Jan 25, 2018
1 parent 051ecb4 commit 4300eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pecoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4300eed

Please sign in to comment.