• Vicențiu Ciorbaru's avatar
    MDEV-10563 Crash during shutdown in Master_info_index::any_slave_sql_running · 4eb898bb
    Vicențiu Ciorbaru authored
    In well defined C code, the "this" pointer is never NULL. Currently, we
    were potentially dereferencing a NULL pointer (master_info_index). GCC v6
    removes any "if (!this)" conditions as it assumes this is always a
    non-null pointer. In order to prevent undefined behaviour, check the
    pointer before dereferencing and remove the check within member
    functions.
    4eb898bb
item_func.cc 180 KB