commit | d07eac3ac4104b89855ca5c4ba04cd2a285c6749 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Sat Jul 09 21:52:43 2016 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Tue Jul 12 07:39:26 2016 +0000 |
tree | c91fec0c5f98ee94049748d549b3bec507869a8a | |
parent | d1cedf0fdbf3afd6f8da79470a538253f1c0d559 [diff] |
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.
This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.
See the file NEWS for information on what has changed in recent versions.
Please send bug reports and enhancements to the strace mailing list.