• Alexander Barkov's avatar
    MDEV-23269 SIGSEGV in ft_boolean_check_syntax_string on setting ft_boolean_syntax · eadd8788
    Alexander Barkov authored
    The crash happened because my_isalnum() does not support character
    sets with mbminlen>1.
    
    The value of "ft_boolean_syntax" is converted to utf8 in do_string_check().
    So calling my_isalnum() is combination with "default_charset_info" was wrong.
    
    Adding new parameters (size_t length, CHARSET_INFO *cs) to
    ft_boolean_check_syntax_string() and passing self->charset(thd)
    as the character set.
    eadd8788
mysqld.cc 353 KB