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. --- libs/libgui/msg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/libgui/msg.h') diff --git a/libs/libgui/msg.h b/libs/libgui/msg.h index 65fc640..c25e95e 100644 --- a/libs/libgui/msg.h +++ b/libs/libgui/msg.h @@ -66,7 +66,7 @@ enum message_type { GUI_KEYBOARD, }; -res msg_send(u32 pid, enum message_type type, void *data, u32 size); -res msg_receive(void *buf, u32 size); +res msg_send(u32 pid, enum message_type type, void *data, u32 size) NONNULL; +res msg_receive(void *buf, u32 size) NONNULL; #endif -- cgit v1.2.3