-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C++: Add a taint model for realloc
#14637
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
Conversation
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.
LGTM!
(we should probably wait for the MRVA run to finish before merging) |
Indeed, I'll check up on DCA tomorrow morning before I merge this. I have a feeling this will create some new results on taint-tracking queries. |
Ping me if you'd like an opinion / second opinion on any affected results. |
The new flow exposed some FPs on the |
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.
Changes LGTM. 👍
this.hasGlobalOrStdOrBslName("memset") | ||
or | ||
this.hasGlobalOrStdName("wmemset") | ||
or | ||
this.hasGlobalName([bzero(), "__builtin_memset", "__builtin_memset_chk"]) | ||
this.hasGlobalName([ | ||
bzero(), "__builtin_memset", "__builtin_memset_chk", "RtlZeroMemory", "RtlSecureZeroMemory" |
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.
Notably on some build configurations RtlSecureZeroMemory
is a macro, but it's a macro for memset
and that is modelled already.
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.
Correct. Not in Samate, though 😂!
The two lost results changes on |
…ealloc-taintflow C++: Accept test changes after github/codeql/pull/14637
This should fix some missing results that @jketema was observing on MRVA 🤞