diff options
author | Marvin Borner | 2021-04-01 19:39:14 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-01 19:39:14 +0200 |
commit | afa00abb2b68205bee539d7947130d6b1b1ec6e9 (patch) | |
tree | 3a821a75af6c4d4ff1bd4128c4859d77abf87e66 /libs/libc/inc/stack.h | |
parent | 4c168fb34c15a1b8981abef7ccef1542a6fb05ca (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/stack.h')
-rw-r--r-- | libs/libc/inc/stack.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/libc/inc/stack.h b/libs/libc/inc/stack.h index f5ad52b..54d1918 100644 --- a/libs/libc/inc/stack.h +++ b/libs/libc/inc/stack.h @@ -17,12 +17,12 @@ struct stack { }; struct stack *stack_new(void); -void stack_destroy(struct stack *stack); -u32 stack_empty(struct stack *stack); -u32 stack_push_bot(struct stack *stack, void *data); -u32 stack_push(struct stack *stack, void *data); -void *stack_pop(struct stack *stack); -void *stack_peek(struct stack *stack); -void stack_clear(struct stack *stack); +void stack_destroy(struct stack *stack) NONNULL; +u32 stack_empty(struct stack *stack) NONNULL; +u32 stack_push_bot(struct stack *stack, void *data) NONNULL; +u32 stack_push(struct stack *stack, void *data) NONNULL; +void *stack_pop(struct stack *stack) NONNULL; +void *stack_peek(struct stack *stack) NONNULL; +void stack_clear(struct stack *stack) NONNULL; #endif |