From 80d5aa4a1de9107d1442480b8ea9ba06feff2be2 Mon Sep 17 00:00:00 2001 From: "yoz@chromium.org" Date: Fri, 25 Jul 2014 05:45:40 +0000 Subject: 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 --- extensions/common/url_pattern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'extensions/common/url_pattern.h') 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 }; -- cgit v1.1