Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 453ab9c

Browse files
committed
Python: restrict LibraryLambdaMethod
1 parent 17a0029 commit 453ab9c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

python/ql/lib/semmle/python/dataflow/new/FlowSummary.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ private module LibraryCallbackSummaries {
9696
LibraryLambdaMethod() { this = "<library method accepting a callback>" }
9797

9898
final override CallCfgNode getACall() {
99-
exists(ExtractedDataFlowCall call | result.getNode() = call.getNode() |
100-
not exists(call.getCallable())
101-
)
99+
not exists(NormalCall call | result.getNode() = call.getNode())
102100
}
103101

104102
final override ArgumentNode getACallback() { none() }

0 commit comments

Comments
 (0)