php-src/ext/phar
Niels Dossche ba80372a58 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.
2024-01-25 20:05:45 +01:00
..
phar Deprecate ${} string interpolation 2022-05-05 10:14:56 +02:00
tests Fix GH-13037: PharData incorrectly extracts zip file 2024-01-25 20:05:45 +01:00
build_precommand.php Apply tidy formatting 2020-02-03 13:41:31 +01:00
config.m4
config.w32
CREDITS
dirstream.c Merge branch 'PHP-8.0' into PHP-8.1 2023-07-31 19:53:43 +01:00
dirstream.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
func_interceptors.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
func_interceptors.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
gdbhelp
Makefile.frag Fix cross-compilation check in phar generation for FreeBSD 2023-06-13 19:09:58 +02:00
Makefile.frag.w32
makestub.php Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phar_internal.h implement openssl_256 and openssl_512 for phar singatures 2021-08-11 14:13:57 +02:00
phar_object_arginfo.h Declare ext/phar constants in stubs (#9094) 2022-07-22 13:09:23 +02:00
phar_object.c Fix #71465: PHAR doesn't know about litespeed 2024-01-03 21:31:09 +01:00
phar_object.stub.php Declare ext/phar constants in stubs (#9094) 2022-07-22 13:09:23 +02:00
phar_path_check.re Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phar.1.in Update year to 2024 2024-01-04 19:26:32 +01:00
phar.c Merge branch 'PHP-8.1' into PHP-8.2 2022-09-27 18:25:13 +02:00
phar.phar.1.in
pharzip.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_phar.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
shortarc.php
stream.c Fix #77432: Segmentation fault on including phar file 2024-01-01 13:45:40 +01:00
stream.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
stub.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
tar.c Merge branch 'PHP-8.1' into PHP-8.2 2023-03-26 16:15:57 +02:00
tar.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
util.c Merge branch 'PHP-8.1' into PHP-8.2 2023-07-09 22:55:01 +02:00
zip.c Fix GH-13037: PharData incorrectly extracts zip file 2024-01-25 20:05:45 +01:00