Skip to content

Commit 92da0ef

Browse files
committed
GUI: added check for valid memory address of thread entry
1 parent cc162e4 commit 92da0ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

x64_dbg_gui/Project/Src/Gui/ThreadView.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ void ThreadView::contextMenuSlot(const QPoint & pos)
1414
wMenu->addAction(mKillThread);
1515
wMenu->addSeparator();
1616
wMenu->addMenu(mSetPriority);
17-
wMenu->addSeparator();
18-
wMenu->addAction(mGoToThreadEntry);
17+
bool ok;
18+
ULONGLONG entry = getCellContent(getInitialSelection(), 2).toULongLong(&ok, 16);
19+
if(ok && DbgMemIsValidReadPtr(entry))
20+
{
21+
wMenu->addSeparator();
22+
wMenu->addAction(mGoToThreadEntry);
23+
}
1924
wMenu->addSeparator();
2025
QMenu wCopyMenu("&Copy", this);
2126
setupCopyMenu(&wCopyMenu);

0 commit comments

Comments
 (0)