mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +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
|
@ -17,8 +17,8 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
extern size_t __stack_chk_guard;
|
||||
__attribute__((used)) size_t __stack_chk_guard = (size_t)0xc6c7c8c9;
|
||||
extern uintptr_t __stack_chk_guard;
|
||||
__attribute__((used)) uintptr_t __stack_chk_guard = (uintptr_t)0xc6c7c8c9;
|
||||
|
||||
__attribute__((noreturn)) void __stack_chk_fail()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue