-
Notifications
You must be signed in to change notification settings - Fork 0
Improve stack smash checking #194
Copy link
Copy link
Open
Description
/**
* @todo Implement this when random number generator is implemented
*/
static void __stack_chk_init_kernel() {}
/**
* @todo Add some debug message about stack in future
*/
WRAP_CALL NO_RET void __stack_chk_fail_kernel()
{
arch::KernelPanic("Stack smashing detected");
while (true); // This makes it explicit to the compiler that this function does not return.
}
#endif // __ALKOS_LIBK__
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels