diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-04-16 23:14:28 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-05-10 12:48:30 +0200 |
commit | 92a13148e80c30422ae5460032169cbe1946fa6d (patch) | |
tree | ea80b092ccfebfb9dea57530088caa3c5cb63d2b /sql-common | |
parent | 88a0bb83dfa1746571c99503f1cfd586f63e9a17 (diff) | |
download | mariadb-git-92a13148e80c30422ae5460032169cbe1946fa6d.tar.gz |
MDEV-15746 ASAN heap-use-after-free in Item_change_list::rollback_item_tree_changes on ALTER executed as PS
don't try to convert a default value string from a user character set
into a column character set, if this particular default value string did
not came from the user at all (that is, if it's an ALTER TABLE and the
default value string is the *old* default value of the unaltered
column).
This used to crash, because old defaults are allocated on the old
table's memroot, which is freed mid-ALTER when the old table is closed.
So thd->rollback_item_tree_changes() at the end of the ALTER was writing
into the freed memory.
Diffstat (limited to 'sql-common')
0 files changed, 0 insertions, 0 deletions