summaryrefslogtreecommitdiffstats
path: root/sys/dev/amr/amr_pci.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2000-12-22 21:30:15 +0000
committeriedowse <iedowse@FreeBSD.org>2000-12-22 21:30:15 +0000
commitcd6399ca0f4a2f014f42eaed72fb574f75b9c040 (patch)
tree93badada1e585566333da1bad0d37b64e6b21b58 /sys/dev/amr/amr_pci.c
parent461306f6402239c3412d0fc31b825abdbf080722 (diff)
downloadFreeBSD-src-cd6399ca0f4a2f014f42eaed72fb574f75b9c040.zip
FreeBSD-src-cd6399ca0f4a2f014f42eaed72fb574f75b9c040.tar.gz
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
Diffstat (limited to 'sys/dev/amr/amr_pci.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud