Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Dec 2, 2020

Apparently, there are broken tarballs out there which are actually in
ustar format, but did not write the ustar marker. Since popular tar
tools like GNU tar and 7zip have no issues dealing with such tarballs,
Phar should also be more resilient.

Thus, when the first checksum check of a tarball in (presumed) in old-
style format fails, we check whether the checksum would be suitable for
ustar format; if so, we treat the tarball as being in ustar format.

Apparently, there are broken tarballs out there which are actually in
ustar format, but did not write the `ustar` marker.  Since popular tar
tools like GNU tar and 7zip have no issues dealing with such tarballs,
Phar should also be more resilient.

Thus, when the first checksum check of a tarball in (presumed) in old-
style format fails, we check whether the checksum would be suitable for
ustar format; if so, we treat the tarball as being in ustar format.
@cmb69 cmb69 added the Bug label Dec 2, 2020
@php-pulls php-pulls closed this in 8588ae7 Dec 4, 2020
@cmb69 cmb69 deleted the cmb/75102 branch December 4, 2020 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants