bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] [PATCH] sparse: fix bug in decode_header


From: Pavel Raiskup
Subject: [Bug-tar] [PATCH] sparse: fix bug in decode_header
Date: Tue, 01 Apr 2014 14:08:17 +0200
User-agent: KMail/4.12.3 (Linux/3.13.6-200.fc20.x86_64; KDE/4.12.3; x86_64; ; )

List the archives containing sparse files of >8GB (real) data
correctly (print correct real size) and do not fail.

Reproducer (just as an example, this could take too long):

    $ dd if=/dev/urandom of=bigfile bs=512M  count=17 seek=1
    $ tar --posix -cSf archive bigfile
    $ echo $?
    0
    $ tar -tf archive
    bigfile
    tar: Skipping to next header
    tar: Exiting with failure status due to previous errors

Or just archive such file with --verify/-W:

    $ tar --posix -cWSf archive bigfile
    bigfile: Size differs
    tar: VERIFY FAILURE: 16842752 invalid headers detected
    tar: Exiting with failure status due to previous errors

Original bugreport thread:
http://www.mail-archive.com/bug-tar%40gnu.org/msg03905.html

Pavel

Attachment: 0001-sparse-fix-bug-in-decode_header.patch
Description: Text Data

Attachment: testsuite.log.xz
Description: application/xz


reply via email to

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