aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-18 15:12:56 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-18 15:12:56 +0200
commit5baad9a6f948b7822db3392097e7d79e9e018655 (patch)
treebb6bb67ef3a3b1e73bdc96412c898d39652a4080 /sysdeps
parent115bcf921a52005b89ff2859ccae4a8fc6d6deed (diff)
downloadglibc-5baad9a6f948b7822db3392097e7d79e9e018655.zip
glibc-5baad9a6f948b7822db3392097e7d79e9e018655.tar.gz
glibc-5baad9a6f948b7822db3392097e7d79e9e018655.tar.bz2
hurd: Fix longjmp check for sigstate
* sysdeps/mach/hurd/i386/____longjmp_chk.S,__longjmp.S: Properly check for sigstate being NULL.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/i386/____longjmp_chk.S2
-rw-r--r--sysdeps/mach/hurd/i386/__longjmp.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/i386/____longjmp_chk.S b/sysdeps/mach/hurd/i386/____longjmp_chk.S
index 5131386..a746a4f 100644
--- a/sysdeps/mach/hurd/i386/____longjmp_chk.S
+++ b/sysdeps/mach/hurd/i386/____longjmp_chk.S
@@ -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
diff --git a/sysdeps/mach/hurd/i386/__longjmp.S b/sysdeps/mach/hurd/i386/__longjmp.S
index 73bbff9..af788ed 100644
--- a/sysdeps/mach/hurd/i386/__longjmp.S
+++ b/sysdeps/mach/hurd/i386/__longjmp.S
@@ -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