mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:47:45 +00:00
LibC: Use uintptr_t for __stack_chk_guard
We used size_t, which is a type that is guarenteed to be large enough to hold an array index, but uintptr_t is designed to be used to hold pointer values, which is the case of stack guards.
This commit is contained in:
parent
675e5bfdce
commit
89b23c473a
6 changed files with 11 additions and 11 deletions
|
@ -65,8 +65,8 @@ extern ctor_func_t start_ctors[];
|
|||
extern ctor_func_t end_ctors[];
|
||||
|
||||
// FIXME: Share this with the Intel Prekernel.
|
||||
extern size_t __stack_chk_guard;
|
||||
size_t __stack_chk_guard;
|
||||
extern uintptr_t __stack_chk_guard;
|
||||
uintptr_t __stack_chk_guard;
|
||||
|
||||
READONLY_AFTER_INIT bool g_in_early_boot;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue