Date: Fri, 22 Dec 2000 13:30:16 -0800 (PST) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rwhod rwhod.c Message-ID: <200012222130.eBMLUG743954@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2000/12/22 13:30:16 PST
Modified files:
usr.sbin/rwhod rwhod.c
Log:
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
Revision Changes Path
1.15 +11 -5 src/usr.sbin/rwhod/rwhod.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012222130.eBMLUG743954>
