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

C++: Reduce duplication incpp/uncontrolled-process-operation#20059

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

Conversation

MathiasVP
Copy link
Contributor

Having bothasExpr() andasIndirectExpr() doesn't appear to change any results. This was a leftover from back when we ported the default-taint-tracking queries over, and we still had a few remaining bugs inasExpr andasIndirectExpr, and probably some remaining pointer sources that needed to be converted to pointee sources.

I've manually verified that all the removed results from DCA are due to deduplication.

@CopilotCopilotAI review requested due to automatic review settingsJuly 15, 2025 15:58
@MathiasVPMathiasVP requested a review froma team as acode ownerJuly 15, 2025 15:58
@MathiasVPMathiasVP added the no-change-note-requiredThis PR does not need a change note labelJul 15, 2025
Copy link
Contributor

@CopilotCopilotAI 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 simplifies theUncontrolledProcessOperation.ql query by removing redundant code that was checking for process operation arguments using both direct and indirect expression patterns. The change eliminates duplication by keeping only theasIndirectExpr() method, as having both methods doesn't change the query results and was a leftover from earlier porting work.

Key Changes

  • Removed redundant expression matching pattern in process operation detection
  • Simplified argument matching to use only indirect expressions

Copy link
Contributor

@jketemajketema left a comment

Choose a reason for hiding this comment

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

LGTM

@jketemajketema merged commit58aa758 intogithub:mainJul 15, 2025
16 of 17 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@jketemajketemajketema approved these changes

Assignees
No one assigned
Labels
C++no-change-note-requiredThis PR does not need a change note
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@MathiasVP@jketema

[8]ページ先頭

©2009-2025 Movatter.jp