php-src/ext/phar
Niels Dossche 19ddc62778 Fix undefined behaviour when writing 32-bit values in phar/tar.c
As shown on the CI runs on my fork (which runs with UBSAN),
the pointers can sometimes be unaligned when trying to write.
This is UB and on platforms like ARM this *can* result in a bus error.
Replace it with memcpy, which at least on x86 and powerpc
architectures does result in the same assembly code.

Closes GH-10940.
2023-03-26 16:06:29 +02:00
..
phar implement openssl_256 and openssl_512 for phar singatures 2021-08-11 14:13:57 +02:00
tests Fix GH-10766: PharData archive created with Phar::Zip format does not keep files metadata (datetime) 2023-03-04 23:43:48 +01:00
build_precommand.php Apply tidy formatting 2020-02-03 13:41:31 +01:00
config.m4
config.w32
CREDITS
dirstream.c Remove all *_EXTERN_C() in C source files (#7054) 2021-05-27 15:52:54 +08: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 Respect --program-prefix/suffix when installing phar 2020-06-05 10:10:40 +02:00
Makefile.frag.w32
makestub.php Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phar.1.in implement openssl_256 and openssl_512 for phar singatures 2021-08-11 14:13:57 +02:00
phar.c Merge branch 'PHP-8.0' into PHP-8.1 2022-09-27 18:24:07 +02:00
phar.phar.1.in
phar_internal.h implement openssl_256 and openssl_512 for phar singatures 2021-08-11 14:13:57 +02:00
phar_object.c Fix wrong flags check for compression method in phar_object.c 2023-01-15 15:35:35 +00:00
phar_object.stub.php Merge branch 'PHP-8.0' into PHP-8.1 2021-09-08 12:32:58 +01:00
phar_object_arginfo.h Merge branch 'PHP-8.0' into PHP-8.1 2021-09-08 12:32:58 +01:00
phar_path_check.re Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
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 Update http->https in license (#6945) 2021-05-06 12:16:35 +02: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 Fix undefined behaviour when writing 32-bit values in phar/tar.c 2023-03-26 16:06:29 +02:00
tar.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
util.c Add missing error checks on EVP_MD_CTX_create() and EVP_VerifyInit() 2023-03-05 22:05:11 +01:00
zip.c Fix GH-10766: PharData archive created with Phar::Zip format does not keep files metadata (datetime) 2023-03-04 23:43:48 +01:00