Skip to content

Commit

Permalink
Merge pull request #16115 from hvitved/dataflow/fix-bad-join
Browse files Browse the repository at this point in the history
Data flow: Fix bad join
  • Loading branch information
hvitved authored Apr 4, 2024
2 parents c2f91a5 + 79440f6 commit c03b745
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,15 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
stepFilter(node1, node2)
}

pragma[nomagic]
private predicate hasReadStep(Content c) { read(_, c, _) }

pragma[nomagic]
private predicate storeEx(
NodeEx node1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
) {
storeExUnrestricted(node1, c, node2, contentType, containerType) and
read(_, c, _)
hasReadStep(c)
}

pragma[nomagic]
Expand Down

0 comments on commit c03b745

Please sign in to comment.