Rust: Improve models for environment sources, expect and unwrap#18605
Merged
geoffw0 merged 9 commits intogithub:mainfrom Jan 29, 2025
Merged
Rust: Improve models for environment sources, expect and unwrap#18605geoffw0 merged 9 commits intogithub:mainfrom
geoffw0 merged 9 commits intogithub:mainfrom
Conversation
…e see our results.
Contributor
There was a problem hiding this comment.
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (5)
rust/ql/test/library-tests/dataflow/local/main.rs:241
- This new test code is missing a hasValueFlow check, indicating incomplete coverage for the value flow from 48. Please add or update the test annotation.
sink(s2.unwrap_or_else(|| source(48))); // $ MISSING: hasValueFlow=48
rust/ql/test/library-tests/dataflow/local/main.rs:268
- An empty string is an uninformative error message; consider providing a descriptive message.
sink(s1.expect("")); // $ hasValueFlow=78
rust/ql/test/library-tests/dataflow/local/main.rs:269
- An empty string is an uninformative error message; consider providing a descriptive message.
sink(s1.expect_err(""));
rust/ql/test/library-tests/dataflow/local/main.rs:272
- An empty string is an uninformative error message; consider providing a descriptive message.
sink(s2.expect(""));
rust/ql/test/library-tests/dataflow/local/main.rs:273
- An empty string is an uninformative error message; consider providing a descriptive message.
sink(s2.expect_err("")); // $ hasValueFlow=79
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
geoffw0
commented
Jan 28, 2025
Contributor
Author
|
The DCA run was uneventful. |
hvitved
reviewed
Jan 28, 2025
rust/ql/test/query-tests/security/CWE-312/CleartextLogging.expected
Outdated
Show resolved
Hide resolved
Rust: Fix data flow through callbacks passed to library functions
…the output MaD IDs.
Contributor
Author
|
Second DCA run also LGTM. |
hvitved
approved these changes
Jan 28, 2025
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.
Modelling work aimed at getting more results on tests.
ResultorOption..expectand more variants of.unwrap.