AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
ssp.c File Reference

What the compiler's stack protector (-fstack-protector) needs: the canary value it puts on the stack, and the function it calls when a function returns with that value overwritten. More...

#include <core/system.h>
#include <core/panic.h>

Go to the source code of this file.

Functions

void __stack_chk_fail (void)
 Panics: a function's stack canary was overwritten, so its stack was smashed (a buffer overflow).

Variables

uintptr_t __stack_chk_guard = 0xDEADBEEF

Detailed Description

What the compiler's stack protector (-fstack-protector) needs: the canary value it puts on the stack, and the function it calls when a function returns with that value overwritten.

Definition in file ssp.c.

Function Documentation

◆ __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 at line 16 of file ssp.c.

References __stack_chk_fail(), and panic.

Referenced by __stack_chk_fail().

Variable Documentation

◆ __stack_chk_guard

uintptr_t __stack_chk_guard = 0xDEADBEEF

Definition at line 10 of file ssp.c.