Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++: Remove pointer/pointee conflation from parameter nodes #18531

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented Jan 17, 2025

Since node.hasAddressOperandAndIndirectionIndex(op, indirectionIndex) can hold for multiple (op, indirectionIndex) pairs for a given node (because a single DataFlow::Node can represent multiple Operands with different indirections) it's pretty much always a bug to only consider op or indirectionIndex in isolation. I thought we had fixed all problems like this as of #13425, but apparently this one was still lurking.

Luckily, the fix is simple 🎉

@github-actions github-actions bot added the C++ label Jan 17, 2025
@MathiasVP MathiasVP force-pushed the remove-conflation-from-out-nodes branch from 5bc3caf to f678d66 Compare January 17, 2025 21:16
@MathiasVP MathiasVP force-pushed the remove-conflation-from-out-nodes branch from f678d66 to 8de7d4e Compare January 18, 2025 02:12
@MathiasVP MathiasVP added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Jan 18, 2025
@MathiasVP MathiasVP marked this pull request as ready for review January 18, 2025 18:08
@Copilot Copilot bot review requested due to automatic review settings January 18, 2025 18:08
@MathiasVP MathiasVP requested a review from a team as a code owner January 18, 2025 18:08

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 (6)
  • cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll: Language not supported
  • cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll: Language not supported
  • cpp/ql/test/experimental/query-tests/Security/CWE/CWE-409/DecompressionBombs/DecompressionBombs.expected: Language not supported
  • cpp/ql/test/library-tests/dataflow/dataflow-tests/dataflow-consistency.expected: Language not supported
  • cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp: Language not supported
  • cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/UnboundedWrite.expected: Language not supported

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ depends on internal PR This PR should only be merged in sync with an internal Semmle PR 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.

1 participant