python / python/cpython

zipfile library will raise uncaught oserror when reading length incorrect zip file

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

Chưa có ai nhận issue này.

3.10 stdlib type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
558

Mô tả

BPO 46931
Files
  • damaged.zip: use notepad to open and deleted some contents of the zip file
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2022-03-05.17:37:33.918>
    labels = ['type-bug', 'library', '3.10']
    title = 'zipfile library will raise uncaught oserror when reading length incorrect zip file'
    updated_at = <Date 2022-03-05.17:37:33.918>
    user = 'https://bugs.python.org/ultimalium'
    

    bugs.python.org fields:

    activity = <Date 2022-03-05.17:37:33.918>
    actor = 'ultimalium'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-03-05.17:37:33.918>
    creator = 'ultimalium'
    dependencies = []
    files = ['50658']
    hgrepos = []
    issue_num = 46931
    keywords = []
    message_count = 1.0
    messages = ['414590']
    nosy_count = 1.0
    nosy_names = ['ultimalium']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46931'
    versions = ['Python 3.10']
    

    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.

    Hướng nghiên cứu

    Bắt đầu bằng cách tái hiện lỗi với damaged.zip bằng thư viện zipfile của Python và kiểm tra tại đâu việc đọc archive không đúng định dạng gây ra OSError chưa được bắt. Hoàn tất khi archive bị hỏng được xử lý mà không có OSError chưa được bắt và hành vi lỗi mong đợi được xác nhận bằng một kiểm tra hồi quy.

    Do mô hình lập chỉ mục viết ra từ nội dung của issue.

    Đánh giá

    Công nghệ
    python
    Lĩnh vực
    backend
    Loại issue
    Lỗi
    Độ khó
    3/5
    Thời gian dự kiến
    1-2 ngày
    Mức độ hoạt động
    Ít trao đổi
    Độ rõ ràng
    Cần làm rõ
    Mức phù hợp với người mới
    45/100

    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.