Commit 95856db8 authored by marko's avatar marko

ut_print_buf(): Add a Valgrind check that the buffer is wholly defined.

parent 316fe7a0
...@@ -345,6 +345,8 @@ ut_print_buf( ...@@ -345,6 +345,8 @@ ut_print_buf(
const byte* data; const byte* data;
ulint i; ulint i;
UNIV_MEM_ASSERT_RW(buf, len);
fprintf(file, " len %lu; hex ", len); fprintf(file, " len %lu; hex ", len);
for (data = (const byte*)buf, i = 0; i < len; i++) { for (data = (const byte*)buf, i = 0; i < len; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment