[Top][All Lists]

[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 12:46:38 +0000
User-agent: K-9 Mail for Android

Dnia November 27, 2018 11:55:06 AM UTC, Sergey Poznyakoff <address@hidden> 
>Sergey Poznyakoff <address@hidden> ha escrit:
>> Before attempting compression format identification, tar tests if
>> the first block read is a valid tar header block. However, the
>> test itself is stricter than necessary. The following patch should
>> fix this:
>This, however, will mistakingly qualify some compressed archives as
>uncompressed (see commit 1847ec67cec36a17354115374954fea211d1f0da),
>so definitely the test must be more sophisticated.

Do you have a test case for it maybe? I think getting a valid bz2 stream that 
happens to match tar checksum is rather too hard for my skills.


Best regards, 
Michał Górny

reply via email to

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