]> granicus.if.org Git - strace/commit
Fix decoding of getsockname, getpeername, accept, and accept4 syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 9 Jul 2016 21:52:43 +0000 (21:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Jul 2016 07:39:26 +0000 (07:39 +0000)
commitd07eac3ac4104b89855ca5c4ba04cd2a285c6749
treec91fec0c5f98ee94049748d549b3bec507869a8a
parentd1cedf0fdbf3afd6f8da79470a538253f1c0d559
Fix decoding of getsockname, getpeername, accept, and accept4 syscalls

* net.c (fetch_socklen): New function.
(decode_sockname): Use it.  On entering syscall, decode early
and return RVAL_DECODED when possible.  On error, print the address
length passed to the kernel.  Do not print more bytes of the socket
address than actually returned by the kernel.
net.c