mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Amend test now that DataFlowCallable != Callable
This commit is contained in:
@@ -17,10 +17,10 @@ string metadata(Locatable l, string key) {
|
||||
|
||||
query predicate missingCallee(DataFlow::CallNode call, FuncDef callee) {
|
||||
metadata(call.asExpr(), "callee") = metadata(callee, "name") and
|
||||
not viableCallable(call.asExpr()).getFuncDef() = callee
|
||||
not viableCallable(call.asExpr()).asCallable().getFuncDef() = callee
|
||||
}
|
||||
|
||||
query predicate spuriousCallee(DataFlow::CallNode call, FuncDef callee) {
|
||||
viableCallable(call.asExpr()).getFuncDef() = callee and
|
||||
viableCallable(call.asExpr()).asCallable().getFuncDef() = callee and
|
||||
not metadata(call.asExpr(), "callee") = metadata(callee, "name")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user