mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Let AbstractCorrelatorTest "fail" for unknown exceptions
This commit is contained in:
parent
7d3d6ea46e
commit
2eb96fe613
1 changed files with 3 additions and 2 deletions
|
@ -106,7 +106,8 @@ public abstract class AbstractCorrelatorTest extends AbstractGhidraHeadedIntegra
|
|||
FunctionIterator functions =
|
||||
functionManager.getFunctions(sourceSetThatShouldBeFound, true);
|
||||
for (Function function : functions) {
|
||||
if (function.getBody().getNumAddresses() > ExactMatchBytesProgramCorrelatorFactory.FUNCTION_MINIMUM_SIZE_DEFAULT) {
|
||||
if (function.getBody()
|
||||
.getNumAddresses() > ExactMatchBytesProgramCorrelatorFactory.FUNCTION_MINIMUM_SIZE_DEFAULT) {
|
||||
Address sourceEntryPoint = function.getEntryPoint();
|
||||
Collection<VTAssociation> associations =
|
||||
manager.getRelatedAssociationsBySourceAddress(sourceEntryPoint);
|
||||
|
@ -137,7 +138,7 @@ public abstract class AbstractCorrelatorTest extends AbstractGhidraHeadedIntegra
|
|||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
Msg.error(this, "Unexpected exception", e);
|
||||
errors.add(e.getMessage());
|
||||
}
|
||||
finally {
|
||||
session.release(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue