mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Fix usage of _STACK_GROWS_DOWN and _STACK_GROWS_UP defines [BZ 31989]
Signed-off-by: John David Anglin <dave.anglin@bell.net> Reviewed-By: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
@@ -172,7 +172,7 @@ update_data (struct header *result, size_t len, size_t old_len)
|
||||
start_sp = __thread_stack_pointer ();
|
||||
|
||||
uintptr_t sp = __thread_stack_pointer ();
|
||||
#ifdef _STACK_GROWS_UP
|
||||
#if _STACK_GROWS_UP
|
||||
/* This can happen in threads where we didn't catch the thread's
|
||||
stack early enough. */
|
||||
if (__glibc_unlikely (sp < start_sp))
|
||||
|
Reference in New Issue
Block a user