This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16852] New: recvmmsg clobbers const argument
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 18 Apr 2014 01:01:47 +0000
- Subject: [Bug libc/16852] New: recvmmsg clobbers const argument
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16852
Bug ID: 16852
Summary: recvmmsg clobbers const argument
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: bugdal at aerifal dot cx
CC: drepper.fsp at gmail dot com
In sysdeps/unix/sysv/linux/recvmmsg.c, the const struct timespec *tmo argument
is passed directly to the Linux syscall recvmmsg which overwrites the
pointed-to struct with the remaining time. If this behavior is desired, the
argument needs to be changed to be a pointer-to-non-const, but the policy
elsewhere (in other analogous interfaces) seems to be to suppress the kernel
behavior by using a temp copy of the timeout to pass to the kernel.
--
You are receiving this mail because:
You are on the CC list for the bug.