Fix potential DoS when parsing HOST
Test examples from Drupal SA-CORE-2014-003
security #11828 n/a (nicolas-grekas, larowlan)

This PR was merged into the 2.3 branch.

Discussion
----------

n/a

n/a

Commits
-------

1ee96a8 Test examples from Drupal SA-CORE-2014-003
5506ee8 Fix potential DoS when parsing HOST