mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
|
||
|---|---|---|
| .. | ||
| extern.h | ||
| main.c | ||
| Makefile | ||
| Makefile.depend | ||
| setup.c | ||
| syscall.h | ||
| syscalls.c | ||
| truss.1 | ||
| truss.h | ||