python / python/cpython

tarfile hardlink fallback ignores custom extraction filter rejection via None

Đang mở
#157,265 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@encukou đang làm issue này rồi.

Từ ngày 10/9/2026.

3.10 3.11 3.12 3.13 3.14 3.15 3.16 stdlib type-security
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.