GP-2744 correct ELF symbol table processing in absence of associated string table

This commit is contained in:
ghidra1 2022-10-21 12:44:04 -04:00
parent 4bb4683ba2
commit 2803472278
15 changed files with 158 additions and 77 deletions

View file

@ -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 = "";