[uClibc 0001468]: Couple more bugs in gethostbyname() (patch attached)

bugs at busybox.net bugs at busybox.net
Mon Sep 29 13:37:53 UTC 2008


The issue 0001361 has been set as DUPLICATE OF the following issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1468 
====================================================================== 
Reported By:                vvv
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1468
Category:                   Networking Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             08-21-2007 04:03 PDT
Last Modified:              08-21-2007 04:03 PDT
====================================================================== 
Summary:                    Couple more bugs in gethostbyname() (patch attached)
Description: 
The following bugs have been observed in gethostbyname():

1. gethostbyname() fails if DNS server returns more than 23 addresses
(reported by me as 0001361)

2. gethostbyname() fails if the response from DNS server is truncated
(i.e. the full response would contain more than 512 bytes). Such situation
existed for a couple days for vpn.corbina.net - DNS was returning 29
addresses.

3. The h_aliases[0] field of struct hostent points to a corrupted buffer
(the buffer is always overwritten by h_addr_list[0]).

The attached patch fixes the issue for uClibc-0.9.29. Note: this patch
makes my fixes of 0001361 redundant.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0001361 gethostbyname() fails to resolve into m...
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-21-07 04:03  vvv            New Issue                                    
08-21-07 04:03  vvv            Status                   new => assigned     
08-21-07 04:03  vvv            Assigned To               => uClibc          
08-21-07 04:03  vvv            File Added: resolv.patch                     
09-29-08 06:37  bernhardf      Relationship added       has duplicate 0001361
======================================================================




More information about the uClibc-cvs mailing list