Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
83c30a55
Commit
83c30a55
authored
Aug 09, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Made stabs parsing a bit more robust.
Enhance dbghelp's robustness against bogus stabs sections found in meetro.exe (as reported by Jan Zerebecki).
parent
95d057a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
stabs.c
dlls/dbghelp/stabs.c
+9
-5
symbol.c
dlls/dbghelp/symbol.c
+1
-0
No files found.
dlls/dbghelp/stabs.c
View file @
83c30a55
...
...
@@ -1327,13 +1327,17 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
stabs_parse_type
(
ptr
));
break
;
case
N_LBRAC
:
block
=
symt_open_func_block
(
module
,
curr_func
,
block
,
stab_ptr
->
n_value
,
0
);
pending_flush
(
&
pending
,
module
,
curr_func
,
block
);
if
(
curr_func
)
{
block
=
symt_open_func_block
(
module
,
curr_func
,
block
,
stab_ptr
->
n_value
,
0
);
pending_flush
(
&
pending
,
module
,
curr_func
,
block
);
}
break
;
case
N_RBRAC
:
block
=
symt_close_func_block
(
module
,
curr_func
,
block
,
stab_ptr
->
n_value
);
if
(
curr_func
)
block
=
symt_close_func_block
(
module
,
curr_func
,
block
,
stab_ptr
->
n_value
);
break
;
case
N_PSYM
:
/* These are function parameters. */
...
...
dlls/dbghelp/symbol.c
View file @
83c30a55
...
...
@@ -365,6 +365,7 @@ struct symt_block* symt_close_func_block(struct module* module,
struct
symt_function
*
func
,
struct
symt_block
*
block
,
unsigned
pc
)
{
assert
(
func
);
assert
(
func
->
symt
.
tag
==
SymTagFunction
);
if
(
pc
)
block
->
size
=
func
->
address
+
pc
-
block
->
address
;
...
...
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