Subject: | Corrupt tar file leads to a call to an undefined value |
If a corrupt tar file is fed into Archive::Tar, it is possible for the
unless loop starting at line 278 to exit without defining a valid $entry
value. This leads to the module aborting prematurely at line 288 with:
Can't call method "is_label" on an undefined value at .../Archive/Tar.pm
line 288.
As a hack/work around I've put the following on the line before:
next if (!defined($entry));
However, there should be a cleaner solution. I don't fully understand
whats going on in that bit of code, so my hack is probably ill-advised