mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
row0upd.c Fix a memory overwrite which can happen if we update or delete a > 8000-byte row
This commit is contained in:
parent
c3cc2243a5
commit
589bb2c0a6
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue