Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Diff-informed queries: phase 3 (non-trivial locations)#19957

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
d10c wants to merge96 commits intogithub:main
base:main
Choose a base branch
Loading
fromd10c:d10c/diff-informed-phase-3

Conversation

d10c
Copy link
Contributor

@d10cd10c commentedJul 2, 2025
edited
Loading

This PR enables diff-informed mode on queries that select a location other than dataflow source or sink. This entails adding a non-trivial location override that returns the locations that are actually selected.

Prior work includes PRs like#19663,#19759, and#19817. This PR uses the same patch script as those PRs to find candidate queries to convert to diff-enabled. This is the final step in mass-enabling diff-informed queries on all the languages.

Commit-by-commit reviewing is recommended.

  • I have split the commits that add/modify tests from the ones that enable/disable diff-informed queries.
  • If the commit modifies a .qll file, in the commit message I've included links to the queries that depend on that .qll for easier reviewing.
  • Feel free to delegate parts of the review to others who may be more specialized in certain languages.

Potentially tricky cases:

@github-actionsgithub-actionsbot added C# JS C++ Java Python Go Ruby RustPull requests that update Rust code Swift ActionsAnalysis of GitHub Actions labelsJul 2, 2025
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch fromff3a4b9 to95fe462CompareJuly 3, 2025 15:50
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch 3 times, most recently fromaff62c2 to6d0ae3aCompareJuly 4, 2025 14:20
@@ -0,0 +1 @@
experimental/Security/CWE-208/TimingAttackAgainstHash/TimingAttackAgainstHash.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch 2 times, most recently fromc871f5e to276c7f0CompareJuly 7, 2025 09:42
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch 2 times, most recently fromcb2db2f toc70036dCompareJuly 8, 2025 15:30
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch fromc70036d to08c4cc2CompareJuly 9, 2025 16:47
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch 2 times, most recently from857b583 to3e3e856CompareJuly 11, 2025 12:49
@d10c
Copy link
ContributorAuthor

DCA results: some slowdowns on Python, but they don't seem to be related to these changes. Java had some timeout-related failures, so I'll restart that. Overall, no negative performance impact on empty-diff.

@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch 2 times, most recently from443655d to5112a9cCompareJuly 16, 2025 15:36
d10c added26 commitsJuly 17, 2025 10:55
@d10cd10cforce-pushed thed10c/diff-informed-phase-3 branch from5112a9c to085720aCompareJuly 17, 2025 08:57
@michaelnebel
Copy link
Contributor

This is a very large diff for a single PR. Would it be a lot of extra work to split this into one PR per language? Then it will also be possible to merge a bit at the time (there might be issues with getting DCA running successfully for this many languages and it will be a shame to block merging changes while waiting for DCA/review for other languages).

@d10c
Copy link
ContributorAuthor

Sure, I can split it off into separate PRs per language.

@michaelnebel
Copy link
Contributor

Sure, I can split it off into separate PRs per language.

Thank you - that will be really appreciated. You also structured the commits very nicely, so it seems doable 😄

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

@cklincklincklin left review comments

@michaelnebelmichaelnebelAwaiting requested review from michaelnebel

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
ActionsAnalysis of GitHub ActionsC#C++GoJavaJSPythonRubyRustPull requests that update Rust codeSwift
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@d10c@cklin@michaelnebel

[8]ページ先頭

©2009-2025 Movatter.jp