Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libbacktrace
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
libbacktrace
Commits
97dd0dfa
Commit
97dd0dfa
authored
Jan 25, 2018
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
Updates #11
parent
4300eeda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pecoff.c
pecoff.c
+2
-2
No files found.
pecoff.c
View file @
97dd0dfa
...
@@ -631,10 +631,10 @@ coff_add (struct backtrace_state *state, int descriptor,
...
@@ -631,10 +631,10 @@ coff_add (struct backtrace_state *state, int descriptor,
goto
fail
;
goto
fail
;
{
{
const
char
*
vptr
=
(
const
char
*
)
fhdr_view
.
data
;
const
unsigned
char
*
vptr
=
fhdr_view
.
data
;
if
(
vptr
[
0
]
==
'M'
&&
vptr
[
1
]
==
'Z'
)
if
(
vptr
[
0
]
==
'M'
&&
vptr
[
1
]
==
'Z'
)
memcpy
(
&
fhdr_off
,
vptr
+
0x3c
,
4
);
fhdr_off
=
coff_read4
(
vptr
+
0x3c
);
else
else
fhdr_off
=
0
;
fhdr_off
=
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment