platform_bionic/libc/dns/resolv
Pierre Imai 0967fc7e59 Copy the entire zero-separated DNS seach domain string.
The DNS search string contains zeros as domain separator. The resolver
code erroneously used strlcpy(), which resulted in only the first domain
to be copied. The code uses pointers into this string to access the
individual domains. Since the structure is zero-initialized, this bug only
resulted in zero-length domains instead of accessing unitialized memory.

BUG: 27312811
Change-Id: Ia9d066c405dfcc5e82d6766d93ead2ce574e7b0d
2016-02-29 16:50:38 +09:00
..
herror.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_cache.c Copy the entire zero-separated DNS seach domain string. 2016-02-29 16:50:38 +09:00
res_comp.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_data.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_debug.c Replace uses of sprintf(3) with snprintf(3). 2014-10-08 16:12:27 -07:00
res_debug.h Renamed the misleading libc/netbsd directory to libc/dns. 2014-02-28 16:31:04 +00:00
res_init.c Merge "Switch to OpenBSD res_random." 2014-08-26 23:18:04 +00:00
res_mkquery.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_private.h Renamed the misleading libc/netbsd directory to libc/dns. 2014-02-28 16:31:04 +00:00
res_query.c Replace uses of sprintf(3) with snprintf(3). 2014-10-08 16:12:27 -07:00
res_send.c Improve FORTIFY failure diagnostics. 2016-02-26 22:06:17 -08:00
res_state.c Make ThreadLocalBuffer a class rather than a macro. 2015-03-31 10:56:58 -07:00