aboutsummaryrefslogtreecommitdiff
path: root/apps/test.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-01 19:39:14 +0200
committerMarvin Borner2021-04-01 19:39:14 +0200
commitafa00abb2b68205bee539d7947130d6b1b1ec6e9 (patch)
tree3a821a75af6c4d4ff1bd4128c4859d77abf87e66 /apps/test.c
parent4c168fb34c15a1b8981abef7ccef1542a6fb05ca (diff)
Hardened entire system
By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf.
Diffstat (limited to 'apps/test.c')
-rw-r--r--apps/test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/test.c b/apps/test.c
index 18d9f8b..8c6dedc 100644
--- a/apps/test.c
+++ b/apps/test.c
@@ -79,7 +79,6 @@ TEST(mem)
EQUALS(memcmp(str2, str4, strlen(str2)), -1);
EQUALS(memcmp(str2, str3, strlen(str2)), 0);
EQUALS(memcmp(str0, str1, strlen(str0)), 0);
- EQUALS(memcmp(NULL, NULL, 0), 0);
char buf[6] = { 0 };
EQUALS_STR(memcpy(buf, "hallo", 6), "hallo");