Date: Sun, 15 Mar 2009 15:22:37 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net> To: Nate Eldredge <neldredge@math.ucsd.edu> Cc: freebsd-hackers@freebsd.org, Chris St Denis <chris@smartt.com> Subject: Re: Bug in tcp wrappers? Message-ID: <20090315151836.K24160@antec.home> In-Reply-To: <Pine.GSO.4.64.0903151503350.3173@zeno.ucsd.edu> References: <49BA9E63.3040000@smartt.com> <20090315144440.N24160@antec.home> <Pine.GSO.4.64.0903151503350.3173@zeno.ucsd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --738249620-1902150241-1237155757=:24160 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 15 Mar 2009, Nate Eldredge wrote: > On Sun, 15 Mar 2009, Mikko Työläjärvi wrote: > >> The real fix involves rewriting chunks of the libwrap code, or finding >> a version where someone has already done so. > > It doesn't seem like it should be too bad. xgets is only called in three > places. It would be easy enough to replace it with something like glibc's > getline(3), that uses realloc to size a buffer appropriately. Yes, it should be pretty straightforward. I just noticed that openbsd applied a (better) variant of my patch for the infinite loop problem in 2003. They didn't address the "line too long" problem, though. > If nobody else feels like doing this, maybe I will. And if you don't, I just might :) /Mikko --738249620-1902150241-1237155757=:24160--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090315151836.K24160>