Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Jan 8, 2026

Based on triaging some MISSING tags:

  • Fixes some Argument[Self] -> Argument[self] typos.
  • Removes the incorrect manual models for as_mut_os_string and into_os_string; the generated models are accurate.
  • Adds various other models.

DCA is fine.

@github-actions github-actions bot added documentation Rust Pull requests that update Rust code labels Jan 8, 2026
}

private class ImplicitDerefOutNode extends ImplicitDerefNode, OutNode {
private DataFlowCall call;

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
bindingset[derefChain, borrow, strippedTypePath, strippedType]
private predicate hasNoCompatibleNonBlanketLikeTargetCheck(
string derefChain, BorrowKind borrow, TypePath strippedTypePath, Type strippedType
DerefChain derefChain, BorrowKind borrow, TypePath strippedTypePath, Type strippedType

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for borrow, or derefChain, or path, but the QLDoc mentions unknown
@hvitved hvitved force-pushed the rust/fix-path-models branch from 2acbb4d to 33a698e Compare January 8, 2026 12:54
@hvitved hvitved changed the title Rust: Fix some models in fs.model.yml Rust: Improve/add some path models Jan 8, 2026
@hvitved hvitved changed the title Rust: Improve/add some path models Rust: Improve/add various models Jan 8, 2026
@hvitved hvitved force-pushed the rust/fix-path-models branch from d1a2295 to 9661b43 Compare January 9, 2026 11:28
@hvitved hvitved force-pushed the rust/fix-path-models branch from 9661b43 to f3d78a4 Compare January 9, 2026 13:40
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Jan 12, 2026
@hvitved hvitved marked this pull request as ready for review January 12, 2026 08:06
@hvitved hvitved requested a review from a team as a code owner January 12, 2026 08:06
@hvitved hvitved requested review from Copilot and geoffw0 January 12, 2026 08:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves Rust dataflow models by fixing typos and adding missing models based on triaging MISSING tags in test expectations.

Changes:

  • Fixes Argument[Self]Argument[self] typos in fs.model.yml
  • Removes incorrect manual models for as_mut_os_string and into_os_string (relying on generated models instead)
  • Adds new models for HTTP response body accessors, stdin read_line, Path/OsStr methods, Vec/slice deref, and borrow::Cow::to_mut

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
rust/ql/lib/codeql/rust/frameworks/stdlib/io.model.yml Adds stdin read_line taint model
rust/ql/lib/codeql/rust/frameworks/stdlib/fs.model.yml Fixes Self→self typos, removes incorrect manual models, adds missing Path methods
rust/ql/lib/codeql/rust/frameworks/stdlib/ffi.model.yml Adds OsStr to_str, to_string_lossy, as_encoded_bytes models
rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.yml Adds slice get model
rust/ql/lib/codeql/rust/frameworks/stdlib/alloc.model.yml Adds Vec deref model, Cow::to_mut model
rust/ql/lib/codeql/rust/frameworks/http.model.yml Adds Response body accessors
rust/ql/test/query-tests/security/CWE-295/* Updates test expectations (auto-generated)
rust/ql/test/query-tests/security/CWE-117/* Updates test expectations (auto-generated)
rust/ql/test/library-tests/dataflow/sources/net/* Updates test expectations (auto-generated)
rust/ql/test/library-tests/dataflow/sources/file/* Updates test expectations (auto-generated)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant