bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] ustar-format archives with 32-char long user/group names a


From: Joerg Schilling
Subject: Re: [Bug-tar] ustar-format archives with 32-char long user/group names are misinterpreted
Date: Mon, 26 Nov 2018 12:37:04 +0100
User-agent: Heirloom mailx 12.5 7/5/10

Micha? Górny <address@hidden> wrote:

> Hello,
>
> I've been tinkering with the tar format limitations and noticed that GNU
> tar (as of v1.30) misbehaves when given ustar-format archive created by
> bsdtar (from libarchive) and using 32-char long user/group name.
>
> The output is:
>
> $ tar -tvf test.tar 
> -rw-r--r-- 
> verylongverylongverylongverylongverylongverylongverylongverylong000000 
> /verylongverylongverylongverylong000000  5 2018-11-24 09:28 input.txt

Well, this is not a ustar archive since ustar requires these two strings to be 
null terminated.

A program however should be able to deal with such an incorrect archive.


The standard only permits name, linkname and prefix to be not nul terminated
in case the whole string length is used.

Jörg

-- 
 EMail:address@hidden                    (home) Jörg Schilling D-13353 Berlin
    address@hidden (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]