Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Issue 2344873002: WebSocketExtensionParser: reject top-bit-set characters (Closed)

Created:
4 years, 3 months ago by Adam Rice
Modified:
4 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, cbentzel+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebSocketExtensionParser: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -42 lines) Patch
M net/websockets/websocket_extension_parser.h View 1 chunk +0 lines, -4 lines 0 comments Download
M net/websockets/websocket_extension_parser.cc View 1 2 3 8 chunks +18 lines, -37 lines 0 comments Download
M net/websockets/websocket_extension_parser_test.cc View 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 15 (8 generated)
Adam Rice
4 years, 3 months ago (2016-09-16 00:58:39 UTC) #6
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/2344873002/diff/1/net/websockets/websocket_extension_parser.cc File net/websockets/websocket_extension_parser.cc (right): https://codereview.chromium.org/2344873002/diff/1/net/websockets/websocket_extension_parser.cc#newcode112 net/websockets/websocket_extension_parser.cc:112: while (current_ < end_ && !IsControl(*current_)) { we ...
4 years, 3 months ago (2016-09-16 04:44:23 UTC) #8
Adam Rice
+tyoshino I reorganised ConsumeQuotedToken() a bit more so if you could have a quick look ...
4 years, 3 months ago (2016-09-16 05:57:56 UTC) #9
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/2344873002/diff/1/net/websockets/websocket_extension_parser.cc File net/websockets/websocket_extension_parser.cc (right): https://codereview.chromium.org/2344873002/diff/1/net/websockets/websocket_extension_parser.cc#newcode121 net/websockets/websocket_extension_parser.cc:121: break; On 2016/09/16 05:57:56, Adam Rice wrote: > ...
4 years, 3 months ago (2016-09-16 06:44:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344873002/60001
4 years, 3 months ago (2016-09-16 06:45:39 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-16 07:47:27 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 07:48:41 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/66318666019b16c7315c5e1747101bc7e8e9bab7
Cr-Commit-Position: refs/heads/master@{#419125}

Powered by Google App Engine
This is Rietveld 408576698