提交 e1ca2904 编写于 作者: S Skylot

fix: avoid ConcurrentModificationException in EliminatePhiNodes pass

上级 0fa19fb0
package jadx.core.dex.visitors.ssa;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
......@@ -111,7 +112,7 @@ public class EliminatePhiNodes extends AbstractVisitor {
if (assignParentInsn != null) {
assignParentInsn.setResult(newAssignArg);
}
for (RegisterArg useArg : oldSVar.getUseList()) {
for (RegisterArg useArg : new ArrayList<>(oldSVar.getUseList())) {
RegisterArg newUseArg = useArg.duplicate(newRegNum, newSVar);
InsnNode parentInsn = useArg.getParentInsn();
if (parentInsn != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册