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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to