Do not try to store 64 bits into 32 bit errno variable. With the changed libc
data layout, this was corrupting _PathLocale variable leading to programs dumping core in non-default locales.
This commit is contained in:
parent
1600372b6b
commit
f2da7e0e49
@ -55,7 +55,7 @@ HIDENAME(cerror):
|
|||||||
pushq %rax
|
pushq %rax
|
||||||
call PIC_PLT(CNAME(__error))
|
call PIC_PLT(CNAME(__error))
|
||||||
popq %rcx
|
popq %rcx
|
||||||
movq %rcx,(%rax)
|
movl %ecx,(%rax)
|
||||||
movq $-1,%rax
|
movq $-1,%rax
|
||||||
movq $-1,%rdx
|
movq $-1,%rdx
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user