HardenedBSD/usr.sbin/rwhod
Ian Dowse 4de932048c Ensure that received packets are at least as long as the rwho packet
header before trying to process them. Without this sanity check,
rwhod can attempt to byte-swap all of memory when a short packet
is received, and so dies with a SIGBUS.

While I'm here, change two other syslog messages to be more
informative: use dotted quad rather than hex notation for IP
addresses, and include the source IP in the 'bad from port' message.

PR:		bin/14844
Reviewed by:	dwmalone
2000-12-22 21:30:15 +00:00
..
Makefile
rwhod.8
rwhod.c Ensure that received packets are at least as long as the rwho packet 2000-12-22 21:30:15 +00:00