Skip to content

Commit 2a0c451

Browse files
committed
python: No fieldFlowBranchLimit for SummarizedCallables
Like #15689 for Ruby.
1 parent 45c65b4 commit 2a0c451

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplSpecific.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ module PythonDataFlow implements InputSig {
2222
predicate neverSkipInPathGraph = Private::neverSkipInPathGraph/1;
2323

2424
Node exprNode(DataFlowExpr e) { result = Public::exprNode(e) }
25+
26+
predicate ignoreFieldFlowBranchLimit(DataFlowCallable c) { exists(c.asLibraryCallable()) }
2527
}

python/ql/test/experimental/dataflow/summaries/conflicting_summaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# can be concluded from its definition. This seems to discard all summaries, including
88
# the one with flow to `ReturnValue.Attribute[pattern]`.
99
ensure_tainted(
10-
with_subpath(ts).pattern, # $ MISSING: tainted
10+
with_subpath(ts).pattern, # $ tainted
1111
with_subpath(ts), # $ tainted
1212
with_subpath(ts), # $ tainted
1313
)

0 commit comments

Comments
 (0)