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
6eff0342
Commit
6eff0342
authored
Mar 09, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Don't dereference possibly NULL thread pointer.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e137becb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gdbproxy.c
programs/winedbg/gdbproxy.c
+2
-2
No files found.
programs/winedbg/gdbproxy.c
View file @
6eff0342
...
...
@@ -112,11 +112,11 @@ struct gdb_context
static
void
gdbctx_delete_xpoint
(
struct
gdb_context
*
gdbctx
,
struct
dbg_thread
*
thread
,
dbg_ctx_t
*
ctx
,
struct
gdb_xpoint
*
x
)
{
struct
dbg_process
*
process
=
thread
->
process
;
struct
dbg_process
*
process
=
gdbctx
->
process
;
struct
backend_cpu
*
cpu
=
process
->
be_cpu
;
if
(
!
cpu
->
remove_Xpoint
(
process
->
handle
,
process
->
process_io
,
ctx
,
x
->
type
,
x
->
addr
,
x
->
value
,
x
->
size
))
ERR
(
"%04x:%04x: Couldn't remove breakpoint at:%p/%x type:%d
\n
"
,
process
->
pid
,
thread
->
tid
,
x
->
addr
,
x
->
size
,
x
->
type
);
ERR
(
"%04x:%04x: Couldn't remove breakpoint at:%p/%x type:%d
\n
"
,
process
->
pid
,
thread
?
thread
->
tid
:
~
0
,
x
->
addr
,
x
->
size
,
x
->
type
);
list_remove
(
&
x
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
x
);
...
...
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