Commit 9c29d068 authored by Eugene Kosov's avatar Eugene Kosov

MDEV-20097 potential use-after-free

row_merge_read_clustered_index(): fix one more place with buf and merge_buf[i]
parent 6a55aeb2
......@@ -2431,6 +2431,7 @@ row_merge_read_clustered_index(
BTR_SEARCH_LEAF, &pcur,
&mtr);
buf = row_merge_buf_empty(buf);
merge_buf[i] = buf;
/* Restart the outer loop on the
record. We did not insert it
into any index yet. */
......
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