History log of /PHP-8.2/ext/mbstring/tests/gh11217.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# aa553af9 10-May-2023 Ilija Tovilo

Fix segfault in mb_strrpos/mb_strripos with ASCII encoding and negative offset

We're setting the encoding from PHP_FUNCTION(mb_strpos), but mbfl_strpos would
discard it, setting it to mb

Fix segfault in mb_strrpos/mb_strripos with ASCII encoding and negative offset

We're setting the encoding from PHP_FUNCTION(mb_strpos), but mbfl_strpos would
discard it, setting it to mbfl_encoding_pass, making zend_memnrstr fail due to a
null-pointer exception.

Fixes GH-11217
Closes GH-11220

show more ...