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/libc/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/libc/cpu.c') diff --git a/libs/libc/cpu.c b/libs/libc/cpu.c index 8ca4d27..37bdb4d 100644 --- a/libs/libc/cpu.c +++ b/libs/libc/cpu.c @@ -124,7 +124,7 @@ static void fpu_handler(struct regs *r) __asm__ volatile("clts"); } -static u8 fpu_state[512] __attribute__((aligned(16))); +static u8 fpu_state[512] ALIGNED(16); void fpu_restore(void) { __asm__ volatile("fxrstor (%0)" ::"r"(fpu_state)); -- cgit v1.2.3