Bug in tcp wrappers?
Mikko Työläjärvi
mbsd at pacbell.net
Sun Mar 15 15:22:40 PDT 2009
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
More information about the freebsd-hackers
mailing list