php-src/ext/hash
Christoph M. Becker c2eafc29f5
Fix #81714: segfault when serializing finalized HashContext
We must not allow to serialize already finalized `HashContext`s, since
the internal context is already freed.  Since there is not much point
in serializing finalized `HashContext`s, we just bail out in that case.

Closes GH-8265.
2022-04-05 13:25:22 +02:00
..
sha3 Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
tests Fix #81714: segfault when serializing finalized HashContext 2022-04-05 13:25:22 +02:00
bench.php hash: Fix warning in the bench script 2020-09-02 17:35:51 +02:00
config.m4 Merge branch 'PHP-7.4' 2019-09-17 16:18:03 +02:00
config.w32 Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols 2019-06-27 23:25:33 +02:00
CREDITS
hash_adler32.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_arginfo.h Fix GH-7826: Inconsistent argument name in hash_hmac_file and hash_file 2021-12-26 12:55:53 +01:00
hash_crc32.c X86: Fast CRC32 computation using PCLMULQDQ instruction 2020-09-02 15:10:41 +02:00
hash_fnv.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_gost.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_haval.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
hash_joaat.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_md.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_ripemd.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_sha3.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_sha.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_snefru.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_tiger.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash_whirlpool.c Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
hash.c Fix #81714: segfault when serializing finalized HashContext 2022-04-05 13:25:22 +02:00
hash.stub.php Fix GH-7826: Inconsistent argument name in hash_hmac_file and hash_file 2021-12-26 12:55:53 +01:00
php_hash_adler32.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_crc32_tables.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_hash_crc32.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_fnv.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_gost_tables.h Replace usage of php_hash_uint32 and php_hash_uint64 with uint32_t and uint64_t. 2016-02-04 11:57:41 +01:00
php_hash_gost.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_haval.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_joaat.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_md.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_ripemd.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_sha3.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_sha.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_snefru_tables.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_hash_snefru.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_tiger_tables.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_hash_tiger.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash_whirlpool_tables.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_hash_whirlpool.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
php_hash.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00