python / python/cpython

tarfile hardlink fallback ignores custom extraction filter rejection via None

オープン
#157,265 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@encukou がすでに取り組んでいます。

2026年9月10日 から。

3.10 3.11 3.12 3.13 3.14 3.15 3.16 stdlib type-security
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is run twice: once for the extracted member, and once with name set to the location of the link.
For one of the calls, the return value is ignored. Instead, the member should be skipped if either call returns None.

Linked PRs
  • gh-157266
  • gh-157304
  • gh-157305
  • gh-157306
  • gh-157307
  • gh-157308
  • gh-157309
  • gh-157334

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。