MDEV-22904 Compressed row format table tries to access freed blob

- This is a regression of MDEV-21174(56f6dab1d0e5a464ea49c1e5efb0032a0f5cea3e).
InnoDB resets the BTR_EXTERN_LEN value at wrong offset.
This commit is contained in:
Thirunarayanan Balathandayuthapani 2020-06-17 21:03:00 +05:30
commit 815fc98732

View file

@ -7712,7 +7712,7 @@ btr_free_externally_stored_field(
if (UNIV_LIKELY_NULL(block->page.zip.data)) {
mach_write_to_4(field_ref + BTR_EXTERN_PAGE_NO,
next_page_no);
memset(field_ref + BTR_EXTERN_LEN, 0, 4);
memset(field_ref + BTR_EXTERN_LEN + 4, 0, 4);
page_zip_write_blob_ptr(block, rec, index,
offsets, i, &mtr);
} else {