Details
Description
A search git grep 'SHOW_VAR.*char' reveals many functions that do not match the signature of mysql_show_var_func but are registered as function callbacks.
These should be fixed, to avoid errors like this:
10.4 832e96deb6f368591dcb35a4fa33b2fd770aa17a |
/mariadb/10.4/sql/sql_show.cc:3843:7: runtime error: call to function show_memory_used(THD*, st_mysql_show_var*, char*, system_status_var*, enum_var_type) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type)'
|
/mariadb/10.4/sql/mysqld.cc:7612: note: show_memory_used(THD*, st_mysql_show_var*, char*, system_status_var*, enum_var_type) defined here
|
Some of these functions are defined with a mismatching number of parameters as well.
Attachments
Issue Links
- is blocked by
-
MDEV-26272 The macro MASTER_INFO_VAR invokes undefined behaviour
- Closed
-
MDEV-33157 runtime error: call to function wsrep_plugin_init(void*) through pointer to incorrect function type
- Closed
- relates to
-
MDEV-25454 Make MariaDB server UBSAN safe
- Confirmed