Skip to content

Commit 112e7c9

Browse files
committed
Python: all dict constructor args are relevant
1 parent 4dbb15d commit 112e7c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4219,7 +4219,7 @@ module StdlibPrivate {
42194219

42204220
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
42214221
exists(DataFlow::DictionaryElementContent dc, string key | key = dc.getKey() |
4222-
input = "Argument[0].DictionaryElement[" + key + "]" and
4222+
input = "Argument[0..].DictionaryElement[" + key + "]" and
42234223
output = "ReturnValue.DictionaryElement[" + key + "]" and
42244224
preservesValue = true
42254225
)
@@ -4230,7 +4230,7 @@ module StdlibPrivate {
42304230
preservesValue = true
42314231
)
42324232
or
4233-
input = "Argument[0]" and
4233+
input = "Argument[0..]" and
42344234
output = "ReturnValue" and
42354235
preservesValue = false
42364236
}

0 commit comments

Comments
 (0)