New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: container summaries, part 3 #13395
Conversation
For append/add: The new results in the experimental tar slip query show that we do not recognize the sanitisers.
4b4b9bf
to
b72c93f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice to see so many MISSING: being fixed
| // existing elements | ||
| input = "Argument[self].ListElement" and | ||
| output = "ReturnValue.ListElement" and | ||
| preservesValue = true | ||
| or | ||
| // newly added element returned | ||
| input = "Argument[0]" and | ||
| output = "ReturnValue.ListElement" and | ||
| preservesValue = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see list.append having a return value. What are these flows about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, not sure where I got this from. Neither the linked documentation nor a local experiment agrees with this..
| // transfer taint from new element to return value | ||
| input = "Argument[0]" and | ||
| output = "ReturnValue" and | ||
| preservesValue = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this
| // existing elements | ||
| input = "Argument[self].SetElement" and | ||
| output = "ReturnValue.SetElement" and | ||
| preservesValue = true | ||
| or | ||
| // newly added element returned | ||
| input = "Argument[0]" and | ||
| output = "ReturnValue.SetElement" and | ||
| preservesValue = true | ||
| or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, set.add doesn't seem to have a return value when I try it out in a real ipython scenario
| or | ||
| // transfer taint from new element to return value | ||
| input = "Argument[0]" and | ||
| output = "ReturnValue" and | ||
| preservesValue = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
| // existing elements | ||
| input = "Argument[self].ListElement" and | ||
| output = "ReturnValue.ListElement" and | ||
| preservesValue = true | ||
| or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like you missed these two?
| // existing elements | |
| input = "Argument[self].ListElement" and | |
| output = "ReturnValue.ListElement" and | |
| preservesValue = true | |
| or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thanks :-)
| // existing elements | ||
| input = "Argument[self].SetElement" and | ||
| output = "ReturnValue.SetElement" and | ||
| preservesValue = true | ||
| or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like you missed these two?
| // existing elements | |
| input = "Argument[self].SetElement" and | |
| output = "ReturnValue.SetElement" and | |
| preservesValue = true | |
| or |
`set.add` and `list.append` do not return a value
In which we remove the final explicit taint steps from
containerStep.