mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
additional changes due to github #2693
This commit is contained in:
parent
f7a3bc1853
commit
8f49837efe
3 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue