PatchworkOS
Loading...
Searching...
No Matches
stack_chk.c
Go to the documentation of this file.
1
#include <
stdint.h
>
2
#include <
stdlib.h
>
3
4
#if UINT32_MAX == UINTPTR_MAX
5
#define STACK_CHK_GUARD 0xe2dee396
6
#else
7
#define STACK_CHK_GUARD 0x595e9fbd94fda766
8
#endif
9
10
uintptr_t
__stack_chk_guard
=
STACK_CHK_GUARD
;
11
12
_NORETURN
void
__stack_chk_fail
(
void
)
13
{
14
abort
();
15
}
_NORETURN
#define _NORETURN
Definition
config.h:28
__stack_chk_guard
uintptr_t __stack_chk_guard
Definition
stack_chk.c:10
__stack_chk_fail
_NORETURN void __stack_chk_fail(void)
Definition
stack_chk.c:12
STACK_CHK_GUARD
#define STACK_CHK_GUARD
Definition
stack_chk.c:5
stdint.h
uintptr_t
__UINTPTR_TYPE__ uintptr_t
Definition
stdint.h:43
stdlib.h
abort
_PUBLIC _NORETURN void abort(void)
Definition
abort.c:7
src
libstd
common
stack_chk.c
Generated by
1.9.8