xref: /PHP-5.6/ext/mbstring/tests/bug77381.phpt (revision c95daa9c)
1--TEST--
2Bug #77381 (heap buffer overflow in multibyte match_at)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7var_dump(mb_ereg("000||0\xfa","0"));
8var_dump(mb_ereg("(?i)000000000000000000000\xf0",""));
9var_dump(mb_ereg("0000\\"."\xf5","0"));
10var_dump(mb_ereg("(?i)FFF00000000000000000\xfd",""));
11?>
12--EXPECT--
13int(1)
14bool(false)
15bool(false)
16bool(false)
17