mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 12:07:28 +02:00
Fix buffer over-run error when parsing invalid regex.
See: https://svn.boost.org/trac/boost/ticket/12222.
This commit is contained in:
@ -61,6 +61,7 @@ void basic_tests()
|
||||
TEST_REGEX_SEARCH("\\(\\)", basic, "", match_default, make_array(0, 0, 0, 0, -2, -2));
|
||||
TEST_INVALID_REGEX("\\(", basic);
|
||||
TEST_INVALID_REGEX("\\)", basic);
|
||||
TEST_INVALID_REGEX("\\", basic);
|
||||
TEST_INVALID_REGEX("\\(aa", basic);
|
||||
TEST_INVALID_REGEX("aa\\)", basic);
|
||||
TEST_REGEX_SEARCH("()", basic, "()", match_default, make_array(0, 2, -2, -2));
|
||||
|
Reference in New Issue
Block a user