[issue32435] tarfile recognizes .gz file as tar

2017-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This file is a correct empty tar file. The tar utility accepts it too. $ tar tf big_0_file_1.gz; echo $? 0 -- nosy: +serhiy.storchaka ___ Python tracker __

[issue32435] tarfile recognizes .gz file as tar

2017-12-27 Thread Sergey Petrunin
New submission from Sergey Petrunin : Library's function 'tarfile.is_tarfile' returns 'True' on GZip file (9.7 megabytes see attachment), that is a file with 10 gigabytes of '0' character compressed with 'gzip' utility (no 'tar' whatsoever). Desired result: this function should return False in