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

Skip to content

Commit ba9caac

Browse files
authored
Merge pull request #4524 from tausbn/python-remove-cartesian-product-in-tkwoverflownode
Python: Remove cartesian product in `TKwOverflowNode`
2 parents 897d8de + 0e2ec0d commit ba9caac

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

python/ql/src/experimental/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private Node update(Node node) {
292292
* `y`. There is a dataflow step from `**{"y": 1, "a": 3}` to `[**d]` to transfer the content and
293293
* a clearing of content at key `y` for node `[**d]`, since that value has been unpacked.
294294
*/
295-
private module ArgumentPassing {
295+
module ArgumentPassing {
296296
/**
297297
* Holds if `call` represents a `DataFlowCall` to a `DataFlowCallable` represented by `callable`.
298298
*

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ newtype TNode =
4949
TKwOverflowNode(CallNode call, CallableValue callable) {
5050
exists(getKeywordOverflowArg(call, callable, _))
5151
or
52+
ArgumentPassing::connects(call, callable) and
5253
exists(call.getNode().getKwargs()) and
5354
callable.getScope().hasKwArg()
5455
} or

0 commit comments

Comments
 (0)