Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
52014156
Commit
52014156
authored
Feb 13, 2012
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: In dwarf parser, when looking for FDE/CIE skip first O-length entries.
parent
611d5e47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
dwarf.c
dlls/dbghelp/dwarf.c
+12
-1
No files found.
dlls/dbghelp/dwarf.c
View file @
52014156
...
...
@@ -2632,6 +2632,15 @@ static BOOL dwarf2_get_cie(unsigned long addr, struct module* module, DWORD_PTR
const
BYTE
*
start_data
=
fde_ctx
->
data
;
cie_id
=
in_eh_frame
?
0
:
DW_CIE_ID
;
/* skip 0-padding at beginning of section (alignment) */
while
(
fde_ctx
->
data
+
2
*
4
<
fde_ctx
->
end_data
)
{
if
(
dwarf2_parse_u4
(
fde_ctx
))
{
fde_ctx
->
data
-=
4
;
break
;
}
}
for
(;
fde_ctx
->
data
+
2
*
4
<
fde_ctx
->
end_data
;
fde_ctx
->
data
=
ptr_blk
)
{
/* find the FDE for address addr (skip CIE) */
...
...
@@ -2659,7 +2668,9 @@ static BOOL dwarf2_get_cie(unsigned long addr, struct module* module, DWORD_PTR
cie_ctx
->
end_data
=
cie_ptr
+
4
+
dwarf2_parse_u4
(
cie_ctx
);
if
(
dwarf2_parse_u4
(
cie_ctx
)
!=
cie_id
)
{
FIXME
(
"wrong CIE pointer
\n
"
);
FIXME
(
"wrong CIE pointer at %x from FDE %x
\n
"
,
(
unsigned
)(
cie_ptr
-
start_data
),
(
unsigned
)(
fde_ctx
->
data
-
start_data
));
return
FALSE
;
}
if
(
!
parse_cie_details
(
cie_ctx
,
info
))
return
FALSE
;
...
...
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