aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/conv.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-01 19:39:14 +0200
committerMarvin Borner2021-04-01 19:39:14 +0200
commitafa00abb2b68205bee539d7947130d6b1b1ec6e9 (patch)
tree3a821a75af6c4d4ff1bd4128c4859d77abf87e66 /libs/libc/inc/conv.h
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 'libs/libc/inc/conv.h')
-rw-r--r--libs/libc/inc/conv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/libc/inc/conv.h b/libs/libc/inc/conv.h
index adf9003..95f7d02 100644
--- a/libs/libc/inc/conv.h
+++ b/libs/libc/inc/conv.h
@@ -5,11 +5,11 @@
#include <def.h>
-int atoi(const char *str);
+int atoi(const char *str) NONNULL;
char *htoa(u32 n);
-int htoi(const char *str);
+int htoi(const char *str) NONNULL;
char *itoa(int n);
-char *conv_base(int value, char *result, int base, int is_signed);
+char *conv_base(int value, char *result, int base, int is_signed) NONNULL;
#endif