Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2025-04-28 15:27:24 -04:00
commit af5e744570
4 changed files with 5287 additions and 1111 deletions

View file

@ -434,6 +434,10 @@ public class RecoveredClassHelper {
Function calledFunction = extendedFlatAPI
.getReferencedFunction(instruction.getMinAddress(), getThunkedFunction);
if (calledFunction == null) {
continue;
}
// include the null functions in map so things using map can get accurate count
// of number of CALL instructions even if the call reg type
functionCallMap.put(instruction.getMinAddress(), calledFunction);
@ -2112,6 +2116,10 @@ public class RecoveredClassHelper {
Function constructor =
extendedFlatAPI.getReferencedFunction(constructorReference, true);
if (constructor == null) {
continue;
}
if (recoveredClass.getIndeterminateList().contains(constructor)) {
addConstructorToClass(recoveredClass, constructor);
recoveredClass.removeIndeterminateConstructorOrDestructor(constructor);
@ -2534,6 +2542,9 @@ public class RecoveredClassHelper {
RecoveredClass recoveredClass = referenceToClassMap.get(destructorReference);
Function destructor = extendedFlatAPI.getReferencedFunction(destructorReference, true);
if (destructor == null) {
continue;
}
if (recoveredClass.getIndeterminateList().contains(destructor)) {
addDestructorToClass(recoveredClass, destructor);