Skip to content

Commit 3b558a0

Browse files
committed
python: remove spurious return flow
1 parent 38cca08 commit 3b558a0

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4339,11 +4339,6 @@ private module StdlibPrivate {
43394339
output = "ReturnValue.ListElement" and
43404340
preservesValue = true
43414341
or
4342-
// newly added element returned
4343-
input = "Argument[0]" and
4344-
output = "ReturnValue.ListElement" and
4345-
preservesValue = true
4346-
or
43474342
// newly added element added to this
43484343
input = "Argument[0]" and
43494344
output = "Argument[self].ListElement" and
@@ -4353,11 +4348,6 @@ private module StdlibPrivate {
43534348
input = "Argument[0]" and
43544349
output = "Argument[self]" and
43554350
preservesValue = false
4356-
or
4357-
// transfer taint from new element to return value
4358-
input = "Argument[0]" and
4359-
output = "ReturnValue" and
4360-
preservesValue = false
43614351
}
43624352
}
43634353

@@ -4381,11 +4371,6 @@ private module StdlibPrivate {
43814371
output = "ReturnValue.SetElement" and
43824372
preservesValue = true
43834373
or
4384-
// newly added element returned
4385-
input = "Argument[0]" and
4386-
output = "ReturnValue.SetElement" and
4387-
preservesValue = true
4388-
or
43894374
// newly added element added to this
43904375
input = "Argument[0]" and
43914376
output = "Argument[self].SetElement" and
@@ -4395,11 +4380,6 @@ private module StdlibPrivate {
43954380
input = "Argument[0]" and
43964381
output = "Argument[self]" and
43974382
preservesValue = false
4398-
or
4399-
// transfer taint from new element to return value
4400-
input = "Argument[0]" and
4401-
output = "ReturnValue" and
4402-
preservesValue = false
44034383
}
44044384
}
44054385
}

0 commit comments

Comments
 (0)