Details
Description
D134831 introduced a compile-time check -Wcast-function-type-strict for something that had been reported by -fsanitize=undefined for a long time.
The flag is similar to the non-strict GCC check that we have for a long time enabled by -Wextra.
We should fix all occurrences of this warning and enable this warning in our build script when available, so that the mandatory MemorySanitizer builder that is based on clang-16 or later would fail already at compilation time.
Attachments
Issue Links
- includes
-
MDEV-35530 UBSAN: runtime error: call to function get_sys_var_length on server startup or version query
- Closed
-
MDEV-35531 UBSAN: runtime error: call to function init_simple_key_cache through pointer to incorrect function type
- Closed
-
MDEV-35532 UBSAN: runtime error: call to function FT_STOPWORD_cmp through pointer to incorrect function
- Closed
-
MDEV-35533 UBSAN: runtime error: call to function sort_keys(st_key*, st_key*) through pointer to incorrect function type
- Closed
-
MDEV-35534 UBSAN: runtime error: call to function thd_decrement_pending_ops through pointer to incorrect function type
- Closed
-
MDEV-35535 UBSAN: runtime error: call to function free_user_var through pointer to incorrect function type
- Closed
-
MDEV-35536 UBSAN: runtime error: call to function end_simple_key_cache through pointer to incorrect function type
- Closed
-
MDEV-35539 UBSAN: runtime error: call to function adjust_optimizer_costs() through pointer to incorrect function type
- Closed
- is blocked by
-
MDEV-33161 Function pointer signature mismatch in LF_HASH
- Closed
- relates to
-
MDEV-25454 Make MariaDB server UBSAN safe
- Confirmed
-
MDEV-34408 Facilitate the addition of warnings into the build system
- Closed
-
MDEV-34889 The parameters of qsort_cmp2 are in an inefficient order
- Confirmed
-
MDEV-35698 UBSAN: runtime error: call to function mysql_sys_var_int through pointer to incorrect function type in spider_param_force_commit
- Closed
-
MDEV-35726 runtime error: call to function mysql_sys_var_int through pointer to incorrect function type in thd_lock_wait_timeout on ALTER
- Closed
-
MDEV-35735 runtime error: call to function spider_direct_sql, spider_flush_table_mon_cache, spider_copy_tables through pointer to incorrect function type in udf_handler::val_in
- Closed
-
MDEV-35736 UBSAN: runtime error: call to function mysql_sys_var_long through pointer to incorrect function type in myrocks::get_or_create_tx and other myrocks::* functions
- Closed
-
CONC-711 UBSAN: client_mpvio_write_packet through pointer to incorrect function
- Closed
-
MDEV-34512 UBSAN system variable type mismatches for ha_myisam.cc and ha_maria.cc
- Confirmed
-
MDEV-34770 UBSAN: runtime error: load of address 0x... with insufficient space for an object of type 'uchar' in sys_vars.inl
- Closed
-
MDEV-35554 runtime error: call to function show_cached_thread_count()/show_binlog_space_total() through pointer to incorrect function type
- Closed
-
MDEV-35623 UBSAN: function-type-mismatch in spider_param_conn_recycle[_mode/_strict], spider_param_internal_xa_snapshot, and spider_param_block_size
- Closed
-
MDEV-35687 Various UBSAN function-type-mismatch errors when using MTR in maria_open, mi_open, _ma_open_datafile, mi_open_datafile and thr_multi_lock
- Closed
-
MDEV-35822 UBSAN: UndefinedBehaviorSanitizer: function-type-mismatch in process_timers when using MAX_EXECUTION_TIME
- Open