Commit b9437998 authored by marko's avatar marko

branches/zip: row_merge_block_merge(): Add an assertion against buffer

overflow.
parent 3f3a0c53
...@@ -1029,6 +1029,9 @@ row_merge_block_merge( ...@@ -1029,6 +1029,9 @@ row_merge_block_merge(
offset3 = row_merge_store_rec_to_block( offset3 = row_merge_store_rec_to_block(
mrec1->rec, rec_offsets, new_block1, offset3); mrec1->rec, rec_offsets, new_block1, offset3);
} else { } else {
ut_a(row_merge_rec_fits_to_block(rec_offsets,
offset4));
offset4 = row_merge_store_rec_to_block( offset4 = row_merge_store_rec_to_block(
mrec1->rec, rec_offsets, new_block2, offset4); mrec1->rec, rec_offsets, new_block2, offset4);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment