Skip to content

Commit

Permalink
Data flow: Fix bad join
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Apr 18, 2024
1 parent 77d0df4 commit 339c40c
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 339c40c

Please sign in to comment.