aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_wipe.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-08 22:29:35 +0200
committerMattias Andrée <m@maandree.se>2026-05-08 22:29:35 +0200
commit2d3a573977417d917c16742d8d9d8ead047d0ebc (patch)
treecaeac52856a9df0478e2bee53e5dda1f84422461 /librecrypt_wipe.c
parentAdd DEFAULT_SUPPORT option and improve DEPENDENCIES (diff)
downloadlibrecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.gz
librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.bz2
librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.xz
Misc
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_wipe.c')
-rw-r--r--librecrypt_wipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/librecrypt_wipe.c b/librecrypt_wipe.c
index a704ef0..ac99d63 100644
--- a/librecrypt_wipe.c
+++ b/librecrypt_wipe.c
@@ -44,6 +44,7 @@ main(void)
char *buf;
SET_UP_ALARM();
+ INIT_RESOURCE_TEST();
#if defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wnonnull"
@@ -56,8 +57,9 @@ main(void)
buf = malloc(256u);
memset(buf, 99, 256u);
librecrypt_wipe(buf, 256u);
- free(buf); /* TODO should test memory is wiped */
+ free(buf);
+ STOP_RESOURCE_TEST();
return 0;
}