From f014d5872b0a6876d9bfa2f9080bb7ed0c635cd3 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 9 Jan 2025 17:32:44 +1100 Subject: [PATCH] MDEV-35554 call to function show_binlog_space_total() 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 d575ed1aaa8..980eaedfd5b 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -7372,7 +7372,7 @@ static int show_max_memory_used(THD *thd, SHOW_VAR *var, void *buff, } -static int show_binlog_space_total(THD *thd, SHOW_VAR *var, char *buff, +static int show_binlog_space_total(THD *thd, SHOW_VAR *var, void *buff, struct system_status_var *status_var, enum enum_var_type scope) {