Ghidra is a software reverse engineering (SRE) framework
GP-4952: Iterate in the correct direction.
Dan447f6e6f0149
diff --git a/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ValueLocation.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ValueLocation.javaindex caa24b7883..6ba28fc57c 100644--- a/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ValueLocation.java+++ b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/ValueLocation.java@@ -4,9 +4,9 @@* Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at- *+ ** http://www.apache.org/licenses/LICENSE-2.0- *+ ** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.@@ -170,7 +170,7 @@ public class ValueLocation {ListIterator<Varnode> itB = that.nodes.listIterator(that.nodeCount());Varnode[] result = new Varnode[Math.max(this.nodeCount(), that.nodeCount())];int i = result.length;- while (itA.hasNext() && itB.hasPrevious()) {+ while (itA.hasPrevious() && itB.hasPrevious()) {Varnode vnA = itA.previous();Varnode vnB = itB.previous();if (vnA.getSize() != vnB.getSize()) {