conditional jump depends on uninitialised value in __libc_res_nsend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Running the (32-bit) chromium ui_tests all day under valgrind on
64 bit jaunty netted a single instance of this warning:
Conditional jump or move depends on uninitialised value(s)
at __libc_res_nsend (res_send.c:1011)
by __libc_res_nquery (res_query.c:225)
by __libc_
by __libc_res_nsearch (res_query.c:370)
by _nss_dns_
by _nss_dns_
by gethostbyname2_
by gaih_inet (getaddrinfo.c:531)
by getaddrinfo (getaddrinfo.
Looking at the source for glibc in ia32-libs-
1009 if (n == 0) {
1010 Dprint(
1011 if (resplen > 1 && (recvresp1 || (buf2 != NULL && recvresp2)))
Sure enough, resplen isn't obviously initialized, either in this version of
glibc (2.9) or in glibc from git. I think it may be an upstream problem still.
Perhaps this occurs infrequently because DNS usually doesn't time out.
Filed upstream as http:// sourceware. org/bugzilla/ show_bug. cgi?id= 10391