List:Commits« Previous MessageNext Message »
From:marko.makela Date:May 19 2010 7:58am
Subject:bzr commit into mysql-5.1-innodb branch (marko.makela:3470)
View as plain text  
#At file:///home/marko/innobase/dev/mysql/5.1-innodb/ based on revid:marko.makela@stripped65uudm3b7u

 3470 Marko Mäkelä	2010-05-19
      Add Valgrind checks to compressed BLOB access.

    modified:
      storage/innodb_plugin/btr/btr0cur.c
=== modified file 'storage/innodb_plugin/btr/btr0cur.c'
--- a/storage/innodb_plugin/btr/btr0cur.c	revid:marko.makela@stripped00519075613-p3uhza65uudm3b7u
+++ b/storage/innodb_plugin/btr/btr0cur.c	revid:marko.makela@stripped3-4gl3uijo6cwjtcf9
@@ -3871,6 +3871,8 @@ btr_store_big_rec_extern_fields(
 			field_ref += local_len;
 		}
 		extern_len = big_rec_vec->fields[i].len;
+		UNIV_MEM_ASSERT_RW(big_rec_vec->fields[i].data,
+				   extern_len);
 
 		ut_a(extern_len > 0);
 
@@ -4507,6 +4509,7 @@ btr_copy_blob_prefix(
 		mtr_commit(&mtr);
 
 		if (page_no == FIL_NULL || copy_len != part_len) {
+			UNIV_MEM_ASSERT_RW(buf, copied_len);
 			return(copied_len);
 		}
 
@@ -4690,6 +4693,7 @@ btr_copy_externally_stored_field_prefix_
 				      space_id, page_no, offset);
 		inflateEnd(&d_stream);
 		mem_heap_free(heap);
+		UNIV_MEM_ASSERT_RW(buf, d_stream.total_out);
 		return(d_stream.total_out);
 	} else {
 		return(btr_copy_blob_prefix(buf, len, space_id,

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20100519075843-4gl3uijo6cwjtcf9.bundle
Thread
bzr commit into mysql-5.1-innodb branch (marko.makela:3470) marko.makela19 May