1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-36351 MariaDB crashes when trying to access information_schema.users under --skip-grant-tables

This commit is contained in:
Sergei Golubchik
2025-03-25 11:11:01 +01:00
parent 72dc054a9e
commit cd7a454c23
3 changed files with 16 additions and 22 deletions

View File

@@ -13127,7 +13127,12 @@ static int fill_users_schema_record(THD *thd, TABLE * table, ACL_USER *user)
int fill_users_schema_table(THD *thd, TABLE_LIST *tables, COND *cond)
{
int res= 0;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
/* --skip-grants */
if (!initialized)
return res;
bool see_whole_table= check_access(thd, SELECT_ACL, "mysql", NULL, NULL,
true, true) == 0;
TABLE *table= tables->table;