Commit aebefbe1 authored by marko's avatar marko

branches/zip: mem_init_buf(), mem_erase_buf(): Add UNIV_MEM_ASSERT_W().

parent f4496824
...@@ -223,6 +223,8 @@ mem_init_buf( ...@@ -223,6 +223,8 @@ mem_init_buf(
{ {
byte* ptr; byte* ptr;
UNIV_MEM_ASSERT_W(buf, n);
for (ptr = buf; ptr < buf + n; ptr++) { for (ptr = buf; ptr < buf + n; ptr++) {
if (ut_rnd_gen_ibool()) { if (ut_rnd_gen_ibool()) {
...@@ -247,6 +249,8 @@ mem_erase_buf( ...@@ -247,6 +249,8 @@ mem_erase_buf(
{ {
byte* ptr; byte* ptr;
UNIV_MEM_ASSERT_W(buf, n);
for (ptr = buf; ptr < buf + n; ptr++) { for (ptr = buf; ptr < buf + n; ptr++) {
if (ut_rnd_gen_ibool()) { if (ut_rnd_gen_ibool()) {
*ptr = 0xDE; *ptr = 0xDE;
......
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