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
e8777691
Commit
e8777691
authored
Feb 01, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Be stricter about sizes while walking module's list.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
cda616d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pdb.c
tools/winedump/pdb.c
+3
-0
No files found.
tools/winedump/pdb.c
View file @
e8777691
...
...
@@ -637,6 +637,9 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
/* Read per-module symbol / linenumber tables */
file
=
(
const
char
*
)
symbols
+
sizeof
(
PDB_SYMBOLS
);
while
(
file
-
(
const
char
*
)
symbols
<
sizeof
(
PDB_SYMBOLS
)
+
symbols
->
module_size
)
while
((
file
-
(
const
char
*
)
symbols
+
sizeof
(
symbols
->
version
)
<
sizeof
(
PDB_SYMBOLS
)
+
symbols
->
module_size
)
&&
(
file
-
(
const
char
*
)
symbols
+
symbols
->
version
<
19970000
?
sizeof
(
PDB_SYMBOL_FILE
)
:
sizeof
(
PDB_SYMBOL_FILE_EX
))
<
sizeof
(
PDB_SYMBOLS
)
+
symbols
->
module_size
)
{
int
stream_nr
,
symbol_size
,
lineno_size
,
lineno2_size
;
const
char
*
file_name
;
...
...
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