microtar icon indicating copy to clipboard operation
microtar copied to clipboard

No support for tarballs larger than 4GB

Open gkanwar opened this issue 6 years ago • 1 comments

The implementation implicitly uses unsigned, etc which is often compiled as 32-bit words. In this case offsets will silently wrap for tarballs longer than 4GB and cause errors.

The easiest fix would be to add a separate method (mtar_add_pos(unsigned pos, unsigned offset)) which checks that the position doesn't wrap silently while doing the addition. Support for a 64-bit implementation would be nice as well :)

gkanwar avatar Jun 05 '18 19:06 gkanwar

Use size_t type.

katahiromz avatar Mar 01 '19 10:03 katahiromz