mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0: Fixing Mach-O stub processing on blank symbols (Closes #8513)
This commit is contained in:
@@ -685,11 +685,11 @@ public class MachoProgramBuilder {
|
||||
int symbolIndex = indirectSymbols.get(i);
|
||||
NList symbol = symbolTableCommand.getSymbolAt(symbolIndex);
|
||||
String name = null;
|
||||
if (symbol != null) {
|
||||
if (symbol != null && !symbol.getString().isBlank()) {
|
||||
name = SymbolUtilities.replaceInvalidChars(symbol.getString(), true);
|
||||
}
|
||||
Function stubFunc = createOneByteFunction(program, name, startAddr);
|
||||
if (stubFunc != null && symbol != null) {
|
||||
if (stubFunc != null && name != null) {
|
||||
ExternalLocation loc = program.getExternalManager()
|
||||
.addExtLocation(Library.UNKNOWN, name, null, SourceType.IMPORTED);
|
||||
stubFunc.setThunkedFunction(loc.createFunction());
|
||||
|
||||
Reference in New Issue
Block a user