Opened 5 years ago

Last modified 5 years ago

#15806 new bug

package produce invalid HPKG file when archiving large folder with a lot of files — at Version 1

Reported by: X512 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Package Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by pulkomandy)

This is hrev53967.

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.

If 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.

Change History (1)

comment:1 by pulkomandy, 5 years ago

Description: modified (diff)

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.

Note: See TracTickets for help on using tickets.