[php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5

From: Date: Mon, 21 Sep 2026 17:55:32 +0000
Subject: [php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141347@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-09-22T01:53:26+08:00 Commit: https://github.com/php/php-src/commit/1765f685479836dd945fd64a984f010b9b522f4d Raw diff: https://github.com/php/php-src/commit/1765f685479836dd945fd64a984f010b9b522f4d.diff Merge branch 'PHP-8.4' into PHP-8.5 Propagate the backport of PR #23770 from PHP-8.4 to PHP-8.5. * PHP-8.4: Backport: fix integer overflow in mhash_keygen_s2k (#23770) Changed paths: M ext/hash/hash.c Diff: diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 4357b65e2538..8ea4e7ea28c2 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -1337,7 +1337,7 @@ PHP_FUNCTION(mhash_keygen_s2k) context = php_hash_alloc_context(ops); ops->hash_init(context, NULL); - key = ecalloc(1, times * block_size); + key = ecalloc(times, block_size); digest = emalloc(ops->digest_size + 1); for (i = 0; i < times; i++) {

« previous php.cvs (#141347) next »