From 8116295c18a16fedf97e443cf7587d98f1a4f6bc Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 9 Jan 2025 17:27:29 +1100 Subject: [PATCH] MDEV-35554 runtime error: call to function show_cached_thread_count() through pointer to incorrect function type. The argument is void* rather than char*. This shows up with UBSAN testing under clang. --- sql/mysqld.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 31d9084f2356a..e9aed2bad7117 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -7360,7 +7360,7 @@ static int show_threadpool_threads(THD *, SHOW_VAR *var, void *buff, #endif -static int show_cached_thread_count(THD *thd, SHOW_VAR *var, char *buff, +static int show_cached_thread_count(THD *thd, SHOW_VAR *var, void *buff, enum enum_var_type scope) { var->type= SHOW_LONG;