python / python/cpython

tarfile hardlink fallback ignores custom extraction filter rejection via None

Aperta
#157,265 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@encukou ci sta già lavorando.

Dal 10/9/2026.

3.10 3.11 3.12 3.13 3.14 3.15 3.16 stdlib type-security
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.