This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16637] New: inet_pton function is accepting IPv6 with bad format


https://sourceware.org/bugzilla/show_bug.cgi?id=16637

            Bug ID: 16637
           Summary: inet_pton function is accepting IPv6 with bad format
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: alachmish at trustwave dot com
                CC: drepper.fsp at gmail dot com

inet_pton function is accepting IPv6 with bad format e.g.
"fc00:0:0:0:0:0:00000:0014"

inet_pton(AF_INET6, "fc00:0:0:0:0:0:00000:0014", buf)

should always return 0

Easy to fix: instead of just validate that each segment value is smaller then
0xfff also validate that it is composed out of 4 characters ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]