diff options
author | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-15 18:19:54 +0000 |
---|---|---|
committer | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-15 18:19:54 +0000 |
commit | 6851850acc6f14b8d1df6525915781898c3b1e52 (patch) | |
tree | c225d791ecb3ce0b139708e7a075472d22f53459 /base/base.gypi | |
parent | cac1654c1367f5f6921f447ee31313d36d8d8f72 (diff) | |
download | chromium_src-6851850acc6f14b8d1df6525915781898c3b1e52.zip chromium_src-6851850acc6f14b8d1df6525915781898c3b1e52.tar.gz chromium_src-6851850acc6f14b8d1df6525915781898c3b1e52.tar.bz2 |
The browser-side WebSocket implementation needs to avoid sending invalid
UTF-8 data from a compromised renderer over the network. It also needs to validate UTF-8 data from the network for protocol compliance. Since WebSocket messages are broken into frames and
frame boundaries are permitted to occur in the middle of a UTF8
character, we need a streaming UTF-8 validator. Implement one.
BUG=327613
TEST=base_unittests --gtest_filter=Streaming*
Review URL: https://codereview.chromium.org/23892013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gypi')
-rw-r--r-- | base/base.gypi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/base.gypi b/base/base.gypi index c593ac0..c41c387 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -969,10 +969,10 @@ 'i18n/bidi_line_iterator.h', 'i18n/break_iterator.cc', 'i18n/break_iterator.h', - 'i18n/char_iterator.cc', - 'i18n/char_iterator.h', 'i18n/case_conversion.cc', 'i18n/case_conversion.h', + 'i18n/char_iterator.cc', + 'i18n/char_iterator.h', 'i18n/file_util_icu.cc', 'i18n/file_util_icu.h', 'i18n/i18n_constants.cc', @@ -987,6 +987,8 @@ 'i18n/number_formatting.h', 'i18n/rtl.cc', 'i18n/rtl.h', + 'i18n/streaming_utf8_validator.cc', + 'i18n/streaming_utf8_validator.h', 'i18n/string_compare.cc', 'i18n/string_compare.h', 'i18n/string_search.cc', @@ -995,6 +997,8 @@ 'i18n/time_formatting.h', 'i18n/timezone.cc', 'i18n/timezone.h', + 'i18n/utf8_validator_tables.cc', + 'i18n/utf8_validator_tables.h', ], }] ], |