[Toybox] [PATCH] tar: fix base-256 output.

Rob Landley rob at landley.net
Tue Mar 9 02:01:16 PST 2021


On 3/8/21 11:57 AM, enh via Toybox wrote:
> A tar file created by toybox tar with values large enough to need
> base-256 rather than ASCII octal caused a tar reader to crash, and
> caused GNU tar to complain.
>
> I note from the docs at
> https://github.com/libarchive/libarchive/blob/master/libarchive/tar.5#L326
> that they imply that only the top *bit* should be set to indicate this
> format, not the whole top byte, to give a 95-bit or 63-bit field. But I
> don't think we can hit that in practice?

If we match what the other one's doing, good enough for the moment.

Rob



More information about the Toybox mailing list