Let AbstractCorrelatorTest "fail" for unknown exceptions

This commit is contained in:
caheckman 2022-04-19 20:47:33 -04:00
parent 7d3d6ea46e
commit 2eb96fe613

View file

@ -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);