mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 02:53:13 +01:00
Fix a bug in regex
Due to dereferencing a pointer which may be invalidated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user