You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
The function btr_cur_pessimistic_update() takes two mem_heap_t objects. One
heap contains the dtuple_t object and this heap should not be emptied, while
the other heap contains temporary stuff and can be emptied. This function was
wrongly used in the DDTableBuffer::replace() routine by passing the same heap.
Since it was getting emptied, there was subsequently a "memory use after free"
problem.
Solution:
Pass two separate memory heap objects to btr_cur_pessimistic_update().
rb#19781 approved by Bin Su.
0 commit comments