From afa00abb2b68205bee539d7947130d6b1b1ec6e9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 1 Apr 2021 19:39:14 +0200 Subject: Hardened entire system By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf. --- apps/test.c | 1 - 1 file changed, 1 deletion(-) (limited to 'apps/test.c') 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"); -- cgit v1.2.3