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:
Samuel Thibault 2020-07-18 15:12:56 +02:00
parent 115bcf921a
commit 5baad9a6f9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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