mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 20:17:24 +02:00
Regex: Repeating a repeat is not allowed, even if there is a comment block in between the two.
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3479#c2
This commit is contained in:
@ -205,6 +205,11 @@ void test_options()
|
||||
TEST_REGEX_SEARCH("(a (?x)b c)d e", perl, "a bcde", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("(a b(?x)c d (?-x)e f)", perl, "a bcde f", match_default, make_array(0, 8, 0, 8, -2, -2));
|
||||
TEST_REGEX_SEARCH("(a b(?x)c d (?-x)e f)", perl, "abcdef", match_default, make_array(-2, -2));
|
||||
|
||||
TEST_INVALID_REGEX("a++(?#abc)+", perl);
|
||||
TEST_INVALID_REGEX("a++(?#abc)?", perl);
|
||||
TEST_INVALID_REGEX("a++(?#abc)*", perl);
|
||||
TEST_INVALID_REGEX("a++(?#abc){2}", perl);
|
||||
}
|
||||
|
||||
void test_options2()
|
||||
|
Reference in New Issue
Block a user