This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[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
- From: "wangfangpeng1 at huawei dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 05 Dec 2018 07:15:03 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-23951-131@http.sourceware.org/bugzilla/>
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.