xref: /php-src/ext/mbstring/tests/bug77371.phpt (revision 74859783)
1--TEST--
2Bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
8?>
9--FILE--
10<?php
11var_dump(mb_ereg("()0\xfc00000\xfc00000\xfc00000\xfc",""));
12?>
13--EXPECTF--
14Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
15bool(false)
16