History log of /PHP-8.4/ext/phar/tests/zip/files/gh13037.zip (Results 1 – 1 of 1)
Revision Date Author Comments
# ba80372a 28-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13037: PharData incorrectly extracts zip file

The code currently assumes that the extra field length of the central
directory entry and the local entry are the same, but that's no

Fix GH-13037: PharData incorrectly extracts zip file

The code currently assumes that the extra field length of the central
directory entry and the local entry are the same, but that's not the
case. For example, the "Extended Timestamp extra field" differs in size
for local vs central directory entries. This causes the file contents
offset to be incorrect because it is based on the central directory
length instead of the local entry length. Fix it by reading the local
entry and getting the size from there as well as checking consistency
for the file name length.

Closes GH-13045.

show more ...