]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
String buffer safety cleanup. I don't think any of these were exploitable
authorkris <kris@FreeBSD.org>
Mon, 9 Oct 2000 06:08:00 +0000 (06:08 +0000)
committerkris <kris@FreeBSD.org>
Mon, 9 Oct 2000 06:08:00 +0000 (06:08 +0000)
commitaec252afaba2df6fe3697bd1ea4b22e73c2a1baf
treef55818063ce7ef3bc58d44211f8219b0e829e90d
parentfa43aea9dc832ed13b413a962469fc8df6909208
String buffer safety cleanup. I don't think any of these were exploitable
remotely, but they would be if e.g. it happened to call the logging
function using a DNS hostname.

Also replace random() by arc4random() - only one of these is arguably
required since it's directly used in the protocol, but we might as
well replace both to avoid using two different PRNGs.

Reviewed by: green, alex
usr.sbin/mrouted/cfparse.y
usr.sbin/mrouted/main.c
usr.sbin/mrouted/mtrace.c
usr.sbin/mrouted/prune.c