Skip to content

A script to reproduce Invalid checksum for file in Pear Archive_Tar

Notifications You must be signed in to change notification settings

earth2016/pear_archive_tar_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A script to reproduce Invalid checksum for file in Pear Archive_Tar

Generate a 24GB file and then compressed by tar

$ tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason. 

Issue related to reproduce

The message generated for this script is:

 Message from error_object: Invalid checksum for file
 "fghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefgh/ijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijklmnopefghabcdijkl"
 \: 52908 calculated, 0 expected

Expected to happen all will be ok:

Hurray!!, the file was extracted {"thisAObject": 0}

Version used of php and tar script

PHP Version Affected
PHP 7.1.9 (cli) (built: Aug 30 2017 18:34:46) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Yes
PHP 7.2.4 (cli) (built: Mar 28 2018 04:27:01) ( ZTS MSVC15 (Visual C++ 2017) x64) Yes
PHP 7.2.8 (cli) (built: Jul 18 2018 10:03:03) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Yes

Note: The Winrar program on windows is being able to extract the file.json

About

A script to reproduce Invalid checksum for file in Pear Archive_Tar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages