This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libc/resolv/nss_dns dns-host.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]