mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
Find callee through function instantiation
This commit is contained in:
committed by
Chris Smowton
parent
3790c4eb4d
commit
4a9aeacb69
@@ -443,7 +443,8 @@ module Public {
|
||||
*/
|
||||
private DataFlow::Node getACalleeSource(DataFlow::CallNode cn) {
|
||||
result = cn.getCalleeNode() or
|
||||
basicLocalFlowStep(result, getACalleeSource(cn))
|
||||
basicLocalFlowStep(result, getACalleeSource(cn)) or
|
||||
result.asExpr() = getACalleeSource(cn).asExpr().(GenericFunctionInstantiationExpr).getBase()
|
||||
}
|
||||
|
||||
/** A data flow node that represents a call. */
|
||||
|
||||
Reference in New Issue
Block a user