Skip to content

C++: Upgrade cpp/suspicious-add-sizeof to high precision#21635

Merged
geoffw0 merged 5 commits intogithub:mainfrom
geoffw0:suspicioussizeof2
Apr 14, 2026
Merged

C++: Upgrade cpp/suspicious-add-sizeof to high precision#21635
geoffw0 merged 5 commits intogithub:mainfrom
geoffw0:suspicioussizeof2

Conversation

@geoffw0
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 commented Apr 2, 2026

Upgrade cpp/suspicious-add-sizeof to @precision high (following improvement and multiple rounds of testing).

@geoffw0 geoffw0 marked this pull request as ready for review April 14, 2026 11:59
@geoffw0 geoffw0 requested a review from a team as a code owner April 14, 2026 11:59
Copilot AI review requested due to automatic review settings April 14, 2026 11:59
@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented Apr 14, 2026

We now have a successful DCA run (and QA data) for this change as well, LGTM.

Copy link
Copy Markdown
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

Upgrades the C++ CodeQL query cpp/suspicious-add-sizeof to @precision high so it can run in the default code scanning suite.

Changes:

  • Updated query metadata to mark cpp/suspicious-add-sizeof as @precision high.
  • Added a change note documenting the precision upgrade.
  • Updated the code scanning suite integration-test expectation to include the query.
Show a summary per file
File Description
cpp/ql/src/change-notes/2026-04-02-suspicious-add-sizeof.md Documents the precision upgrade and default-suite inclusion.
cpp/ql/src/Security/CWE/CWE-468/SuspiciousAddWithSizeof.ql Changes query metadata from medium to high precision.
cpp/ql/integration-tests/query-suite/cpp-code-scanning.qls.expected Updates expected resolved suite contents to include the query.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 0

@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented Apr 14, 2026

Thanks for the lightning fast approval! 🚀

@geoffw0 geoffw0 merged commit 666c8bf into github:main Apr 14, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants