Subject: | Overly strict check on null bytes at end of tar header |
Date: | Tue, 18 Sep 2018 16:32:00 +0000 |
To: | "bug-Archive-Tar [...] rt.cpan.org" <bug-Archive-Tar [...] rt.cpan.org> |
From: | Todd Richmond <trichmond [...] proofpoint.com> |
Some tarfiles in the wild have garbage in the last 12 padding bytes before a 512 byte block boundary rather than 0s – likely because they aren’t initializing the unused space. The check at line 377 of Archive/Tar.pm should be allowed to be skipped for users who don’t require strict conformance and instead need to open every possible tar file. Any config method is fine such as IGNORE_PADDING_CHECK