mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: restrict LibraryLambdaMethod
This commit is contained in:
@@ -96,9 +96,7 @@ private module LibraryCallbackSummaries {
|
||||
LibraryLambdaMethod() { this = "<library method accepting a callback>" }
|
||||
|
||||
final override CallCfgNode getACall() {
|
||||
exists(ExtractedDataFlowCall call | result.getNode() = call.getNode() |
|
||||
not exists(call.getCallable())
|
||||
)
|
||||
not exists(NormalCall call | result.getNode() = call.getNode())
|
||||
}
|
||||
|
||||
final override ArgumentNode getACallback() { none() }
|
||||
|
||||
Reference in New Issue
Block a user