[Bug](funciton) fix repeat coredump when step is to long (#13408)

This commit is contained in:
HappenLee
2022-10-18 09:55:06 +08:00
committed by GitHub
parent 49b060418a
commit f0dbbe5b46
3 changed files with 67 additions and 17 deletions

View File

@ -168,6 +168,7 @@ TEST(function_string_test, function_string_repeat_test) {
{{std::string("hel lo"), 2}, std::string("hel lohel lo")},
{{std::string("hello word"), -1}, std::string("")},
{{std::string(""), 1}, std::string("")},
{{std::string("134"), 1073741825}, Null()}, // bigger than 1GB
{{std::string("HELLO,!^%"), 2}, std::string("HELLO,!^%HELLO,!^%")},
{{std::string(""), 2}, std::string("你你")}};
check_function<DataTypeString, true>(func_name, input_types, data_set);