summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug72241.phpt
blob: 7ac5a5b503e7191f72f02631061b4fa81ca52a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #72241: get_icu_value_internal out-of-bounds read
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php
$var1=str_repeat("A", 1000);
$out = locale_get_primary_language($var1);
echo strlen($out) . PHP_EOL;
echo unpack('H*', $out)[1] . PHP_EOL;
--EXPECT--
0