This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23951] pread64(fd, buf, (size_t)-1, offset) do not works as expected, using 32bit glibc-2.27 under 64bit-linux-4.4


https://sourceware.org/bugzilla/show_bug.cgi?id=23951

--- Comment #4 from wangfangpeng <wangfangpeng1 at huawei dot com> ---
(In reply to Andreas Schwab from comment #2)
> I don't think there is a bug here, as in both cases we pass the arguments
> unchanged to the kernel, and return what the kernel reports:
> 
> pread64(0, "", 4294967295, 0)           = 0
> 
> pread64(0, 0x7ffdd658d2d0, 18446744073709551615, 0) = -1 EFAULT (Bad address)

You mean this is a kernel bug,not a glibc bug?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]