You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Honor requested/default guard size in pthread_create by reserving
guard_size bytes between thread control data/TSD/TLS and the usable
stack.
Although we cannot set memory protection on this region like a native
platform this can still be useful for catching and reporting overflows
that are smaller than the guard region itself. Without this change
`-sSTACK_OVERFLOW_CHECK=1` is mostly useless for pthreads because
any kind of overflow is likely to corrupt the stack before being
reported.
Add test cases covering guard size queries via pthread_getattr_np and
stack overflow detection within guard region.
Fixes: #27266
expected=r'Aborted\(Stack overflow! Stack cookie has been overwritten at 0x[0-9a-fA-F]+, expected hex dwords 0x89BACDFE and 0x2135467, but received 0xaaaaaaaa 0xaaaaaaaa\)'
0 commit comments