Skip to content

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Apr 1, 2020

Trying to close https://jira.semmle.com/browse/CPP-406, I noticed that a proper test of taint through a user defined swap function was missing.

We still get a false positive in the AST taint tracking (same as for the modelled std::swap) - which I think I can tolerate - and the IR taint tracking doesn't seem to follow data through the swap at all. @rdmarsh2 can you comment on this perhaps? (I'm not even sure what state the IR taint tracking is supposed to be in)

@geoffw0 geoffw0 added the C++ label Apr 1, 2020
@geoffw0 geoffw0 requested a review from a team as a code owner April 1, 2020 17:17
Copy link
Contributor

@rdmarsh2 rdmarsh2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IR taint tracking needs flow through outparams (#2704) to handle this, but it should be precise once that's included. That PR needs some more performance work and changes to some internal tests, so I'll merge this now and pick it up when I merge master into #2704 again.

@rdmarsh2 rdmarsh2 merged commit bbb69d5 into github:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants