forked from boostorg/regex
de-fuzz: prevent infinite recursion in recursive expressions (case 14).
This commit is contained in:
@ -434,5 +434,17 @@ void test_tricky_cases3()
|
||||
test(char(0), test_regex_search_tag());
|
||||
}while(0);
|
||||
#endif
|
||||
|
||||
do {
|
||||
const unsigned char bytes[] = { 0x15,0x0,0x28,0x28,0x85,0x7c,0xb5,0x7c,0x7c,0x7c,0x7c,0x0,0x7c,0x7c,0x16,0x7c,0x7c,0x7c,0x67,0x85,0x0,0xb5,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x3d,0x0,0x7c,0x7c,0x29,0x3f,0x28,0x3f,0x31,0x29,0xb5,0x2a,0xb5,0xff,0xb5,0xb5,0x85,0xb5,0x67,0xa,0x2a,0xf7,0x2a,0x7c,0x7c,0x32,0x29,0x5c,0x5a,0x3a,0x6b };
|
||||
std::string str((char*)bytes, sizeof(bytes));
|
||||
test_info<char>::set_info(__FILE__, __LINE__,
|
||||
str.c_str(),
|
||||
perl, str.c_str(), match_default | match_not_dot_newline,
|
||||
make_array(0, 1, -2, -2));
|
||||
test(char(0), test_regex_search_tag());
|
||||
} while(0);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user