mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
16 lines
299 B
PHP
16 lines
299 B
PHP
--TEST--
|
|
Bug #72061: Out-of-bounds reads in zif_grapheme_stripos with negative offset
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(grapheme_stripos(str_repeat("ABCD", 16384), "A", -201));
|
|
var_dump(grapheme_strpos(str_repeat("ABCD", 16384), "A", -201));
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
int(65336)
|
|
int(65336)
|
|
DONE
|