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

Issue 157033013: Check for invalid use of data frame opcodes. (Closed)

Created:
6 years, 10 months ago by Adam Rice
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Check for invalid use of data frame opcodes. Text and Binary opcodes cannot appear in the middle of a message, and the Continuation opcode cannot appear at the start. Fail the channel if violations of this rule are found. BUG=343105 TEST=net_unittests, layout tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252001

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move continuation checking into HandleDataFrame. #

Total comments: 6

Patch Set 3 : Remove |expecting_continuation| parameter from HandleDataFrame() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -34 lines) Patch
M net/websockets/websocket_channel.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M net/websockets/websocket_channel.cc View 1 2 3 chunks +57 lines, -34 lines 0 comments Download
M net/websockets/websocket_channel_test.cc View 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Adam Rice
6 years, 10 months ago (2014-02-12 11:25:13 UTC) #1
yhirano
https://codereview.chromium.org/157033013/diff/1/net/websockets/websocket_channel.cc File net/websockets/websocket_channel.cc (right): https://codereview.chromium.org/157033013/diff/1/net/websockets/websocket_channel.cc#newcode670 net/websockets/websocket_channel.cc:670: if (expecting_to_read_continuation_) { Shouldn't the received message be ignored ...
6 years, 10 months ago (2014-02-13 05:36:41 UTC) #2
Adam Rice
https://codereview.chromium.org/157033013/diff/1/net/websockets/websocket_channel.cc File net/websockets/websocket_channel.cc (right): https://codereview.chromium.org/157033013/diff/1/net/websockets/websocket_channel.cc#newcode670 net/websockets/websocket_channel.cc:670: if (expecting_to_read_continuation_) { On 2014/02/13 05:36:42, yhirano wrote: > ...
6 years, 10 months ago (2014-02-13 07:29:49 UTC) #3
yhirano
lgtm https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc File net/websockets/websocket_channel.cc (right): https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc#newcode744 net/websockets/websocket_channel.cc:744: if (expecting_continuation != expecting_to_read_continuation_) { [opt] Just using ...
6 years, 10 months ago (2014-02-13 08:51:28 UTC) #4
Adam Rice
+tyoshino https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc File net/websockets/websocket_channel.cc (right): https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc#newcode744 net/websockets/websocket_channel.cc:744: if (expecting_continuation != expecting_to_read_continuation_) { On 2014/02/13 08:51:28, ...
6 years, 10 months ago (2014-02-18 05:22:36 UTC) #5
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc File net/websockets/websocket_channel.cc (right): https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc#newcode744 net/websockets/websocket_channel.cc:744: if (expecting_continuation != expecting_to_read_continuation_) { On 2014/02/18 05:22:36, ...
6 years, 10 months ago (2014-02-18 06:24:12 UTC) #6
Adam Rice
https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc File net/websockets/websocket_channel.cc (right): https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc#newcode744 net/websockets/websocket_channel.cc:744: if (expecting_continuation != expecting_to_read_continuation_) { On 2014/02/18 06:24:12, tyoshino ...
6 years, 10 months ago (2014-02-18 11:12:42 UTC) #7
tyoshino (SeeGerritForStatus)
On 2014/02/18 11:12:42, Adam Rice wrote: > https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc > File net/websockets/websocket_channel.cc (right): > > https://codereview.chromium.org/157033013/diff/50001/net/websockets/websocket_channel.cc#newcode744 ...
6 years, 10 months ago (2014-02-19 04:32:14 UTC) #8
Adam Rice
The CQ bit was checked by ricea@chromium.org
6 years, 10 months ago (2014-02-19 05:27:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/157033013/160001
6 years, 10 months ago (2014-02-19 05:27:38 UTC) #10
commit-bot: I haz the power
6 years, 10 months ago (2014-02-19 08:28:55 UTC) #11
Message was sent while issue was closed.
Change committed as 252001

Powered by Google App Engine
This is Rietveld 408576698