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
3c2c4437
Commit
3c2c4437
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: Ensure thread->name is null-terminated.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce07be1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tgt_active.c
programs/winedbg/tgt_active.c
+5
-2
No files found.
programs/winedbg/tgt_active.c
View file @
3c2c4437
...
...
@@ -257,9 +257,12 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
dbg_printf
(
"Thread ID=%04lx not in our list of threads -> can't rename
\n
"
,
pThreadName
->
dwThreadID
);
return
DBG_CONTINUE
;
}
if
(
dbg_read_memory
(
pThreadName
->
szName
,
pThread
->
name
,
9
))
dbg_printf
(
"Thread ID=%04lx renamed using MS VC6 extension (name==
\"
%.9s
\"
)
\n
"
,
if
(
dbg_read_memory
(
pThreadName
->
szName
,
pThread
->
name
,
sizeof
(
pThread
->
name
)))
{
pThread
->
name
[
sizeof
(
pThread
->
name
)
-
1
]
=
'\0'
;
dbg_printf
(
"Thread ID=%04lx renamed using MSVC extension (name==
\"
%s
\"
)
\n
"
,
pThread
->
tid
,
pThread
->
name
);
}
return
DBG_CONTINUE
;
case
EXCEPTION_INVALID_HANDLE
:
return
DBG_CONTINUE
;
...
...
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