Skip to content

C++: Update test results after extractor changes#21853

Merged
jketema merged 1 commit into
github:mainfrom
jketema:jketema/template-constants
May 18, 2026
Merged

C++: Update test results after extractor changes#21853
jketema merged 1 commit into
github:mainfrom
jketema:jketema/template-constants

Conversation

@jketema
Copy link
Copy Markdown
Contributor

@jketema jketema commented May 14, 2026

No description provided.

@github-actions github-actions Bot added the C++ label May 14, 2026
@jketema jketema added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label May 15, 2026
@jketema jketema marked this pull request as ready for review May 15, 2026 13:47
@jketema jketema requested a review from a team as a code owner May 15, 2026 13:47
Copilot AI review requested due to automatic review settings May 15, 2026 13:47
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

This PR updates C++ dataflow taint test expectations to match extractor output changes.

Changes:

  • Adds two expected local taint-flow result rows involving noexcept(...) in stl.h.
Show a summary per file
File Description
cpp/ql/test/library-tests/dataflow/taint-tests/localTaint.expected Updates expected output for the local taint library test.

Copilot's findings

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

| stl.h:96:42:96:42 | ref arg x | stl.h:95:69:95:69 | x | |
| stl.h:96:42:96:42 | ref arg x | stl.h:95:69:95:69 | x | |
| stl.h:292:30:292:40 | 0 | file://:0:0:0:0 | noexcept(...) | TAINT |
| stl.h:292:30:292:40 | 0 | file://:0:0:0:0 | noexcept(...) | TAINT |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What does this flow represent - in particular where does the 0 come from? Line 292 is:

vector() noexcept(noexcept(Allocator())) : vector(Allocator()) { }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nothing. This code is never executed. I'd say this is a bug in the old dataflow library.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, this is just a case where the extractor is extracting more (or something like that) and exposing existing issues.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correct.

@jketema jketema merged commit e55edf2 into github:main May 18, 2026
14 of 15 checks passed
@jketema jketema deleted the jketema/template-constants branch May 18, 2026 11:43
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants