MDEV-34187 On startup: UBSAN: runtime error: applying zero offset to null pointer in skip_trailing_space and my_hash_sort_utf8mb3_general1400_nopad_as_ci

The last element in func_array_oracle_overrides[] equal to {0,0}
was erroneously passed to Native_functions_hash::replace().
Removing this element.
This commit is contained in:
Alexander Barkov 2024-05-20 13:29:59 +04:00
parent dc38d8ea80
commit 28073a979f

View file

@ -5687,8 +5687,7 @@ const Native_func_registry func_array_oracle_overrides[] =
{ { STRING_WITH_LEN("REGEXP_REPLACE") },
BUILDER(Create_func_regexp_replace_oracle)},
{ { STRING_WITH_LEN("RPAD") }, BUILDER(Create_func_rpad_oracle)},
{ { STRING_WITH_LEN("RTRIM") }, BUILDER(Create_func_rtrim_oracle)},
{ {0, 0}, NULL}
{ { STRING_WITH_LEN("RTRIM") }, BUILDER(Create_func_rtrim_oracle)}
};
Native_func_registry_array