mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-2744 correct ELF symbol table processing in absence of associated string table
This commit is contained in:
parent
4bb4683ba2
commit
2803472278
15 changed files with 158 additions and 77 deletions
|
@ -19,6 +19,8 @@ import java.io.IOException;
|
|||
import java.util.*;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import db.*;
|
||||
import generic.FilteredIterator;
|
||||
import ghidra.program.database.DBObjectCache;
|
||||
|
@ -356,7 +358,7 @@ public class FunctionManagerDB implements FunctionManager {
|
|||
throw new OverlappingFunctionException(entryPoint);
|
||||
}
|
||||
|
||||
if (name == null || name.length() == 0 ||
|
||||
if (StringUtils.isBlank(name) ||
|
||||
SymbolUtilities.isReservedDynamicLabelName(name, program.getAddressFactory())) {
|
||||
source = SourceType.DEFAULT;
|
||||
name = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue