opnsense-src/usr.bin/truss
Mark Johnston 3d81c26f92 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
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 4b0c6fa0dc)
2022-06-29 10:12:33 -04:00
..
extern.h spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
main.c truss: minor cleanup and pedantic warning fixes 2021-07-05 10:46:12 +01:00
Makefile Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
setup.c truss(1): detach more carefully 2022-01-19 02:46:08 +02:00
syscall.h fd: add close_range(..., CLOSE_RANGE_CLOEXEC) 2022-03-07 12:15:47 +00:00
syscalls.c truss: Make control message header parsing more robust 2022-06-29 10:12:33 -04:00
truss.1 Make truss(1) cross-reference dtrace(1) and bump .Dd. 2017-07-21 13:58:51 +00:00
truss.h truss: improved support for decoding compat32 arguments 2021-05-11 09:39:24 +01:00