Commit 589bb2c0 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

row0upd.c Fix a memory overwrite which can happen if we update or delete a > 8000-byte row

parent c3cc2243
......@@ -789,8 +789,8 @@ row_upd_store_row(
node->row = row_build(ROW_COPY_DATA, clust_index, rec, node->heap);
node->ext_vec = mem_heap_alloc(node->heap, rec_get_n_fields(rec));
node->ext_vec = mem_heap_alloc(node->heap, sizeof(ulint)
* rec_get_n_fields(rec));
if (node->is_delete) {
update = NULL;
} else {
......
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