Skip to content

Commit bd2d5a4

Browse files
asgerfCopilot
andcommitted
Enhance step function to include valueMustFlow check
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 405e322 commit bd2d5a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎unified/ql/lib/codeql/unified/internal/dataflow/CaptureSsa.qll‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module CaptureSsaInput implements InputSig<Location, BasicBlock> {
7171
node.(BuilderNode).isCallable(callable)
7272
or
7373
exists(Stage2Node prev | callableHasLocalAlias(callable, prev) |
74-
step(prev, any(Step s | s.value() or s.callGraph()), node)
74+
step(prev, any(Step s | s.value() or s.valueMustFlow() or s.callGraph()), node)
7575
or
7676
localSsaStep(prev, node, _)
7777
)

0 commit comments

Comments
 (0)