Re: star-1.5a64 aborts on reading archives with _small_ garbage tails

Joerg Schilling <[email protected]>
Newsgroups gmane.comp.archivers.star.user
Message-ID <43050035.nailBA11Y6OQ@burner>
[email protected] wrote:

> Hi Joerg,
>
> i encounter problems with reading star archives after
> having added small amounts of trailing garbage to them.
> With tails of more than 1 kB it seems to be ok.
>
>
>   $ star -version
>   star: star 1.5a64 (i686-pc-linux-gnu)
> (so if this is solved in star-1.5a65pre, sorry)
>
> The archive got written with (command logged by set -x)
>   + star -c list=-
>   star: 15 blocks + 0 bytes (total of 153600 bytes = 150.00k).
>
> and i added my personal garbage tail
>   Note: cd_backup_planer added 320 bytes of checksum padding
>
> On trying to read the table of content
>   $ star -t -v </tmp/test2.star
> i get _half_ my content list and then star aborts
>   ...
>       0 lrwxrwxrwx  root/root Jun 12 20:40 2004 lenghty_address
>   star: Error reading '-' size (320) too small.
>   star: 15 blocks + 0 bytes (total of 153600 bytes = 150.00k).

This is not a bug but intended behavior on a missusage.

A valid TAR archive is always a multiple of 512 bytes.

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]		(uni)  
       [email protected]	(work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.