mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Third time's a charm with stack remaining checker
This commit is contained in:
parent
28b9d9f781
commit
0a589add41
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ extern char ape_stack_align[] __attribute__((__weak__));
|
|||
*/
|
||||
#define HaveStackMemory(n) \
|
||||
(IsTiny() || \
|
||||
(intptr_t)__builtin_frame_address(0) >= GetStackAddr() + PAGESIZE * (n))
|
||||
(intptr_t)__builtin_frame_address(0) >= GetStackAddr() + PAGESIZE + (n))
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* GNU ELF */
|
||||
|
|
Loading…
Add table
Reference in a new issue