Skip to content

ZipFS: improper unpacking of (XML) files #108

@zopyx

Description

@zopyx

I have this sample code what will read a ZIP file containing a valid sd.xml XML file:


import fs.opener

zf, _ = fs.opener.open('zip://sample.zip', writeable=False)
print zf.listdir(u".")
data = zf.open(u'sd.xml', 'rb').read()
print data

bildschirmfoto 2017-11-13 um 19 25 32

The screenshot shows that the closing tag <smashdocc is corrupted instead of <smashdoc>.

The second screenshot

bildschirmfoto 2017-11-13 um 19 27 55

shows that the sd.xml XML file is correct.

The related sample.zip can be found here: https://public.zopyx.com/sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions