Fix a bug in regex

Due to dereferencing a pointer which may be invalidated
This commit is contained in:
Milo Yip
2016-04-17 11:59:09 +08:00
parent 8f4e99b2e5
commit be352d9548
2 changed files with 9 additions and 4 deletions

View File

@@ -584,4 +584,9 @@ TEST(Regex, Issue538) {
EXPECT_TRUE(re.IsValid());
}
TEST(Regex, Issue583) {
Regex re("[0-9]{99999}");
ASSERT_TRUE(re.IsValid());
}
#undef EURO