xref: /PHP-7.2/ext/intl/tests/bug72241.phpt (revision 48f06ada)
1--TEST--
2Bug #72241: get_icu_value_internal out-of-bounds read
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7$var1=str_repeat("A", 1000);
8$out = locale_get_primary_language($var1);
9echo strlen($out) . PHP_EOL;
10echo unpack('H*', $out)[1] . PHP_EOL;
11--EXPECT--
120
13