From c99759825aedceb21cb48a67425f4b79f907691b Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 3 Apr 2017 02:16:29 +0200 Subject: [PATCH] Fix another null deref --- src/widgets/memwidget/memorywidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/memwidget/memorywidget.cpp b/src/widgets/memwidget/memorywidget.cpp index bfbcf9be..c47a772e 100644 --- a/src/widgets/memwidget/memorywidget.cpp +++ b/src/widgets/memwidget/memorywidget.cpp @@ -1582,7 +1582,9 @@ bool MemoryWidget::eventFilter(QObject *obj, QEvent *event) { if (jump != "") { if (jump.contains("0x")) { RAnalFunction *fcn = this->main->core->functionAt(jump.toLongLong(0, 16)); - this->main->seek(jump, fcn->name); + if (fcn) { + this->main->seek(jump, fcn->name); + } } else { this->main->seek(this->main->core->cmd("?v " + jump), jump); }