mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
python: remove spurious return flow
This commit is contained in:
@@ -4339,11 +4339,6 @@ private module StdlibPrivate {
|
||||
output = "ReturnValue.ListElement" and
|
||||
preservesValue = true
|
||||
or
|
||||
// newly added element returned
|
||||
input = "Argument[0]" and
|
||||
output = "ReturnValue.ListElement" and
|
||||
preservesValue = true
|
||||
or
|
||||
// newly added element added to this
|
||||
input = "Argument[0]" and
|
||||
output = "Argument[self].ListElement" and
|
||||
@@ -4353,11 +4348,6 @@ private module StdlibPrivate {
|
||||
input = "Argument[0]" and
|
||||
output = "Argument[self]" and
|
||||
preservesValue = false
|
||||
or
|
||||
// transfer taint from new element to return value
|
||||
input = "Argument[0]" and
|
||||
output = "ReturnValue" and
|
||||
preservesValue = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4381,11 +4371,6 @@ private module StdlibPrivate {
|
||||
output = "ReturnValue.SetElement" and
|
||||
preservesValue = true
|
||||
or
|
||||
// newly added element returned
|
||||
input = "Argument[0]" and
|
||||
output = "ReturnValue.SetElement" and
|
||||
preservesValue = true
|
||||
or
|
||||
// newly added element added to this
|
||||
input = "Argument[0]" and
|
||||
output = "Argument[self].SetElement" and
|
||||
@@ -4395,11 +4380,6 @@ private module StdlibPrivate {
|
||||
input = "Argument[0]" and
|
||||
output = "Argument[self]" and
|
||||
preservesValue = false
|
||||
or
|
||||
// transfer taint from new element to return value
|
||||
input = "Argument[0]" and
|
||||
output = "ReturnValue" and
|
||||
preservesValue = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user