xref: /PHP-8.3/ext/intl/tests/bug72061.phpt (revision 74859783)
1--TEST--
2Bug #72061: Out-of-bounds reads in zif_grapheme_stripos with negative offset
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8var_dump(grapheme_stripos(str_repeat("ABCD", 16384), "A", -201));
9var_dump(grapheme_strpos(str_repeat("ABCD", 16384), "A", -201));
10?>
11DONE
12--EXPECT--
13int(65336)
14int(65336)
15DONE
16