--- a/test/buffer_tests.c Tue May 06 12:03:16 2014 +0200 +++ b/test/buffer_tests.c Tue May 06 12:30:12 2014 +0200 @@ -363,6 +363,8 @@ UCX_TEST(test_ucx_buffer_write) { char *buffer = (char*) malloc(32); + memset(buffer, 0, 32); + memset(buffer, 32, 8); for (int i = 8; i < 16 ; i++) { buffer[i] = 40+i; @@ -432,6 +434,7 @@ UCX_TEST(test_ucx_buffer_write_ax) { char *buffer = (char*) malloc(16); + memset(buffer, 0, 16); UcxBuffer *b = ucx_buffer_new(buffer, 16, UCX_BUFFER_AUTOEXTEND | UCX_BUFFER_AUTOFREE);