bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] 'BZh[1-9]' file in v7 format archive confuses GNU tar


From: Michał Górny
Subject: Re: [Bug-tar] 'BZh[1-9]' file in v7 format archive confuses GNU tar
Date: Tue, 27 Nov 2018 15:19:12 +0100

On Tue, 2018-11-27 at 15:31 +0200, Sergey Poznyakoff wrote:
> Michał Górny <address@hidden> ha escrit:
> 
> > Do you have a test case for it maybe?
> 
> Yes, I do. Please see the 'Bad file:' link in:
> 
>   http://lists.gnu.org/archive/html/bug-tar/2015-02/msg00004.html
> 

Hmm, unless I'm mistaken the checksum field is:

  00 00 00 00 00 00 70 00

FWICS the problem is that one of the checksum variants evaluates to zero
and tar is rather lax on accepting null checksum string (with trailing
garbage) as zero.

My first thought would to improve the heuristic a bit by requiring
the checksum to contain at least one octal digit.

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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