Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Apr 1, 2025

The consistency check phiWithoutTwoPriorRefs revealed that we were creating too many pseudo reads of captured variables at calls. Instead of checking that a call can be reached from some write, in order to be considered relevant, we instead need to check that it is dominated by some write.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Apr 1, 2025
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Apr 1, 2025
@hvitved hvitved marked this pull request as ready for review April 1, 2025 19:00
Copilot AI review requested due to automatic review settings April 1, 2025 19:00
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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (5)
  • rust/ql/lib/codeql/rust/dataflow/Ssa.qll: Language not supported
  • rust/ql/lib/codeql/rust/dataflow/internal/SsaImpl.qll: Language not supported
  • rust/ql/test/library-tests/variables/Ssa.expected: Language not supported
  • rust/ql/test/query-tests/security/CWE-089/CONSISTENCY/SsaConsistency.expected: Language not supported
  • shared/ssa/codeql/ssa/Ssa.qll: Language not supported

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@hvitved hvitved requested a review from paldepind April 1, 2025 19:01
Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

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

LGTM!

@hvitved hvitved merged commit a01b211 into github:main Apr 2, 2025
42 checks passed
@hvitved hvitved deleted the rust/ssa-capture-psudeo-read-dominate branch April 2, 2025 17:16
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.

2 participants