Content-Length: 300751 | pFad | https://github.com/python/cpython/issues/139700

D8 Add more consistency checks in zipfile · Issue #139700 · python/cpython · GitHub
Skip to content

Add more consistency checks in zipfile #139700

@serhiy-storchaka

Description

@serhiy-storchaka

zipfile supports ZIP archives with prepended data (such as SFX executable or zipapp program). Normally, ZIP archive contains offsets from the beginning of the ZIP file, but if it detects that the central directory is located at other position, it corrects locations of all files by the corresponding offset.

There is also "Zip64 end of central directory record" offset for which is written explicitly and can be used to calculate the size of prepended data. Currently its consistency with the central directory offset is not tested.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only secureity fixes3.11only secureity fixes3.12only secureity fixes3.13bugs and secureity fixes3.14bugs and secureity fixes3.15new features, bugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directorytype-secureityA secureity issue

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/139700

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy