AquilaOS documentation
How it works, and its code
Toggle main menu visibility
Loading...
Searching...
No Matches
ssp.c
Go to the documentation of this file.
1
6
7
#include <
core/system.h
>
8
#include <
core/panic.h
>
9
10
uintptr_t
__stack_chk_guard
= 0xDEADBEEF;
11
16
void
__stack_chk_fail
(
void
)
17
{
18
panic
(
"stack smashing detected"
);
19
}
panic
#define panic(s)
Definition
panic.h:15
panic.h
system.h
__stack_chk_fail
void __stack_chk_fail(void)
Panics: a function's stack canary was overwritten, so its stack was smashed (a buffer overflow).
Definition
ssp.c:16
__stack_chk_guard
uintptr_t __stack_chk_guard
Definition
ssp.c:10
uintptr_t
__SIZE_TYPE__ uintptr_t
Definition
stddef.h:12
kernel
core
ssp.c
Generated by
1.18.0