This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23599 - IPv4 parser allows odd addresses
Summary: IPv4 parser allows odd addresses
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 21:05 UTC by Michael Peick
Modified: 2013-10-24 11:14 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Peick 2013-10-22 21:05:38 UTC
The following addresses are currently accepted by the parser:

::ffff:127.
::ffff:127...

There should be a verification in the IPv4 parser that enforces IPv4 addresses with all numbers.
Comment 1 Anne 2013-10-24 11:14:14 UTC
Thanks!

How would the first one have worked? It seems that would fail because not enough dots have been seen. In any event, I think I fixed that now:

https://github.com/whatwg/url/commit/3ea24951a21fff1762195b575c55758765aae754