Merge remote-tracking branch 'origin/GP-764_ryanmkurtz_objc-stackoverflow'

This commit is contained in:
ghidra1 2021-03-24 10:21:45 -04:00
commit c524ecfbe8

View File

@ -500,7 +500,13 @@ public class ObjectiveC2_DecompilerMessageAnalyzer extends AbstractAnalyzer {
}
else if (dataValue instanceof Address) {
offset = ((Address) dataValue).getOffset();
name = getNameFromOffset(program, offset, input, isClass, isMethod);
if (offset == address.getOffset()) {
// Self-referencing pointer
name = null;
}
else {
name = getNameFromOffset(program, offset, input, isClass, isMethod);
}
}
else {
name = getClassName(program, address);