This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16637] New: inet_pton function is accepting IPv6 with bad format
- From: "alachmish at trustwave dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 26 Feb 2014 15:58:33 +0000
- Subject: [Bug libc/16637] New: inet_pton function is accepting IPv6 with bad format
- Auto-submitted: auto-generated
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.