CERT released an advisory pertaining to a buffer overflow that affects glibc. Attached is a patch to sys-libs/glibc-2.2.5-r4.ebuild that will patch glibc with the patch provided in the advisory. As a temporary workaround, one can change "networks: files dns" to "networks: files" in /etc/nsswitch.conf. See http://www.cert.org/advisories/CA-2002-19.html
Created attachment 2208 [details, diff] glibc-2.2.5-r4.ebuild.diff
Created attachment 2209 [details, diff] glibc-2.2.5-dns-network-overflow.diff
Fixed in -r5.