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

Commit

Permalink
More gracefully handle exceptions during structure analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpalmisc committed Jan 15, 2022
1 parent 55c29b0 commit 1dbba52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/StructureAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,13 @@ void StructureAnalyzer::runPrivate()
AnalysisRecords StructureAnalyzer::run(BinaryViewRef bv)
{
StructureAnalyzer analyzer(std::move(bv));
analyzer.runPrivate();

try {
analyzer.runPrivate();
} catch (...) {
LogError("ObjectiveNinja: Exception during structure analysis; please report this issue!");
LogError("ObjectiveNinja: Structure analysis failed.");
}

return analyzer.m_records;
}

0 comments on commit 1dbba52

Please sign in to comment.