File tree 4 files changed +9
-6
lines changed
4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ PHP NEWS
11
11
- FPM:
12
12
. Fixed GH-16432 (PHP-FPM 8.2 SIGSEGV in fpm_get_status). (Jakub Zelenka)
13
13
14
+ - Hash:
15
+ . Fixed GH-16711: Segfault in mhash(). (Girgias)
16
+
14
17
- OpenSSL:
15
18
. Prevent unexpected array entry conversion when reading key. (nielsdos)
16
19
. Fix various memory leaks related to openssl exports. (nielsdos)
Original file line number Diff line number Diff line change @@ -1213,7 +1213,11 @@ PHP_FUNCTION(mhash)
1213
1213
struct mhash_bc_entry algorithm_lookup = mhash_to_hash [algorithm ];
1214
1214
if (algorithm_lookup .hash_name ) {
1215
1215
algo = zend_string_init (algorithm_lookup .hash_name , strlen (algorithm_lookup .hash_name ), 0 );
1216
+ } else {
1217
+ RETURN_FALSE ;
1216
1218
}
1219
+ } else {
1220
+ RETURN_FALSE ;
1217
1221
}
1218
1222
1219
1223
if (key ) {
Original file line number Diff line number Diff line change 2
2
GH-16711: Segmentation fault in mhash()
3
3
--SKIPIF--
4
4
<?php if (!function_exists ('mhash ' )) { die ('skip mhash compatibility layer not available ' ); } ?>
5
- --XFAIL--
6
- SEGFAULT
7
5
--FILE--
8
6
<?php
9
7
@@ -97,4 +95,4 @@ array(40) {
97
95
}
98
96
99
97
Deprecated: Function mhash() is deprecated in %s on line %d
100
- SEGFAULT
98
+ bool(false)
Original file line number Diff line number Diff line change 2
2
GH-16711: Segmentation fault in mhash()
3
3
--SKIPIF--
4
4
<?php if (!function_exists ('mhash ' )) { die ('skip mhash compatibility layer not available ' ); } ?>
5
- --XFAIL--
6
- SEGFAULT
7
5
--FILE--
8
6
<?php
9
7
@@ -97,4 +95,4 @@ array(40) {
97
95
}
98
96
99
97
Deprecated: Function mhash() is deprecated in %s on line %d
100
- SEGFAULT
98
+ bool(false)
You can’t perform that action at this time.
0 commit comments