Files
php-src/ext/mbstring/tests/oom_mb_str_split_length.phpt
3584a98bda Avoid state corruption via bailout
- Replace bailout on OOM with UnwindExit
- Properly reset various globals that may be accessed during startup

Fix GHSA-w8hw-w9fx-j79w (CVE-2026-109618)
Fix GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)

Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
Co-authored-by: Jakub Zelenka <bukka@php.net>
Co-authored-by: Nora Dossche <7771979+ndossche@users.noreply.github.com>
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
2026-10-21 16:06:22 +02:00

16 lines
245 B
PHP

--TEST--
mb_str_split() doesn't over allocate - split length argument
--EXTENSIONS--
mbstring
--INI--
memory_limit=8M
--FILE--
<?php
var_dump(mb_str_split("abc", 100 * 1024 * 1024, "UTF-7"));
?>
--EXPECT--
array(1) {
[0]=>
string(3) "abc"
}