bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Possible bug in auto detection of extraction program


From: Joerg Schilling
Subject: Re: [Bug-tar] Possible bug in auto detection of extraction program
Date: Tue, 15 Apr 2014 11:55:31 +0200
User-agent: nail 11.22 3/20/05

Sasa Vilic <address@hidden> wrote:

> > Yesterday, I reconstructed the data from the last mail and it is obvious 
> > that
> > the checksum is not "correct". 
>
> I patched gtar now to print out debug information and I hope that this 
> information could help in further investigation.
>
> The tar_checksum (list.c) function did return HEADER_SUCCESS and following 
> checksum inside tar_checksum have been computed:
>
> * unsigned_sum: 55552
> * signed_sum: 0
> * parsed_sum/recorded_sum: 0. 
>
> Since tar_checksum returns HEADER_SUCCESS, the function 
> check_compressed_archive (buffer.c) will return ct_tar (plain tar file) as 
> detected type and will not try look into magic number to detect compression 
> algorithm, which is exactly the issue here.

Well, the location that would hold the checksum starts with a null byte, so it 
cannot be a checksum field.

Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

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