Bug 9100 - inet_pton() incorrectly converts some invalid IPv6 address strings containing "::".
inet_pton() incorrectly converts some invalid IPv6 address strings containing...
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-02-03 13:35 EST by Wan-Teh Chang
Modified: 2008-05-01 11:37 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-05-22 10:53:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
A test program to reproduce the bug. (1.48 KB, text/plain)
2000-02-03 13:40 EST, Wan-Teh Chang
no flags Details

  None (edit)
Description Wan-Teh Chang 2000-02-03 13:35:02 EST
The inet_pton() function incorrectly converts some invalid
IPv6 address strings containing the double colon characters (::).
It appears that the problematic address strings are of the
format
    x:x:x:x:x::x:x:x
with exactly eight 16-bit pieces of the address and "::".
The "::" can appear anywhere in the sequence.

When given such an address string, inet_pton() returns 1,
indicating a successful conversion.  The converted binary
address has zeros starting from the location of the "::" till
the end of the binary address.

For example, the input address string
    1:2:3::4:5:6:7:8
is converted to the binary address:
    0001:0002:0003:0000:0000:0000:0000:0000
Comment 1 Wan-Teh Chang 2000-02-03 13:40:59 EST
Created attachment 89 [details]
A test program to reproduce the bug.
Comment 2 Cristian Gafton 2000-05-22 10:53:59 EDT
assign to jakub
Comment 3 Jakub Jelinek 2000-09-04 09:40:23 EDT
Fixed in glibc-2.1.92

Note You need to log in before you can comment on or make changes to this bug.