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
f0c93974
Commit
f0c93974
authored
Sep 15, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/dwarf: Detect out of section sibling DIE information.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
34b06f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dwarf.c
dlls/dbghelp/dwarf.c
+6
-0
No files found.
dlls/dbghelp/dwarf.c
View file @
f0c93974
...
@@ -1244,6 +1244,12 @@ static BOOL dwarf2_read_one_debug_info(dwarf2_parse_context_t* ctx,
...
@@ -1244,6 +1244,12 @@ static BOOL dwarf2_read_one_debug_info(dwarf2_parse_context_t* ctx,
if
(
dwarf2_find_attribute
(
ctx
,
di
,
DW_AT_sibling
,
&
sibling
)
&&
if
(
dwarf2_find_attribute
(
ctx
,
di
,
DW_AT_sibling
,
&
sibling
)
&&
traverse
->
data
!=
ctx
->
module_ctx
->
sections
[
ctx
->
section
].
address
+
sibling
.
u
.
uvalue
)
traverse
->
data
!=
ctx
->
module_ctx
->
sections
[
ctx
->
section
].
address
+
sibling
.
u
.
uvalue
)
{
{
if
(
sibling
.
u
.
uvalue
>=
ctx
->
module_ctx
->
sections
[
ctx
->
section
].
size
)
{
FIXME
(
"cursor sibling after section end %s: 0x%lx 0x%x
\n
"
,
dwarf2_debug_ctx
(
ctx
),
sibling
.
u
.
uvalue
,
ctx
->
module_ctx
->
sections
[
ctx
->
section
].
size
);
return
FALSE
;
}
WARN
(
"setting cursor for %s to next sibling <0x%lx>
\n
"
,
WARN
(
"setting cursor for %s to next sibling <0x%lx>
\n
"
,
dwarf2_debug_traverse_ctx
(
traverse
),
sibling
.
u
.
uvalue
);
dwarf2_debug_traverse_ctx
(
traverse
),
sibling
.
u
.
uvalue
);
traverse
->
data
=
ctx
->
module_ctx
->
sections
[
ctx
->
section
].
address
+
sibling
.
u
.
uvalue
;
traverse
->
data
=
ctx
->
module_ctx
->
sections
[
ctx
->
section
].
address
+
sibling
.
u
.
uvalue
;
...
...
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