DescriptionWebSocketExtensionParser: reject top-bit-set characters
net::WebSocketExtensionParser would accept top-bit-set characters in
tokens. Change it to use net::HttpUtil::IsTokenChar() so it accepts the same
characters as everything else.
Add some tests for top-bit-set characters and a regression test for issue
647156.
Also various minor changes to make the code more Chromey.
BUG=647156
Committed: https://crrev.com/66318666019b16c7315c5e1747101bc7e8e9bab7
Cr-Commit-Position: refs/heads/master@{#419125}
Patch Set 1 #
Total comments: 6
Patch Set 2 : More cleanups by tyoshino #Patch Set 3 : One more simplification #Patch Set 4 : Include logging.h, remove string_util.h #
Messages
Total messages: 15 (8 generated)
|