commit | bf2698a6b8fa9e78e82ec2acaeef39273e95ab17 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Sun Jul 03 22:15:45 2016 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Sun Jul 03 22:15:45 2016 +0000 |
tree | d8f6e163fd673d997039cb930234fe5b94ccfd88 | |
parent | ea7002822f6991e193a07a039d7384501f89528d [diff] |
msghdr.c: limit output when printing excessively large messages Limit output of struct msghdr.msg_control when struct msghdr.msg_controllen is greater than the maximum ancillary buffer size specified in /proc/sys/net/core/optmem_max file. * configure.ac (AC_CHECK_FUNCS): Add open64. * defs.h (read_int_from_file): New prototype. * util.c (read_int_from_file): New function. * msghdr.c (get_optmem_max): New function based on read_int_from_file. (decode_msg_control): Use it to check control_len argument. * tests/msg_control.c (test_big_len): New function. (main): Use it to test printing of excessively large messages.
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.