소스 검색

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.
Rich Felker 12 년 전
부모
커밋
ae0c1de530
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/signal/x86_64/sigsetjmp.s

+ 2 - 2
src/signal/x86_64/sigsetjmp.s

@@ -6,8 +6,8 @@ sigsetjmp:
 	movq %rsi,64(%rdi)
 	jz 1f
 	pushq %rdi
-	leaq 72(%rdi),%rsi
-	xorl %edx,%edx
+	leaq 72(%rdi),%rdx
+	xorl %esi,%esi
 	movl $2,%edi
 	call sigprocmask
 	popq %rdi