libc/resolv/nss_dns dns-host.c
drepper@sourceware.org
drepper@sourceware.org
Mon Jul 28 22:53:00 GMT 2008
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.org 2008-07-28 22:53:35
Modified files:
resolv/nss_dns : dns-host.c
Log message:
Adjust for __libc_res_nsearch interface change.
(_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
Define resplen2 variable and pass it to __libc_res_nsearch and then
to gaih_getanswer.
(getanswer_r): In case of incorrect DNS data don't overread buffer.
Add branch prediction.
(gaih_getanswer_slice): Likewise. Check for invalid data types.
(gaih_getanswer): Don't decode second slice if first one failed due
to a too small buffer. Don't let not found status of second
decoder shadow results of the first.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/resolv/nss_dns/dns-host.c.diff?cvsroot=glibc&r1=1.51&r2=1.52
More information about the Glibc-cvs
mailing list