Skip to content

Commit

Permalink
Merge pull request #16251 from hvitved/dataflow/fix-bad-join2
Browse files Browse the repository at this point in the history
Data flow: Fix a bad join
  • Loading branch information
hvitved authored Apr 19, 2024
2 parents a108fcd + 339c40c commit 18acad5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -4469,6 +4469,12 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
)
}

bindingset[par, ret]
pragma[inline_late]
private predicate summaryCtxStepStar(PathNodeImpl par, PathNodeImpl ret) {
summaryCtxStep*(par) = ret
}

/**
* Holds if `(arg, par, ret, out)` forms a subpath-tuple.
*
Expand All @@ -4483,7 +4489,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
any(PathNodeImpl n | localStepToHidden*(ret, n)), out) and
not par.isHidden() and
not ret.isHidden() and
ret = summaryCtxStep*(par)
summaryCtxStepStar(par, ret)
or
// wrapped subpath using hidden nodes, e.g. flow through a callback inside
// a summarized callable
Expand Down

0 comments on commit 18acad5

Please sign in to comment.