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
-
CONC-711 UBSAN: client_mpvio_write_packet through pointer to incorrect function
- Closed
-
MDEV-34770 UBSAN: runtime error: load of address 0x... with insufficient space for an object of type 'uchar' in sys_vars.inl
- Closed