Skip to content

Commit c789065

Browse files
committed
Java: Fix missing jump step from PostUpdate to capture.
1 parent 16f2957 commit c789065

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/semmle/code/java/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ private predicate variableCaptureStep(Node node1, ExprNode node2) {
113113
*/
114114
predicate jumpStep(Node node1, Node node2) {
115115
staticFieldStep(node1, node2) or
116-
variableCaptureStep(node1, node2)
116+
variableCaptureStep(node1, node2) or
117+
variableCaptureStep(node1.(PostUpdateNode).getPreUpdateNode(), node2)
117118
}
118119

119120
/**

0 commit comments

Comments
 (0)