mariadb/storage
Marko Mäkelä 8dc70c862b MDEV-16376 ASAN: heap-use-after-free in gcol.innodb_virtual_debug
After a failed ADD INDEX, dict_index_remove_from_cache_low()
could iterate the index fields and dereference a freed virtual
column object when trying to remove the index from the v_indexes
of the virtual column.

This regression was caused by a merge of
MDEV-16119 InnoDB lock->index refers to a freed object.

ha_innobase_inplace_ctx::clear_added_indexes(): Detach the
indexes of uncommitted indexes from virtual columns, so that
the iteration in dict_index_remove_from_cache_low() can be avoided.

ha_innobase::prepare_inplace_alter_table(): Ignore uncommitted
corrupted indexes when rejecting ALTER TABLE. (This minor bug was
revealed by the extension of the test case.)

dict_index_t::detach_columns(): Detach an index from virtual columns.
Invoked by both dict_index_remove_from_cache_low() and
ha_innobase_inplace_ctx::clear_added_indexes().

dict_col_t::detach(const dict_index_t& index): Detach an index from
a column.

dict_col_t::is_virtual(): Replaces dict_col_is_virtual().

dict_index_t::has_virtual(): Replaces dict_index_has_virtual().
2018-06-04 15:55:37 +03:00
..
archive Fixed archive to work with record[1] 2018-05-24 18:55:18 +03:00
blackhole
cassandra Merge branch '10.1' into 10.2 2017-03-30 12:48:42 +02:00
connect Fixed compiler warnings 2018-05-26 12:49:25 +03:00
csv Merge 10.0 into 10.1 2017-05-23 08:59:03 +03:00
example
federated MDEV-14272 Mariadb crashes with signal 11 when using federatedx engine and galera 2017-12-28 02:13:25 +01:00
federatedx Merge branch 'github/10.1' into 10.2 2018-02-06 14:50:50 +01:00
heap Remove most 'register' use in C++ 2018-04-24 12:48:27 +03:00
innobase MDEV-16376 ASAN: heap-use-after-free in gcol.innodb_virtual_debug 2018-06-04 15:55:37 +03:00
maria Merge remote-tracking branch 'origin/10.1' into 10.2 2018-05-24 18:57:52 +03:00
mroonga Merge branch '10.1' into 10.2 2018-05-10 13:01:42 +02:00
myisam Remove most 'register' use in C++ 2018-04-24 12:48:27 +03:00
myisammrg Remove most 'register' use in C++ 2018-04-24 12:48:27 +03:00
oqgraph Merge 10.1 into 10.2 2018-04-24 09:39:45 +03:00
perfschema Merge branch '10.1' into 10.2 2018-05-10 13:01:42 +02:00
rocksdb MDEV-16310: rocksdb.check_ignore_unknown_options fails on OS X 2018-05-28 13:02:48 +03:00
sequence Fix several compile warnings on Windows 2017-03-17 08:56:57 +00:00
sphinx Merge 10.1 into 10.2 2018-05-29 16:52:12 +03:00
spider MDEV-12900: spider tests failed in buildbot with valgrind 2018-05-21 18:16:03 -07:00
test_sql_discovery MDEV-13712 Spelling errors in the error message 2017-09-18 10:12:23 +02:00
tokudb MDEV-16183 TokuDB tests fail on Fedora 28 2018-05-16 23:24:14 +02:00
xtradb Merge 10.1 into 10.2 2018-05-29 16:52:12 +03:00