]> granicus.if.org Git - strace/commit
Fix dumping of recvmsg syscall in case of short read
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Jan 2016 03:26:37 +0000 (03:26 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Jan 2016 17:35:27 +0000 (17:35 +0000)
commit93c9d1cdbdc9d1f406f5a773eac987ef1db6ce95
treec723d8d56f51a5108b9d73a25a90bc739a6717bf
parent05a0af6d6011e82ff4a88de468d3c21338461d75
Fix dumping of recvmsg syscall in case of short read

* defs.h (dumpiov_in_msghdr): Add unsigned long argument.
* net.c (dumpiov_in_msghdr): Add data_size argument.  Call dumpiov_upto
instead of dumpiov, pass data_size to dumpiov_upto.
* syscall.c (dumpio): Pass data size limit to dumpiov_in_msghdr.
* NEWS: Mention this fix.
* tests/recvmsg.c: New file.
* tests/recvmsg.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add recvmsg.
(TESTS): Add recvmsg.test.
* tests/.gitignore: Add recvmsg.
NEWS
defs.h
net.c
syscall.c
tests/.gitignore
tests/Makefile.am
tests/recvmsg.c [new file with mode: 0644]
tests/recvmsg.test [new file with mode: 0755]