From 6b25b945b19a7638b0538e04de4f72991f353356 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 20 Jun 2007 05:41:54 +0200 Subject: [PATCH] Bug #29229 memory corruption in dbtup --- storage/ndb/src/kernel/vm/RWPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/ndb/src/kernel/vm/RWPool.cpp b/storage/ndb/src/kernel/vm/RWPool.cpp index 192a8f87402..056b2149e2a 100644 --- a/storage/ndb/src/kernel/vm/RWPool.cpp +++ b/storage/ndb/src/kernel/vm/RWPool.cpp @@ -140,7 +140,7 @@ RWPool::release(Ptr ptr) Uint32 ff = page->m_first_free; * (record_ptr + m_record_info.m_offset_next_pool) = ff; - page->m_first_free = ptr.i; + page->m_first_free = ptr.i & POOL_RECORD_MASK; page->m_ref_count = ref_cnt - 1; if (ff == REC_NIL)