Skip to content

Python: Remove redundant collection taint summaries - #22314

Open
hvitved wants to merge 3 commits into
mainfrom
hvitved-remove-stdlib-taint-workaround
Open

Python: Remove redundant collection taint summaries#22314
hvitved wants to merge 3 commits into
mainfrom
hvitved-remove-stdlib-taint-workaround

Conversation

@hvitved

@hvitved hvitved commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Following #21888, collection taint handling now makes the explicit element-to-container fallback summaries for list.append and set.add redundant.

Remove those fallback edges and their TODO comments while retaining the element-content flow summaries.

Testing

  • codeql test run python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep --threads=0

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@hvitved
hvitved requested a review from a team as a code owner August 11, 2026 07:36
Copilot AI balanced review requested due to automatic review settings August 11, 2026 07:36

Copilot AI left a comment

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.

Pull request overview

Removes redundant collection-level taint summaries following the improved collection taint handling from #21888.

Changes:

  • Removes element-to-container fallback summaries for list.append and set.add.
  • Retains element-content flow summaries.
Show a summary per file
File Description
python/ql/lib/semmle/python/frameworks/Stdlib.qll Simplifies list and set mutation taint summaries.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@hvitved
hvitved marked this pull request as draft August 11, 2026 07:38
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Aug 11, 2026
@hvitved
hvitved marked this pull request as ready for review August 11, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants