Skip to content

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Sep 28, 2023

I used this as part of testing this PR. Just thought I'd put it here in case you'd like it to be merged.

@asgerf asgerf requested a review from a team as a code owner September 28, 2023 09:10
@github-actions github-actions bot added the C++ label Sep 28, 2023
@geoffw0 geoffw0 added the no-change-note-required This PR does not need a change note label Oct 13, 2023
@jketema
Copy link
Contributor

jketema commented Aug 25, 2025

@asgerf Bit late to the party, but thanks! Changes to ExecTainted.ql look good. I think we want to just revert the changes to ConstantSizeArrayOffByOne.ql as it currently has test failure, and as the query likely needs a complete rewrite anyway if we ever want to promote it.

jketema and others added 2 commits August 26, 2025 10:43
It is not clear that this does what we want here, and the query is severly
broken in any case.
C++: Revert changes to `cpp/constant-array-overflow`
@Copilot Copilot AI review requested due to automatic review settings August 26, 2025 09:08
Copy link
Contributor

@Copilot 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 updates the C++ command injection query to use flow state-aware barriers. The change modifies the isBarrierOut predicate to accept a FlowState parameter, allowing for more precise barrier logic that can differentiate between different flow states in the data flow analysis.

Key Changes

  • Modified the isBarrierOut predicate signature to include a FlowState parameter
  • Updated the barrier implementation to use state-aware sink checking

Copy link
Contributor

@jketema jketema left a comment

Choose a reason for hiding this comment

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

LGTM

@jketema jketema merged commit 680aeea into github:main Aug 26, 2025
15 checks passed
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.

3 participants