Red Hat Bugzilla – Bug 9100
inet_pton() incorrectly converts some invalid IPv6 address strings containing "::".
Last modified: 2008-05-01 11:37:54 EDT
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
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
is converted to the binary address:
Created attachment 89 [details]
A test program to reproduce the bug.
assign to jakub
Fixed in glibc-2.1.92