mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Dataflow: Fix qltest.
This commit is contained in:
@@ -300,6 +300,15 @@ private module Cached {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `arg` flows to `out` through a call using only
|
||||
* value-preserving steps and a single read step, not taking call
|
||||
* contexts into account, thus representing a getter-step.
|
||||
*/
|
||||
predicate getterStep(ArgumentNode arg, Content c, Node out) {
|
||||
argumentValueFlowsThrough(arg, TReadStepTypesSome(_, c, _), out)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `p` can flow to a return node of kind `kind` in the same
|
||||
* callable using only value-preserving steps and possibly a single read
|
||||
|
||||
@@ -6,5 +6,5 @@ import semmle.code.java.dataflow.internal.DataFlowImplSpecific::Private
|
||||
from Node n1, Content f, Node n2
|
||||
where
|
||||
read(n1, f, n2) or
|
||||
argumentValueFlowsThrough(n1, TContentSome(f), n2, _, _)
|
||||
getterStep(n1, f, n2)
|
||||
select n1, n2, f
|
||||
|
||||
Reference in New Issue
Block a user