提交 ae0c1de5 编写于 作者: R Rich Felker

fix reversed argument order x86_64 sigsetjmp's call to sigprocmask

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.
上级 71ae0c72
...@@ -6,8 +6,8 @@ sigsetjmp: ...@@ -6,8 +6,8 @@ sigsetjmp:
movq %rsi,64(%rdi) movq %rsi,64(%rdi)
jz 1f jz 1f
pushq %rdi pushq %rdi
leaq 72(%rdi),%rsi leaq 72(%rdi),%rdx
xorl %edx,%edx xorl %esi,%esi
movl $2,%edi movl $2,%edi
call sigprocmask call sigprocmask
popq %rdi popq %rdi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册