Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 1dbba52

Browse files
committed
More gracefully handle exceptions during structure analysis
Resolves: https://github.com/jonpalmisc/ObjectiveNinja/issues/16
1 parent 55c29b0 commit 1dbba52

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/StructureAnalyzer.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,13 @@ void StructureAnalyzer::runPrivate()
467467
AnalysisRecords StructureAnalyzer::run(BinaryViewRef bv)
468468
{
469469
StructureAnalyzer analyzer(std::move(bv));
470-
analyzer.runPrivate();
470+
471+
try {
472+
analyzer.runPrivate();
473+
} catch (...) {
474+
LogError("ObjectiveNinja: Exception during structure analysis; please report this issue!");
475+
LogError("ObjectiveNinja: Structure analysis failed.");
476+
}
471477

472478
return analyzer.m_records;
473479
}

0 commit comments

Comments
 (0)