• davi@endora.local's avatar
    Bug#31850 Test crashes in "embedded" server · 968af721
    davi@endora.local authored
    The mysql_change_user command fails to properly update the database pointer
    when no database is selected, leading to "use after free" errors. The same
    happens on the user privilege pointer in the thread security context.
    
    The solution is to properly reset and update the database name. Also update
    the user_priv pointer so that it doesn't point to freed memory.
    968af721
sql_connect.cc 33.8 KB