mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Silence some more bogus Valgrind warnings on non-32-bit systems. (Bug #53307)
This commit is contained in:
@@ -3117,8 +3117,13 @@ page_zip_validate_low(
|
||||
temp_page_zip in a debugger when running valgrind --db-attach. */
|
||||
VALGRIND_GET_VBITS(page, temp_page, UNIV_PAGE_SIZE);
|
||||
UNIV_MEM_ASSERT_RW(page, UNIV_PAGE_SIZE);
|
||||
# if UNIV_WORD_SIZE == 4
|
||||
VALGRIND_GET_VBITS(page_zip, &temp_page_zip, sizeof temp_page_zip);
|
||||
/* On 32-bit systems, there is no padding in page_zip_des_t.
|
||||
On other systems, Valgrind could complain about uninitialized
|
||||
pad bytes. */
|
||||
UNIV_MEM_ASSERT_RW(page_zip, sizeof *page_zip);
|
||||
# endif
|
||||
VALGRIND_GET_VBITS(page_zip->data, temp_page,
|
||||
page_zip_get_size(page_zip));
|
||||
UNIV_MEM_ASSERT_RW(page_zip->data, page_zip_get_size(page_zip));
|
||||
|
||||
Reference in New Issue
Block a user