Skip to content

Commit

Permalink
Disallow invalid IPv4 in IPv6 parser
Browse files Browse the repository at this point in the history
Fixes #195.
  • Loading branch information
annevk committed Jan 6, 2017
1 parent 4617e33 commit edeb59b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -648,14 +648,11 @@ then runs these steps:
<li><p>If <var>dots seen</var> is 1 or 3, increase
<var>piece pointer</var> by one.

<li><p>If <a>c</a> is not the <a>EOF code point</a>, increase <var>pointer</var> by
one.

<li><p>If <var>dots seen</var> is 3 and <a>c</a> is not
the <a>EOF code point</a>,
<li><p>If <var>dots seen</var> is 3 and <a>c</a> is not the <a>EOF code point</a>,
<a>syntax violation</a>, return failure.

<li><p>Increase <var>dots seen</var> by one.
<li><p>If <a>c</a> is a "<code>.</code>", increase <var>pointer</var> and <var>dots seen</var> by
one.
</ol>

<li>
Expand Down

0 comments on commit edeb59b

Please sign in to comment.