diff options
author | heikki@donna.mysql.fi <> | 2001-08-08 22:31:44 +0300 |
---|---|---|
committer | heikki@donna.mysql.fi <> | 2001-08-08 22:31:44 +0300 |
commit | 589bb2c0a6338fb2d9a81b598e3088169c4e8cba (patch) | |
tree | 038ac5c2afa0282eaa5e710d515fb47ee76d0506 /innobase | |
parent | c3cc2243a57c4bcb75cd278458ffe6a1a5ccbf5f (diff) | |
download | mariadb-git-589bb2c0a6338fb2d9a81b598e3088169c4e8cba.tar.gz |
row0upd.c Fix a memory overwrite which can happen if we update or delete a > 8000-byte row
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/row/row0upd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/innobase/row/row0upd.c b/innobase/row/row0upd.c index d339474df61..67a5925a3f5 100644 --- a/innobase/row/row0upd.c +++ b/innobase/row/row0upd.c @@ -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 { |