summaryrefslogtreecommitdiffstats
path: root/extensions/common/url_pattern.h
diff options
context:
space:
mode:
authoryoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 05:45:40 +0000
committeryoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 05:45:40 +0000
commit80d5aa4a1de9107d1442480b8ea9ba06feff2be2 (patch)
treed32a412a07ee23d6fe0496024d3474443552169e /extensions/common/url_pattern.h
parent93ef5ea059a6cd8c60c6de6e8e4ce3d702695623 (diff)
downloadchromium_src-80d5aa4a1de9107d1442480b8ea9ba06feff2be2.zip
chromium_src-80d5aa4a1de9107d1442480b8ea9ba06feff2be2.tar.gz
chromium_src-80d5aa4a1de9107d1442480b8ea9ba06feff2be2.tar.bz2
Don't allow null bytes in hosts of host permissions.
BUG=390624 TEST=Load the sample manifest from the bug, comment #9. It should fail to load. Review URL: https://codereview.chromium.org/416263002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/url_pattern.h')
-rw-r--r--extensions/common/url_pattern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/common/url_pattern.h b/extensions/common/url_pattern.h
index 871d7ad..5a0e8c6 100644
--- a/extensions/common/url_pattern.h
+++ b/extensions/common/url_pattern.h
@@ -73,6 +73,7 @@ class URLPattern {
PARSE_ERROR_INVALID_HOST_WILDCARD,
PARSE_ERROR_EMPTY_PATH,
PARSE_ERROR_INVALID_PORT,
+ PARSE_ERROR_INVALID_HOST,
NUM_PARSE_RESULTS
};