mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-23009 SIGSEGV in get_field from acl_load (on optimized builds)
Classes that handle privilege tables (like Tables_priv_table) could read some columns conditionally but they expect a certain minimal number of colunms always to exist. Add a check for a minimal required number of columns in privilege tables, don't use a table that has fewer columns than required.
This commit is contained in:
@ -148,7 +148,7 @@ call mtr.add_suppression('mysql.user table is damaged');
|
||||
rename table mysql.user to mysql.user1;
|
||||
create table mysql.user (Host char(100), User char(100));
|
||||
flush privileges;
|
||||
ERROR HY000: Unknown error
|
||||
ERROR HY000: Fatal error: mysql.user table is damaged or in unsupported 3.20 format
|
||||
drop table mysql.user;
|
||||
rename table mysql.user1 to mysql.user;
|
||||
# switching back from mysql.user to mysql.global_priv
|
||||
|
Reference in New Issue
Block a user