mirror of
https://github.com/MariaDB/server.git
synced 2025-04-11 17:55:34 +02: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:
parent
a73676b2e6
commit
4a7472bbf2
2 changed files with 4 additions and 0 deletions
storage
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue