mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
Add Valgrind checks to compressed BLOB access.
This commit is contained in:
parent
a1250799af
commit
72541c6b0d
1 changed files with 4 additions and 0 deletions
|
@ -3871,6 +3871,8 @@ btr_store_big_rec_extern_fields(
|
||||||
field_ref += local_len;
|
field_ref += local_len;
|
||||||
}
|
}
|
||||||
extern_len = big_rec_vec->fields[i].len;
|
extern_len = big_rec_vec->fields[i].len;
|
||||||
|
UNIV_MEM_ASSERT_RW(big_rec_vec->fields[i].data,
|
||||||
|
extern_len);
|
||||||
|
|
||||||
ut_a(extern_len > 0);
|
ut_a(extern_len > 0);
|
||||||
|
|
||||||
|
@ -4507,6 +4509,7 @@ btr_copy_blob_prefix(
|
||||||
mtr_commit(&mtr);
|
mtr_commit(&mtr);
|
||||||
|
|
||||||
if (page_no == FIL_NULL || copy_len != part_len) {
|
if (page_no == FIL_NULL || copy_len != part_len) {
|
||||||
|
UNIV_MEM_ASSERT_RW(buf, copied_len);
|
||||||
return(copied_len);
|
return(copied_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4690,6 +4693,7 @@ btr_copy_externally_stored_field_prefix_low(
|
||||||
space_id, page_no, offset);
|
space_id, page_no, offset);
|
||||||
inflateEnd(&d_stream);
|
inflateEnd(&d_stream);
|
||||||
mem_heap_free(heap);
|
mem_heap_free(heap);
|
||||||
|
UNIV_MEM_ASSERT_RW(buf, d_stream.total_out);
|
||||||
return(d_stream.total_out);
|
return(d_stream.total_out);
|
||||||
} else {
|
} else {
|
||||||
return(btr_copy_blob_prefix(buf, len, space_id,
|
return(btr_copy_blob_prefix(buf, len, space_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue