aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memlen_overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mem/memlen_overflow.c')
-rw-r--r--test/mem/memlen_overflow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mem/memlen_overflow.c b/test/mem/memlen_overflow.c
new file mode 100644
index 0000000..258f2a0
--- /dev/null
+++ b/test/mem/memlen_overflow.c
@@ -0,0 +1,5 @@
+#include <mem.h>
+
+static char const buf[] = "Test";
+
+int main(void) { return calt_memlen(buf, '\0', 3) == 3 ? 0 : 1; }