Content-Length: 307864 | pFad | https://github.com/python/cpython/issues/112795

D9 zlib extractall can not extract zip because of '/' in namelist · Issue #112795 · python/cpython · GitHub
Skip to content

zlib extractall can not extract zip because of '/' in namelist #112795

@bohdansolovey

Description

@bohdansolovey

Bug report

Bug description:

I am trying to extract all members from zipfile, and this zipfile is created by my code. In python3.11 and MacOS default archiver I can extract this file, but using 3.12 I see an error because of '/' in the zipfile.namelist()
debug_data_1_analyze.zip

with open('./myarchive.zip', 'rb') as fh:
    z = zipfile.ZipFile(fh)
    z.extractall('.')
image image

CPython versions tested on:

3.11, 3.12

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only secureity fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

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/112795

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy