cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2175737 ] IPv6 uses uninitialized bytes?

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 18 Oct 2008 00:44:00 +0000

Bugs item #2175737, was opened at 2008-10-17 19:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2175737&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Luke-Jr (luke-jr)
Assigned to: Daniel Stenberg (bagder)
Summary: IPv6 uses uninitialized bytes?

Initial Comment:
I get this when using curl in valgrind to fetch an IPv6 URI:

==25448== Syscall param socketcall.connect(serv_addr..sin6_scope_id) points to uninitialised byte(s)
==25448== at 0x4000882: (within /lib/ld-2.6.1.so)
==25448== by 0x45DA731: __libc_res_nquery (in /lib/libresolv-2.6.1.so)
==25448== by 0x45DA9F5: (within /lib/libresolv-2.6.1.so)
==25448== by 0x45DAC2E: __libc_res_nsearch (in /lib/libresolv-2.6.1.so)
==25448== by 0x45D0059: _nss_dns_gethostbyname3_r (in /lib/libnss_dns-2.6.1.so)
==25448== by 0x45D0316: _nss_dns_gethostbyname2_r (in /lib/libnss_dns-2.6.1.so)
==25448== by 0x4125F4B: (within /lib/libc-2.6.1.so)
==25448== by 0x4126AB8: getaddrinfo (in /lib/libc-2.6.1.so)
==25448== by 0x404D5F6: curl_dogetaddrinfo (hostip6.c:115)
==25448== by 0x404D9CF: Curl_getaddrinfo (hostip6.c:285)
==25448== by 0x402E1C2: Curl_resolv (hostip.c:448)
==25448== by 0x402E497: Curl_resolv_timeout (hostip.c:610)
==25448== Address 0x41cfb48 is 24 bytes inside a block of size 28 alloc'd
==25448== at 0x4022E38: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==25448== by 0x45DBA8F: (within /lib/libresolv-2.6.1.so)
==25448== by 0x45DA731: __libc_res_nquery (in /lib/libresolv-2.6.1.so)
==25448== by 0x45DA9F5: (within /lib/libresolv-2.6.1.so)
==25448== by 0x45DAC2E: __libc_res_nsearch (in /lib/libresolv-2.6.1.so)
==25448== by 0x45D0059: _nss_dns_gethostbyname3_r (in /lib/libnss_dns-2.6.1.so)
==25448== by 0x45D0316: _nss_dns_gethostbyname2_r (in /lib/libnss_dns-2.6.1.so)
==25448== by 0x4125F4B: (within /lib/libc-2.6.1.so)
==25448== by 0x4126AB8: getaddrinfo (in /lib/libc-2.6.1.so)
==25448== by 0x404D5F6: curl_dogetaddrinfo (hostip6.c:115)
==25448== by 0x404D9CF: Curl_getaddrinfo (hostip6.c:285)
==25448== by 0x402E1C2: Curl_resolv (hostip.c:448)

Someone in #curl suggested it was a libc bug, but my own software successfully uses getaddrinfo and connect together just fine. This is reproduced using line numbers from CVS HEAD.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2175737&group_id=976
Received on 2008-10-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET