summaryrefslogtreecommitdiff
path: root/sql/sql_array.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-12-06 01:17:44 +0100
committerSergei Golubchik <serg@mariadb.org>2018-12-06 14:22:07 +0100
commitdaca7e70d70cfc59b4139239bbd09b7c63912be9 (patch)
tree11c96751aea0994d8b2ea69b0f982b8b85376114 /sql/sql_array.h
parenteed0013bedcf13b2f95acfa793626e758dd0489b (diff)
downloadmariadb-git-daca7e70d70cfc59b4139239bbd09b7c63912be9.tar.gz
MDEV-17898 FLUSH PRIVILEGES crashes server with segfault
merge_role_db_privileges() was remembering pointers into Dynamic_array acl_dbs, and later was using them, while pushing more elements into the array. But pushing can cause realloc, and it can invalidate all pointers. Fix: remember and use indexes of elements, not pointers.
Diffstat (limited to 'sql/sql_array.h')
0 files changed, 0 insertions, 0 deletions