mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DfaMemoryStateImpl: fix SOE when canonicalizing the stack value (EA-139129)
This commit is contained in:
+1
@@ -1491,6 +1491,7 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
EqClass eqClass = variable.getDependentVariables().isEmpty() ? null : getEqClass(variable);
|
||||
DfaVariableValue newCanonical =
|
||||
eqClass == null ? null : StreamEx.of(eqClass.getVariables(false)).without(variable).min(EqClass.CANONICAL_VARIABLE_COMPARATOR)
|
||||
.filter(candidate -> !candidate.dependsOn(variable))
|
||||
.orElse(null);
|
||||
myStack.replaceAll(value -> handleStackValueOnVariableFlush(value, variable, newCanonical));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user