diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-07-23 16:17:59 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-07-31 09:00:05 +0200 |
commit | 78f09b12d368b7b01e9dc09f84c19b3a3d6bad91 (patch) | |
tree | 215eb3008da9ba8123840b0e0d0830e4168420c7 /mysql-test/main/grant5.result | |
parent | a874b6c4459a2dd028d6c4a15e43eeb556183de0 (diff) | |
download | mariadb-git-78f09b12d368b7b01e9dc09f84c19b3a3d6bad91.tar.gz |
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.
Diffstat (limited to 'mysql-test/main/grant5.result')
-rw-r--r-- | mysql-test/main/grant5.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/main/grant5.result b/mysql-test/main/grant5.result index df09b1fcc64..2cc1c11f7d8 100644 --- a/mysql-test/main/grant5.result +++ b/mysql-test/main/grant5.result @@ -242,4 +242,10 @@ disconnect con1; connection default; drop database db; drop user foo; +call mtr.add_suppression('mysql.host table is damaged'); +create table mysql.host (c1 int); +insert mysql.host values (1); +flush privileges; +ERROR HY000: Fatal error: mysql.host table is damaged or in unsupported 3.20 format +drop table mysql.host; # End of 10.4 tests |