From 0a589add4167c1b5873eddd2904569e90bf4f27c Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 14 Jul 2022 07:38:44 -0700 Subject: [PATCH] Third time's a charm with stack remaining checker --- libc/runtime/stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/runtime/stack.h b/libc/runtime/stack.h index f3f6e618a..62783f645 100644 --- a/libc/runtime/stack.h +++ b/libc/runtime/stack.h @@ -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 */