diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-04-11 00:28:42 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-04-11 00:28:42 +0200 |
commit | 4a7472bbf25471a3ffe6ad1b17fd9f4c27e8aaab (patch) | |
tree | b5b09e9f7f764ecebbef40e1774a9a0f031e768e /storage/xtradb/buf | |
parent | a73676b2e600d32f45e0181237c31e91df1483b4 (diff) | |
download | mariadb-git-4a7472bbf25471a3ffe6ad1b17fd9f4c27e8aaab.tar.gz |
fix a crash in innodb.innodb-wl5522-zip,xtradb
dereferencing of the uninitialized pointer bpade->slot
(when compiled without UNIV_DEBUG)
Diffstat (limited to 'storage/xtradb/buf')
-rw-r--r-- | storage/xtradb/buf/buf0buf.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/xtradb/buf/buf0buf.cc b/storage/xtradb/buf/buf0buf.cc index 29e9ef5f938..dc2b81872ae 100644 --- a/storage/xtradb/buf/buf0buf.cc +++ b/storage/xtradb/buf/buf0buf.cc @@ -3895,6 +3895,8 @@ err_exit: page_zip_set_size(&bpage->zip, zip_size); bpage->zip.data = (page_zip_t*) data; + bpage->slot = NULL; + mutex_enter(&buf_pool->zip_mutex); UNIV_MEM_DESC(bpage->zip.data, page_zip_get_size(&bpage->zip)); |