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

This commit is contained in:
heikki@donna.mysql.fi 2001-08-08 22:31:44 +03:00
parent c3cc2243a5
commit 589bb2c0a6

View file

@ -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 {