Skip to content

Commit 11942e7

Browse files
committed
do not abort MEM_ZERO check if TEST_ALWAYS_RUN_TO_END is defined
1 parent 1ad8b28 commit 11942e7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/src/memory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ void wc_MemZero_Check(void* addr, size_t len)
302302
fprintf(stderr, "\n[MEM_ZERO] %s:%p + %ld is not zero\n",
303303
memZero[i].name, memZero[i].addr, j);
304304
fprintf(stderr, "[MEM_ZERO] Checking %p:%ld\n", addr, len);
305+
#ifndef TEST_ALWAYS_RUN_TO_END
305306
abort();
307+
#endif
306308
}
307309
}
308310
/* Update next index to write to. */

0 commit comments

Comments
 (0)