mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +00:00
LibC: Use 64-bit stack smash value for 64-bit mode
Otherwise it'll use the first 32 bits that happen to come after, leading to very weird bugs. Fixes #8601
This commit is contained in:
parent
205c8a12ed
commit
a5a62f99c5
3 changed files with 7 additions and 7 deletions
|
@ -17,8 +17,8 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
extern u32 __stack_chk_guard;
|
||||
u32 __stack_chk_guard = (u32)0xc6c7c8c9;
|
||||
extern size_t __stack_chk_guard;
|
||||
size_t __stack_chk_guard = (size_t)0xc6c7c8c9;
|
||||
|
||||
__attribute__((noreturn)) void __stack_chk_fail()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue