mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +00:00
hurd: Fix longjmp check for sigstate
* sysdeps/mach/hurd/i386/____longjmp_chk.S,__longjmp.S: Properly check for sigstate being NULL.
This commit is contained in:
parent
115bcf921a
commit
5baad9a6f9
@ -67,7 +67,7 @@ ENTRY (____longjmp_chk)
|
||||
|
||||
movl %gs:SIGSTATE_OFFSET, %edi
|
||||
testl %edi, %edi
|
||||
jnz .Lok /* sigstate not initialized yet */
|
||||
jz .Lok /* sigstate not initialized yet */
|
||||
|
||||
testl $SS_ONSTACK, (HURD_SIGSTATE__SIGALTSTACK__OFFSET + SIGALTSTACK__SS_FLAGS__OFFSET)(%edi)
|
||||
jnz .Lonstack
|
||||
|
@ -45,7 +45,7 @@ ENTRY (__longjmp)
|
||||
|
||||
movl %gs:SIGSTATE_OFFSET, %edi
|
||||
testl %edi, %edi
|
||||
jnz .Lok /* sigstate not initialized yet */
|
||||
jz .Lok /* sigstate not initialized yet */
|
||||
|
||||
testl $SS_ONSTACK, (HURD_SIGSTATE__SIGALTSTACK__OFFSET + SIGALTSTACK__SS_FLAGS__OFFSET)(%edi)
|
||||
jz .Lok
|
||||
|
Loading…
Reference in New Issue
Block a user