]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix hostname regex pattern
authorJohn Perkins <john.perkins@rackspace.com>
Mon, 6 Oct 2014 21:24:57 +0000 (16:24 -0500)
committerTristan Cacqueray <tristan.cacqueray@enovance.com>
Wed, 19 Nov 2014 15:01:19 +0000 (15:01 +0000)
commit1681f62ec91b6c3705a14393815542dc1746de71
tree21c7ef744b246cb8897b274d3f3d07c9793c65cd
parent0965f81eb45abf1947ba9a7ac7e0fbcd6cbb2abc
Fix hostname regex pattern

Current hostname_pattern regex complexity grows exponentially
when given a string of just digits, which can be exploited to
cause neutron-server to freeze.

Change-Id: I886c6d883a9cb0acd9908495eec50bf0411d8ba8
Closes-bug: #1378450
neutron/api/v2/attributes.py
neutron/tests/unit/test_attributes.py