freebsd-dev/usr.bin/truss
Mark Johnston 4b0c6fa0dc truss: Make control message header parsing more robust
print_cmsg() was assuming that the control message chain is well-formed,
but that isn't necessarily the case for sendmsg(2).  In particular, if
cmsg_len is zero, print_cmsg() will loop forever.  Check for truncated
headers and try to recover if possible.

Reviewed by:	tuexen
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D35476
2022-06-14 12:00:59 -04:00
..
extern.h
main.c truss: minor cleanup and pedantic warning fixes 2021-06-16 16:35:55 +01:00
Makefile Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
Makefile.depend
setup.c syscallarg_t: Add a type for system call arguments 2022-03-28 19:43:03 +01:00
syscall.h syscallarg_t: Add a type for system call arguments 2022-03-28 19:43:03 +01:00
syscalls.c truss: Make control message header parsing more robust 2022-06-14 12:00:59 -04:00
truss.1
truss.h syscallarg_t: Add a type for system call arguments 2022-03-28 19:43:03 +01:00