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
4220cd66
Commit
4220cd66
authored
Mar 19, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: When parsing .debug_line section in dwarf debug info, protect against…
dbghelp: When parsing .debug_line section in dwarf debug info, protect against out of bounds indexes.
parent
eb5bfad1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dwarf.c
dlls/dbghelp/dwarf.c
+10
-0
No files found.
dlls/dbghelp/dwarf.c
View file @
4220cd66
...
...
@@ -2116,6 +2116,11 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
if
(
sections
[
section_line
].
address
==
IMAGE_NO_MAP
)
return
FALSE
;
if
(
offset
+
4
>
sections
[
section_line
].
size
)
{
WARN
(
"out of bounds offset
\n
"
);
return
FALSE
;
}
traverse
.
data
=
sections
[
section_line
].
address
+
offset
;
traverse
.
end_data
=
traverse
.
data
+
4
;
traverse
.
word_size
=
ctx
->
module
->
format_info
[
DFI_DWARF
]
->
u
.
dwarf2_info
->
word_size
;
...
...
@@ -2123,6 +2128,11 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
length
=
dwarf2_parse_u4
(
&
traverse
);
traverse
.
end_data
=
sections
[
section_line
].
address
+
offset
+
length
;
if
(
offset
+
4
+
length
>
sections
[
section_line
].
size
)
{
WARN
(
"out of bounds header
\n
"
);
return
FALSE
;
}
version
=
dwarf2_parse_u2
(
&
traverse
);
header_len
=
dwarf2_parse_u4
(
&
traverse
);
insn_size
=
dwarf2_parse_byte
(
&
traverse
);
...
...
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