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
5881d91c
Commit
5881d91c
authored
Sep 27, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid crashing in check_atl_thunk if an execution exception was raised with a bad address.
parent
c88bbd80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
signal_i386.c
dlls/ntdll/signal_i386.c
+15
-3
No files found.
dlls/ntdll/signal_i386.c
View file @
5881d91c
...
...
@@ -828,14 +828,26 @@ struct atl_thunk
*/
static
BOOL
check_atl_thunk
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
{
struct
atl_thunk
*
thunk
=
(
struct
atl_thunk
*
)
rec
->
ExceptionInformation
[
1
];
const
struct
atl_thunk
*
thunk
=
(
const
struct
atl_thunk
*
)
rec
->
ExceptionInformation
[
1
];
BOOL
ret
=
FALSE
;
if
(
thunk
->
movl
!=
0x042444c7
||
thunk
->
jmp
!=
0xe9
)
return
FALSE
;
__TRY
{
if
(
thunk
->
movl
==
0x042444c7
&&
thunk
->
jmp
==
0xe9
)
{
*
((
DWORD
*
)
context
->
Esp
+
1
)
=
thunk
->
this
;
context
->
Eip
=
(
DWORD_PTR
)(
&
thunk
->
func
+
1
)
+
thunk
->
func
;
TRACE
(
"emulating ATL thunk at %p, func=%08lx arg=%08lx
\n
"
,
thunk
,
context
->
Eip
,
*
((
DWORD
*
)
context
->
Esp
+
1
)
);
return
TRUE
;
ret
=
TRUE
;
}
}
__EXCEPT_PAGE_FAULT
{
return
FALSE
;
}
__ENDTRY
return
ret
;
}
...
...
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