mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
af5e744570
4 changed files with 5287 additions and 1111 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue