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

Issue 2640363004: HttpServer WebSocket: don't crash on data before server handshake (Closed)

Created:
3 years, 11 months ago by Maks Orlovich
Modified:
3 years, 11 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HttpServer WebSocket: don't crash on data before server handshake (Which includes the case of a server delegate which doesn't do anything with WebSocket requests). Note: this assumes 860f9bd is in, since otherwise the test would leak. BUG=606428 Review-Url: https://codereview.chromium.org/2640363004 Cr-Commit-Position: refs/heads/master@{#445439} Committed: https://chromium.googlesource.com/chromium/src/+/788a643320ed52bdaf97892a43c505314678157a

Patch Set 1 #

Patch Set 2 : HttpServer WebSocket: don't crash if data received before server handshake #

Total comments: 8

Patch Set 3 : Apply review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M net/server/http_server_unittest.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M net/server/web_socket.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (22 generated)
Maks Orlovich
3 years, 11 months ago (2017-01-23 14:14:42 UTC) #11
mmenke
Thanks for finding and fixing this. LGTM, modulo comments. https://codereview.chromium.org/2640363004/diff/20001/net/server/web_socket.cc File net/server/web_socket.cc (right): https://codereview.chromium.org/2640363004/diff/20001/net/server/web_socket.cc#newcode104 net/server/web_socket.cc:104: ...
3 years, 11 months ago (2017-01-23 16:17:21 UTC) #12
Maks Orlovich
https://codereview.chromium.org/2640363004/diff/20001/net/server/web_socket.cc File net/server/web_socket.cc (right): https://codereview.chromium.org/2640363004/diff/20001/net/server/web_socket.cc#newcode104 net/server/web_socket.cc:104: // any further data". If encoder_ is null here, ...
3 years, 11 months ago (2017-01-23 17:28:29 UTC) #15
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/2640363004/40001
3 years, 11 months ago (2017-01-23 19:39:37 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 19:47:34 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/788a643320ed52bdaf97892a43c5...

Powered by Google App Engine
This is Rietveld 408576698