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

2001-10-08 Thread Chris Costello
On Sunday, October 07, 2001, Mike Barcroft wrote: > for (i = 0; ip_whois[i] != NULL; i++) { > - if (strstr(buf, ip_whois[i]) == NULL) > + if (strnstr(buf, ip_whois[i], len) == > +

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

2001-10-07 Thread Mike Barcroft
Todd C. Miller <[EMAIL PROTECTED]> writes: > In message <[EMAIL PROTECTED]> > so spake Mike Barcroft (mike): > > > Would you please test the attached patch and confirm that it solves > > the problem? If it does, I'll commit it today. > > I doubt that is sufficient as "buf" is treated as a