Skip to content

Python: Detect tar extraction when members may be None - #23171

Open
owen-mc wants to merge 3 commits into
github:mainfrom
owen-mc:py/fix-tarfile-extractall-fn
Open

owen-mc wants to merge 3 commits into
github:mainfrom
owen-mc:py/fix-tarfile-extractall-fn

Conversation

@owen-mc

@owen-mc owen-mc commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #23153.

Update py/tarslip to treat members=None like an omitted members argument, since both extract the entire archive. Preserve existing extraction-filter checks and handling of explicitly supplied member lists.

DCA showed one extra alert and no significant performance change.

owen-mc and others added 3 commits November 19, 2026 11:16
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Treat extractall members values that may be None like an omitted members argument, while retaining extraction filter checks.

Fixes github#23153.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@owen-mc
owen-mc requested a review from a team as a code owner November 19, 2026 11:39
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 11:39