mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fix a crash in innodb.innodb-wl5522-zip,xtradb
dereferencing of the uninitialized pointer bpade->slot (when compiled without UNIV_DEBUG)
This commit is contained in:
@@ -3825,6 +3825,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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user