未验证 提交 6667387e 编写于 作者: A Alessandro Arzilli 提交者: GitHub

pkg/proc/native: fix nil pointer dereference in linux backend (#2279)

上级 8462d5c7
......@@ -603,9 +603,10 @@ func (dbp *nativeProcess) stop(trapthread *nativeThread) (*nativeThread, error)
}
if switchTrapthread {
trapthreadID := trapthread.ID
trapthread = nil
for _, th := range dbp.threads {
if th.os.setbp && th.ThreadID() != trapthread.ThreadID() {
if th.os.setbp && th.ThreadID() != trapthreadID {
return th, nil
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册