13 lines
220 B
C
13 lines
220 B
C
#include "kpanic.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#define STACK_CHK_GUARD 0xe2dee396
|
|
|
|
uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
|
|
|
|
__attribute__((noreturn)) void __stack_chk_fail(void)
|
|
{
|
|
kpanic("Stack smashing detected");
|
|
}
|