summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibC/crt0.cpp4
-rw-r--r--Userland/Libraries/LibC/ssp.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibC/crt0.cpp b/Userland/Libraries/LibC/crt0.cpp
index f496dba46e..00c900e43c 100644
--- a/Userland/Libraries/LibC/crt0.cpp
+++ b/Userland/Libraries/LibC/crt0.cpp
@@ -14,7 +14,7 @@
#ifndef _DYNAMIC_LOADER
extern "C" {
-extern u32 __stack_chk_guard;
+extern size_t __stack_chk_guard;
int main(int, char**, char**);
@@ -31,7 +31,7 @@ NAKED void _start(int, char**, char**)
int _entry(int argc, char** argv, char** env)
{
- u32 original_stack_chk = __stack_chk_guard;
+ size_t original_stack_chk = __stack_chk_guard;
arc4random_buf(&__stack_chk_guard, sizeof(__stack_chk_guard));
if (__stack_chk_guard == 0)
diff --git a/Userland/Libraries/LibC/ssp.cpp b/Userland/Libraries/LibC/ssp.cpp
index dbc108bd6e..434cde286d 100644
--- a/Userland/Libraries/LibC/ssp.cpp
+++ b/Userland/Libraries/LibC/ssp.cpp
@@ -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()
{