[issue39688] tarfile: GNU sparse 1.0 pax tar header offset not properly computed
Valentin Samir
report at bugs.python.org
Wed Feb 19 10:51:55 EST 2020
Valentin Samir <valentin.samir at crans.org> added the comment:
hum trying to be clever and I am doing mistakes.
This commit is simpler and effectively fixes the issue https://github.com/nitmir/cpython/commit/682138a3544a2d7de457c88712e738938568f908
tarinfo.offset_data is where tarfile start reading the file data and thus must be set to the beginning of the actual data for a sparse file even if the data block starts before.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39688>
_______________________________________
More information about the Python-bugs-list
mailing list