Skip to content

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

Closed
@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 security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions