mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
The __convert_scm_timestamps() only updates the control message last pointer for SOL_SOCKET type, so if the message control buffer contains multiple ancillary message types the converted timestamp one might overwrite a valid message. The test check if the extra ancillary space is correctly handled by recvmsg/recvmmsg, where if there is no extra space for the 64-bit time_t converted message the control buffer should be marked with MSG_TRUNC. It also check if recvmsg/recvmmsg handle correctly multiple ancillary data. Checked on x86_64-linux and on i686-linux-gnu on both 5.11 and 4.15 kernel. Co-authored-by: Fabian Vogt <fvogt@suse.de>
This commit is contained in:
1
sysdeps/unix/sysv/linux/tst-socket-timestamp-time64.c
Normal file
1
sysdeps/unix/sysv/linux/tst-socket-timestamp-time64.c
Normal file
@ -0,0 +1 @@
|
||||
#include "tst-socket-timestamp.c"
|
Reference in New Issue
Block a user