additional changes due to github #2693

This commit is contained in:
James 2021-01-27 18:03:21 +00:00
parent f7a3bc1853
commit 8f49837efe
3 changed files with 7 additions and 6 deletions

View file

@ -133,7 +133,7 @@ public class PcodeParser extends PcodeCompile {
@Override
public long allocateTemp() {
long base = tempbase;
tempbase = base + 16; // Should be maximum size of a unique
tempbase = base + SleighBase.MAX_UNIQUE_SIZE;
return base;
}

View file

@ -24,6 +24,7 @@ import org.xml.sax.*;
import ghidra.app.plugin.processors.sleigh.SleighException;
import ghidra.app.plugin.processors.sleigh.SleighLanguage;
import ghidra.app.plugin.processors.sleigh.template.*;
import ghidra.pcodeCPort.sleighbase.SleighBase;
import ghidra.pcodeCPort.slgh_compile.PcodeParser;
import ghidra.program.model.lang.InjectPayload.InjectParameter;
import ghidra.program.model.listing.Program;
@ -160,7 +161,7 @@ public class PcodeInjectLibrary {
ConstTpl c = v.getOffset();
long offset = c.getReal();
if (offset >= uniqueBase) {
uniqueBase = offset + 16;
uniqueBase = offset + SleighBase.MAX_UNIQUE_SIZE;
}
}