Bug#31081 server crash in regexp function

Additional fix for valgrind warning
parent 35b20797
......@@ -4255,7 +4255,7 @@ Item_func_regex::regcomp(bool send_error)
res= &conv;
}
if ((error= my_regcomp(&preg, res->c_ptr(),
if ((error= my_regcomp(&preg, res->c_ptr_safe(),
regex_lib_flags, regex_lib_charset)))
{
if (send_error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment