Skip to content

Conversation

@jketema
Copy link
Contributor

@jketema jketema commented Apr 30, 2025

No description provided.

@github-actions github-actions bot added the C++ label Apr 30, 2025
@jketema jketema added the no-change-note-required This PR does not need a change note label Apr 30, 2025
@jketema jketema marked this pull request as ready for review April 30, 2025 22:21
Copilot AI review requested due to automatic review settings April 30, 2025 22:21
@jketema jketema requested a review from a team as a code owner April 30, 2025 22:21
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 refines the CastArrayPointerArithmetic dataflow query by preventing flow through both source and sink nodes and updates the expected test outputs accordingly.

  • Added isBarrierIn and isBarrierOut predicates to treat sources and sinks as barriers in the dataflow config.
  • Removed obsolete expected edges and subpaths from the test output to match the new barrier behavior in CastArrayPointerArithmetic.expected.

Reviewed Changes

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

File Description
cpp/ql/src/Likely Bugs/Conversion/CastArrayPointerArithmetic.ql Defined source and sink nodes as barriers (isBarrierIn/isBarrierOut)
cpp/ql/test/query-tests/Likely Bugs/Conversion/CastArrayPointerArithmetic/CastArrayPointerArithmetic.expected Removed expected edges and subpaths that are now blocked by the new barrier logic

Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jketema jketema merged commit 8ad6938 into github:main May 1, 2025
15 checks passed
@jketema jketema deleted the array-barrier branch May 1, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants