Changes between Initial Version and Version 1 of Ticket #15806


Ignore:
Timestamp:
May 16, 2020, 7:37:28 PM (5 years ago)
Author:
pulkomandy
Comment:

I don't see any limitation in the package format. The sum of length of file and directory and attribute names must fit in the "toc" section so it's limited to 264 bytes but I doubt that's the limit you hit.

The data section offsets are encoded using a variable-length integer format so it's unlimited.

So it is more likely a bug in the package tool.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15806 – Description

    initial v1  
    11This is hrev53967.
    22
    3 When creating HPKG file with `package create -0 -i /path/to/stub.PackageInfo /path/to/Package.hpkg` from folder with a lot of small files and total size about 10GB and then extracting with `package extract /path/to/Package.hpkg`, extraction fails with `Error: Malformed TOC strings section`.
     3When creating HPKG file with `package create -0 -i /path/to/stub.PackageInfo /path/to/Package.hpkg` from folder with a lot of small files and total size about 10GB and then extracting with `package extract /path/to/Package.hpkg`, extraction fails with `Error: Malformed TOC strings section`.
    44
    55If HPKG format has some limitation on file count, creation should fail instead of silently creating invalid HPKG. If there are no limitation, this is a bug and it should be fixed.