We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1dad7 commit 0993601Copy full SHA for 0993601
core/shared/platform/common/posix/posix_thread.c
@@ -411,6 +411,9 @@ init_stack_guard_pages()
411
uint32 guard_page_count = STACK_OVERFLOW_CHECK_GUARD_PAGE_COUNT;
412
uint8 *stack_min_addr = os_thread_get_stack_boundary();
413
414
+ if (stack_min_addr == NULL)
415
+ return false;
416
+
417
/* Touch each stack page to ensure that it has been mapped: the OS
418
may lazily grow the stack mapping as a guard page is hit. */
419
(void)touch_pages(stack_min_addr, page_size);
0 commit comments