public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Fix longjmp check for sigstate
@ 2020-07-18 13:14 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2020-07-18 13:14 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5baad9a6f948b7822db3392097e7d79e9e018655
commit 5baad9a6f948b7822db3392097e7d79e9e018655
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sat Jul 18 15:12:56 2020 +0200
hurd: Fix longjmp check for sigstate
* sysdeps/mach/hurd/i386/____longjmp_chk.S,__longjmp.S: Properly check for
sigstate being NULL.
Diff:
---
sysdeps/mach/hurd/i386/____longjmp_chk.S | 2 +-
sysdeps/mach/hurd/i386/__longjmp.S | 2 +-
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-18 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-18 13:14 [glibc] hurd: Fix longjmp check for sigstate Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).