python / python/cpython

tarfile hardlink fallback ignores custom extraction filter rejection via None

Abierto
#157,265 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@encukou ya está trabajando en esto.

Desde el 10/9/2026.

3.10 3.11 3.12 3.13 3.14 3.15 3.16 stdlib type-security
Lenguaje dominante
Python
Estrellas
77.2k
Forks
35.9k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.