mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:33:06 +08:00
Merge remote-tracking branch 'origin/Ghidra_12.1'
This commit is contained in:
+12
-1
@@ -89,7 +89,18 @@ public class ObjcMessageAnalyzer extends AbstractAnalyzer {
|
||||
|
||||
@Override
|
||||
public boolean canAnalyze(Program program) {
|
||||
return Objc2Constants.isObjectiveC2(program);
|
||||
if (Objc2Constants.isObjectiveC2(program)) {
|
||||
Memory mem = program.getMemory();
|
||||
if (mem.getBlock(Objc2Constants.OBJC2_STUBS) != null) {
|
||||
return true;
|
||||
}
|
||||
for (Symbol s : program.getSymbolTable().getExternalSymbols()) {
|
||||
if (s.getName().startsWith(Objc1Constants.OBJC_MSG_SEND)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user