Got basic tty driver & implemented Stack Smash Protector

This commit is contained in:
2025-02-17 21:02:10 +01:00
parent 983174a081
commit f9dece59ce
8 changed files with 114 additions and 24 deletions
+14
View File
@@ -0,0 +1,14 @@
/*
* Stack Smash Protector
* Source: https://wiki.osdev.org/Stack_Smashing_Protector
*/
#include <kernel.h>
// TODO: Make this randomized
#define STACK_CHK_GUARD 0x27a1abd8
uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
__noreturn void __stack_chk_fail(void) {
panic("Stack smashing detected!");
}