diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/PcodeEmit.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/PcodeEmit.java index 45a1227cb0..dd1220a6ac 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/PcodeEmit.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/PcodeEmit.java @@ -504,6 +504,10 @@ public abstract class PcodeEmit { VarnodeData[] dyncache = null; VarnodeTpl vn, outvn; int isize = opt.getInput().length; + + if (isize > incache.length) { + incache = new VarnodeData[isize]; + } // First build all the inputs for (int i = 0; i < isize; ++i) {