aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_wipe_str.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-01 17:45:39 +0200
committerMattias Andrée <m@maandree.se>2026-05-01 17:45:39 +0200
commitadfa8e1265f6155d1a582baa9929af198bb5d4de (patch)
treee3cee62aa5a8768621cd294295f787b8cc54141b /librecrypt_wipe_str.c
parentAdd librecrypt.7 and README (diff)
downloadlibrecrypt-adfa8e1265f6155d1a582baa9929af198bb5d4de.tar.gz
librecrypt-adfa8e1265f6155d1a582baa9929af198bb5d4de.tar.bz2
librecrypt-adfa8e1265f6155d1a582baa9929af198bb5d4de.tar.xz
Misc
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_wipe_str.c')
-rw-r--r--librecrypt_wipe_str.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/librecrypt_wipe_str.c b/librecrypt_wipe_str.c
index 8c31cdc..81f9d54 100644
--- a/librecrypt_wipe_str.c
+++ b/librecrypt_wipe_str.c
@@ -25,13 +25,19 @@ main(void)
{
char buf[64u];
size_t i;
+
SET_UP_ALARM();
+
+ /* Check NULL is supported */
librecrypt_wipe_str(NULL);
+
+ /* Check normal cases */
CHECK("");
CHECK("hello");
CHECK("hello developer");
CHECK(" hello developer ");
CHECK("\1 hello developer \1");
+
return 0;
}