From 6d2f7cd7f26f1d80cd0f591e1901d7cb40e8979b Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Thu, 18 Apr 2024 16:09:30 -0400 Subject: Base detection rebase navigation improvement Now is able to correctly navigate from raw triage summary to mapped linear view when starting analysis from the identified base address --- examples/triage/baseaddress.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/triage/baseaddress.cpp b/examples/triage/baseaddress.cpp index a20a4755..e50510a8 100644 --- a/examples/triage/baseaddress.cpp +++ b/examples/triage/baseaddress.cpp @@ -288,12 +288,21 @@ void BaseAddressDetectionWidget::RebaseWithFullAnalysis() uiContext->recreateViewFrames(fileContext); fileContext->refreshDataViewCache(); - auto view = frame->getCurrentViewInterface(); + + auto newFrame = ViewFrame::viewFrameForWidget(this); + if (!newFrame) + return; + + auto view = newFrame->getCurrentViewInterface(); if (!view) return; + auto data = view->getData(); + if (!data) + return; + if (!view->navigate(address)) - m_view->Navigate(string("Linear:" + frame->getCurrentDataType().toStdString()), address); + data->Navigate("Linear:Mapped", address); } -- cgit v1.3.1