Skip to content

Commit c03b745

Browse files
authored
Merge pull request github#16115 from hvitved/dataflow/fix-bad-join
Data flow: Fix bad join
2 parents c2f91a5 + 79440f6 commit c03b745

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,15 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
460460
stepFilter(node1, node2)
461461
}
462462

463+
pragma[nomagic]
464+
private predicate hasReadStep(Content c) { read(_, c, _) }
465+
463466
pragma[nomagic]
464467
private predicate storeEx(
465468
NodeEx node1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
466469
) {
467470
storeExUnrestricted(node1, c, node2, contentType, containerType) and
468-
read(_, c, _)
471+
hasReadStep(c)
469472
}
470473

471474
pragma[nomagic]

0 commit comments

Comments
 (0)