summaryrefslogtreecommitdiff
path: root/storage/maria/ma_write.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2015-11-06 13:18:40 +0200
committerMonty <monty@mariadb.org>2015-11-10 13:46:57 +0200
commit05ed9fec03f1ff03bf44f2de1484cbe142763ced (patch)
treef4f8a9a0eb9aa7be5cc86bb94d60b1e239bf2240 /storage/maria/ma_write.c
parente3868ee07273b1ea2c495d92891fd7d1ed1eea9e (diff)
downloadmariadb-git-05ed9fec03f1ff03bf44f2de1484cbe142763ced.tar.gz
Use MEM_CHECK_DEFINED to check if blocks contain uninitialized data
Fixed failure in tests when running optimized code - Some assert() was using code that had to be executed Fixed copying of some uninitialized data (fixed valgrind warning)
Diffstat (limited to 'storage/maria/ma_write.c')
-rw-r--r--storage/maria/ma_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_write.c b/storage/maria/ma_write.c
index 328f5674aef..f57c462e7c0 100644
--- a/storage/maria/ma_write.c
+++ b/storage/maria/ma_write.c
@@ -1319,7 +1319,7 @@ static int _ma_balance_page(MARIA_HA *info, MARIA_KEYDEF *keyinfo,
pos= right_page->buff + share->keypage_header + length;
memcpy(father_key_pos, pos, (size_t) k_length);
bmove(right_page->buff + share->keypage_header,
- pos + k_length, new_right_length);
+ pos + k_length, new_right_length - share->keypage_header);
if (share->now_transactional)
{