mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-0: Fixing Mach-O stub processing on blank symbols (Closes #8513)
This commit is contained in:
parent
78008fae1e
commit
1f0bd4a9e2
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue