Compare commits

...

11 commits

3 changed files with 6 additions and 3 deletions

View file

@ -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());

View file

@ -287,6 +287,9 @@ public abstract class AbstractFunctionTypeApplier extends MsDataTypeApplier {
RecordNumber argsRecord = getArgListRecordNumber(type);
AbstractMsType aType = applicator.getTypeRecord(argsRecord);
if (!(aType instanceof AbstractArgumentsListMsType argsList)) {
if (aType instanceof PrimitiveMsType pt && pt.isNoType()) {
return new ArrayList<>();
}
throw new PdbException(
"Expecting arguments list but got: " + aType.getClass().getSimpleName());
}

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME