Repository navigation
Rust: Add neutral models for spurious Vec and VecDeque sink models - #22871
Merged
geoffw0 merged 1 commit intoOct 22, 2026
Merged
Conversation
geoffw0
reviewed
Oct 22, 2026
geoffw0
left a comment
Contributor
There was a problem hiding this comment.
I think this is the right approach and the models LGTM. Test cases prove they work. I've started a DCA run (additional CI), which I suspect will show a few real-world FP results disappearing.
geoffw0
approved these changes
Oct 22, 2026
geoffw0
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me. We see a quite significant reduction in false positive results for the cleartext logging query.
Thank you for your contribution! 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The generated standard library models mark
VecDeque::push_back,append,insert,reserveand 18 otherVecDequemethods, together withVec::insert,Vec::removeandVec::swap_remove, aslog-injectionsinks. They appear to come from the panic and out-of-memory messages inside those methods that print a length, capacity or index. As a resultrust/cleartext-loggingreportsqueue.push_back(x)as a write to a log file wheneverqueueis tainted by sensitive data.This adds neutral
sinkmodels for those methods next to the existingsplit_offandFrom::fromones, as in #21375. The neutral rows mirror the generated rows one for one, and every method concerned has onlylog-injectionsink models, so no other sink kind is suppressed.