bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Bug in --sparse mode if file shrinks while tar is reading it


From: selivan
Subject: [Bug-tar] Bug in --sparse mode if file shrinks while tar is reading it
Date: Fri, 28 Dec 2018 00:01:42 +0300

This bug was found by Chris Siebenmann. Here is a detailed post about it: 
https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug

I did not find this bug, I am just reporting it.

Steps to reproduce:

- create a large sparse file
- start tar so that it archives the file
- while it works on the file, use ftruncate() to reduce file size.
- tar continues running forever generating infinite output

Probable location of the bug: sparse_dump_region() function in sparse.c




reply via email to

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