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/16852] New: recvmmsg clobbers const argument


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.


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