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

Incorrect size of inflated file data #33

Description

@kpopv

We've been experiencing a bug with v1.2.11.1_jtkv6.3: inflating a zip file doesn't return the expected amount of data. This could also reproduced this with v1.2.11.1_jtkv6 and the master cloned today.

With a zip file created as follows:

mkdir dir1
head -c 5757690 < /dev/urandom > dir1/file1
head -c  566784 < /dev/urandom > dir1/file2
zip datalessthansize.zip dir1/file1 dir1/file2

Reading the file using this zlib version gives incorrect data for file1:

File Size Size inflated data Notes
file1 5757690 5750784 ???
file2 566784 566784 OK

This behavior is different from the off the shelf zlib v1.2.11:

File Size Size inflated data Notes
file1 5757690 5757690 OK
file2 566784 566784 OK

Please advise.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions