Final Patch for Review (was Re: [CFR] whois(1) out-of-bound access patch)

2001-10-07 Thread Mike Barcroft
atch is at the end of this message and also at: http://people.FreeBSD.org/~mike/patches/whois.20011007.diff Best regards, Mike Barcroft -- whois.20011007.diff o Treat a buffer as a non-NUL terminated string, because the whois s

Re: [CFR] whois(1) out-of-bound access patch

2001-10-07 Thread Andrey A. Chernov
On Sun, Oct 07, 2001 at 13:37:16 -0400, Mike Barcroft wrote: > > > > Must be isspace((unsigned char)) > > Why and where can I find documentation about this? isspace(3) -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in

Re: [CFR] whois(1) out-of-bound access patch

2001-10-07 Thread Dag-Erling Smorgrav
Mike Barcroft <[EMAIL PROTECTED]> writes: > Andrey A. Chernov <[EMAIL PROTECTED]> writes: > > On Thu, Oct 04, 2001 at 12:16:40 +0300, Peter Pentchev wrote: > > > + if ((len == 0) || !isspace(buf[len - 1])) { > > Must be isspace((unsigned char)) > Why and where can I find documentation

Re: [CFR] whois(1) out-of-bound access patch

2001-10-07 Thread Mike Barcroft
Andrey A. Chernov <[EMAIL PROTECTED]> writes: > On Thu, Oct 04, 2001 at 12:16:40 +0300, Peter Pentchev wrote: > > + if ((len == 0) || !isspace(buf[len - 1])) { > > Must be isspace((unsigned char)) Why and where can I find documentation about this? Best regards, Mike Barcroft To U