Skip to content

Commit 5042fde

Browse files
committed
Remove imprecise model for list()
1 parent 04341c4 commit 5042fde

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4244,15 +4244,9 @@ module StdlibPrivate {
42444244
)
42454245
// TODO: Once we have DictKeyContent, we need to transform that into ListElementContent
42464246
) and
4247-
(
4248-
// Element content is mutated into list element content
4249-
output = "ReturnValue.ListElement" and
4250-
preservesValue = true
4251-
or
4252-
// Since list content is imprecise, we also taint the list.
4253-
output = "ReturnValue" and
4254-
preservesValue = false
4255-
)
4247+
// Element content is mutated into list element content
4248+
output = "ReturnValue.ListElement" and
4249+
preservesValue = true
42564250
or
42574251
input = "Argument[0]" and
42584252
output = "ReturnValue" and

0 commit comments

Comments
 (0)