Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2000 20:52:05 -0800 (PST)
From:      Kris Kennaway <kris@hub.freebsd.org>
To:        Peter Jeremy <peter.jeremy@alcatel.com.au>
Cc:        audit@FreeBSD.ORG
Subject:   Re: libc patch to warn about tempfiles
Message-ID:  <Pine.BSF.4.21.0001232051000.19807-100000@hub.freebsd.org>
In-Reply-To: <Pine.BSF.4.21.0001231945020.3724-100000@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Jan 2000, Kris Kennaway wrote:

> +	while (trv < suffp) {
> +		pid = (arc4random() % sizeof(padchar));

Oops, this should of course be strlen(padchar).

> +		*trv++ = padchar[pid];
> +	}
> +	trv = start;

Kris

----
"How many roads must a man walk down, before you call him a man?"
"Eight!"
"That was a rhetorical question!"
"Oh..then, seven!" -- Homer Simpson



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001232051000.19807-100000>