Skip to content

Commit

Permalink
Fix crash in triage view if binary view has no default platform
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Aug 6, 2024
1 parent 90bc357 commit 393c9b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/triage/analysisinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ void AnalysisInfoWidget::timerExpired()

void AnalysisInfoWidget::updateDisplay()
{
auto callingConvention = m_data->GetDefaultPlatform()->GetDefaultCallingConvention();
auto defaultPlatform = m_data->GetDefaultPlatform();
if (!defaultPlatform)
return;
auto callingConvention = defaultPlatform->GetDefaultCallingConvention();
auto gpRegister = callingConvention->GetGlobalPointerRegister();
std::string gpString, gpExtraString;
if (gpRegister == BN_INVALID_REGISTER)
Expand Down

0 comments on commit 393c9b0

Please sign in to comment.