+TAR archiver file size > 4GiB overflow

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
bakulapal
New Member
New Member
Posts: 1
Joined: 2007-02-12, 11:58 UTC

+TAR archiver file size > 4GiB overflow

Post by *bakulapal »

If a file > 4GiB TARed the file size in the TAR file header holds only the part of the file's size <= ULONG_MAX. I guess the file size is stored in a 32 bit unsigned temp variable. The tar header can store up to 36 bit file size.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed the TAR function doesn't currently support files >4GB. I will try to add it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This has been fixed in beta 5, please test it! The problem size is between 4 and 8 GB. For larger files, TC stores the number in binary form.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Christian.

The problem seems to have been fixed by Total Commander 8.51ß5.
Took tar-file, size 6.32 GB.
Tarred this tar-file a second time, so created a tar-ini-tar archive.
Size of the final tar-file: 6.32 GB (a few K more than the inner file)

If I open the outer tar-file and look at the size of the inner file, it is reported as: 6,787,723,776 bytes.

Environment:
Server 2008 R2 SP1 64-bit
Total Commander 8.51ß5 64-bit

Cheers,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks a lot for testing it!
Author of Total Commander
https://www.ghisler.com
Post Reply