mirror of
https://github.com/github/codeql.git
synced 2026-04-11 18:14:01 +02:00
Fix CP in typeFlowParamType
Forgot to link `p` with `c` using `nodeEnclosingCallable(p, c)`.
This commit is contained in:
@@ -2115,11 +2115,13 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
|
||||
* context.
|
||||
*/
|
||||
private predicate typeFlowParamType(ParamNode p, Type t, boolean cc) {
|
||||
exists(Callable c |
|
||||
Input::dataFlowNonCallEntry(c, cc) and
|
||||
if cc = true and exists(getSourceContextParameterNodeType(p))
|
||||
then t = getSourceContextParameterNodeType(p)
|
||||
else trackedParamWithType(p, t, c)
|
||||
exists(Callable c | Input::dataFlowNonCallEntry(c, cc) |
|
||||
cc = true and
|
||||
nodeEnclosingCallable(p, c) and
|
||||
t = getSourceContextParameterNodeType(p)
|
||||
or
|
||||
(cc = false or not exists(getSourceContextParameterNodeType(p))) and
|
||||
trackedParamWithType(p, t, c)
|
||||
)
|
||||
or
|
||||
exists(Type t1, Type t2 |
|
||||
|
||||
Reference in New Issue
Block a user