projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ae0c7
)
fix reversed argument order x86_64 sigsetjmp's call to sigprocmask
author
Rich Felker
<dalias@aerifal.cx>
Mon, 22 Apr 2013 14:17:56 +0000
(10:17 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 22 Apr 2013 14:17:56 +0000
(10:17 -0400)
this caused sigsetjmp not to save the signal mask but instead to
clobber it with whatever happened to be in the sigjmb_buf prior to the
call.
src/signal/x86_64/sigsetjmp.s
patch
|
blob
|
history
diff --git
a/src/signal/x86_64/sigsetjmp.s
b/src/signal/x86_64/sigsetjmp.s
index 94d7148ddfee602424f590dd7bd7094430f66a85..dc38f032b91d51248f8b776cc8157b3ee1dadce3 100644
(file)
--- a/
src/signal/x86_64/sigsetjmp.s
+++ b/
src/signal/x86_64/sigsetjmp.s
@@
-6,8
+6,8
@@
sigsetjmp:
movq %rsi,64(%rdi)
jz 1f
pushq %rdi
- leaq 72(%rdi),%r
si
- xorl %e
dx,%edx
+ leaq 72(%rdi),%r
dx
+ xorl %e
si,%esi
movl $2,%edi
call sigprocmask
popq %rdi