Skip to content

Commit 3eb83fb

Browse files
committed
Fix crash in triage view if binary view has no default platform
1 parent 3496387 commit 3eb83fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/triage/analysisinfo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ void AnalysisInfoWidget::timerExpired()
5555

5656
void AnalysisInfoWidget::updateDisplay()
5757
{
58-
auto callingConvention = m_data->GetDefaultPlatform()->GetDefaultCallingConvention();
58+
auto defaultPlatform = m_data->GetDefaultPlatform();
59+
if (!defaultPlatform)
60+
return;
61+
auto callingConvention = defaultPlatform->GetDefaultCallingConvention();
5962
auto gpRegister = callingConvention->GetGlobalPointerRegister();
6063
std::string gpString, gpExtraString;
6164
if (gpRegister == BN_INVALID_REGISTER)

0 commit comments

Comments
 (0)