-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Rust: Improve models for environment sources, expect and unwrap #18605
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
…e see our results.
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.
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
|
The DCA run was uneventful. |
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.
|
Second DCA run also LGTM. |
Modelling work aimed at getting more results on tests.
ResultorOption..expectand more variants of.unwrap.