Python: restrict LibraryLambdaMethod

This commit is contained in:
Rasmus Lerchedahl Petersen
2023-12-06 09:00:11 +01:00
parent 17a0029585
commit 453ab9ca7b

View File

@@ -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() }