Skip to content

Commit

Permalink
MDEV-35554 runtime error: call to function show_cached_thread_count()
Browse files Browse the repository at this point in the history
through pointer to incorrect function type.

The argument is void* rather than char*.

This shows up with UBSAN testing under clang.
  • Loading branch information
grooverdan committed Jan 9, 2025
1 parent 505b712 commit 8116295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8116295

Please sign in to comment.