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
ce07be1a
Commit
ce07be1a
authored
Feb 24, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Mar 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Sanity check the dwType field of MSVC thread naming exceptions.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
24c10e70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gdbproxy.c
programs/winedbg/gdbproxy.c
+2
-0
tgt_active.c
programs/winedbg/tgt_active.c
+3
-0
No files found.
programs/winedbg/gdbproxy.c
View file @
ce07be1a
...
...
@@ -485,6 +485,8 @@ static BOOL handle_exception(struct gdb_context* gdbctx, EXCEPTION_DEBUG_INFO* e
char
name
[
9
];
SIZE_T
read
;
if
(
threadname
->
dwType
!=
0x1000
)
return
FALSE
;
if
(
threadname
->
dwThreadID
==
-
1
)
thread
=
dbg_get_thread
(
gdbctx
->
process
,
gdbctx
->
de
.
dwThreadId
);
else
...
...
programs/winedbg/tgt_active.c
View file @
ce07be1a
...
...
@@ -245,6 +245,9 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
break
;
case
EXCEPTION_WINE_NAME_THREAD
:
pThreadName
=
(
const
THREADNAME_INFO
*
)(
rec
->
ExceptionInformation
);
if
(
pThreadName
->
dwType
!=
0x1000
)
return
DBG_EXCEPTION_NOT_HANDLED
;
if
(
pThreadName
->
dwThreadID
==
-
1
)
pThread
=
dbg_curr_thread
;
else
...
...
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