[php-src] PR #13045: Fix GH-13037: PharData incorrectly extracts zip file

From: Date: Thu, 28 Dec 2023 22:00:56 +0000
Subject: [php-src] PR #13045: Fix GH-13037: PharData incorrectly extracts zip file
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24619@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13045 Author: nielsdos 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.

« previous php.git-pulls (#24619) next »