summary refs log tree commit diff
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
parent115bcf921a52005b89ff2859ccae4a8fc6d6deed (diff)
downloadglibc-5baad9a6f948b7822db3392097e7d79e9e018655.tar.gz
glibc-5baad9a6f948b7822db3392097e7d79e9e018655.tar.xz
glibc-5baad9a6f948b7822db3392097e7d79e9e018655.zip
hurd: Fix longjmp check for sigstate
* sysdeps/mach/hurd/i386/____longjmp_chk.S,__longjmp.S: Properly check for
sigstate being NULL.
-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 5131386c60..a746a4f2ba 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 73bbff9826..af788ede0f 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