diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-07-31 11:38:23 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-07-31 11:54:35 +0300 |
commit | f35d1721039f8f115fc55e8f4b4d2bb4012161d1 (patch) | |
tree | fb8932f642c981958ae7e6140ae0dae2b95c9ec4 /sql-common | |
parent | fd0abc890f99e2b5ca1b8ae4cb0dc3968eef1208 (diff) | |
download | mariadb-git-f35d1721039f8f115fc55e8f4b4d2bb4012161d1.tar.gz |
MDEV-23198 Crash in REPLACE
row_vers_impl_x_locked_low(): clust_offsets may point to memory
that is allocated by mem_heap_alloc() and may have been freed.
For initializing clust_offsets, try to use the stack-allocated
buffer instead of a pointer that may point to freed memory.
This fixes a regression that was introduced in
commit f0aa073f2bf3d8d85b3d028df89cdb4cdfc4002d (MDEV-20950).
Diffstat (limited to 'sql-common')
0 files changed, 0 insertions, 0 deletions