Skip to content

Unpacking file size is incorrect (with reproduced repo) #286

@axetroy

Description

@axetroy

And here is the reproduced repo: https://github.com/axetroy/libflate-66

git clone https://github.com/axetroy/libflate-66
cd ./libflate-66
cargo run ./

# View unpacked files ’prune‘

The origin file size is : 985,384
The unzip file size is : 965,416

  1. unpack with Tar

size = 965,416

  1. unpack with python3

size = 985,384

>>> import tarfile
>>> tar = tarfile.open("prune_darwin_amd64.tar")
>>> tar.getmember("prune").size
985384
  1. unpack with build-in tar tools in macOS

size = 985,384

ref: sile/libflate#66

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions