[php-src] PR #11220: Fix segfault in mb_strrpos/mb_strripos with ASCII encoding and negative offset
| From: | iluuu1994 | Date: | Wed, 10 May 2023 12:39:21 +0000 |
| Subject: | [php-src] PR #11220: Fix segfault in mb_strrpos/mb_strripos with ASCII encoding and negative offset | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22488@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11220
Author: iluuu1994
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