Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Broken ZIP files created by commit a1da686Β #291

@AlyoshaVasilieva

Description

@AlyoshaVasilieva

PR #290 (rev a1da686) appears to have broken writing, at least header writing. Creating test.zip by my example code in #287, tools report:

7-Zip:

Error: Headers Error
Unconfirmed start of archive

Warning: Headers Error
There are some data after the end of the payload data

zip -T test.zip (zip 3.0-11build1 on Ubuntu 20.04):

  error:  invalid compressed data to inflate testfile
test of test.zip FAILED

zip error: Zip file invalid, could not spawn unzip, or wrong unzip (original files unmodified)

Neither 7-Zip nor unzip can extract the archive created by this library.

The same code, when using rev 574bb3d, the immediately preceding commit, creates a working ZIP file.

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