]> 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:23:12 +0000 (15:23 +0000)
commitad6fefcb4d4068b46b69284e277df6ab2ee30105
tree76c576972bb615a5215f3c400728c5ae5ece8127
parent6c476224f62770679f779dc6c13be3879b3a5ed8
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