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

This commit is contained in:
marko 2007-09-06 12:25:38 +00:00
parent 4867227690
commit 55e009428e

View file

@ -223,6 +223,8 @@ mem_init_buf(
{
byte* ptr;
UNIV_MEM_ASSERT_W(buf, n);
for (ptr = buf; ptr < buf + n; ptr++) {
if (ut_rnd_gen_ibool()) {
@ -247,6 +249,8 @@ mem_erase_buf(
{
byte* ptr;
UNIV_MEM_ASSERT_W(buf, n);
for (ptr = buf; ptr < buf + n; ptr++) {
if (ut_rnd_gen_ibool()) {
*ptr = 0xDE;