Commit 5b205458 authored by Eugene Kosov's avatar Eugene Kosov

MDEV-20097 potential use-after-free

row_merge_read_clustered_index(): make buf always equals to merge_buf[i]
parent f616e2b9
......@@ -1916,6 +1916,7 @@ row_merge_read_clustered_index(
UNIV_MEM_INVALID(&block[0], srv_sort_buf_size);
merge_buf[i] = row_merge_buf_empty(buf);
buf = merge_buf[i];
if (UNIV_LIKELY(row != NULL)) {
/* Try writing the record again, now
......
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