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

Issue 2046613002: Do not crash on null stream in writing to bidirectional streams (Closed)

Created:
4 years, 6 months ago by xunjieli
Modified:
4 years, 6 months ago
Reviewers:
mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
Project:
chromium
Visibility:
Public.

Description

Do not crash on null stream in writing to bidirectional streams When SendData/SendvData is called, it might be that OnClose has been invoked without an error, in which case BidirectionalStream::Delegate::OnFailed would not have been invoked. This is theoretically possible, but I am not aware if such case would exist. This CL removes the assumption that SendData/SendvData is only called when stream is alive. If stream is destroyed, propagate that as an ERR_UNEXPECTED to caller, instead of crashing with a segfault. BUG=606394 TBR=mef@chromium.org NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2032733002 Cr-Commit-Position: refs/heads/master@{#398031} (cherry picked from commit 707f895efd414219d609533e82be1ffc60fd9788)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -42 lines) Patch
M net/http/bidirectional_stream.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/bidirectional_stream_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/net.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/bidirectional_stream_quic_impl.cc View 10 chunks +49 lines, -12 lines 0 comments Download
M net/quic/bidirectional_stream_quic_impl_unittest.cc View 11 chunks +23 lines, -4 lines 0 comments Download
M net/spdy/bidirectional_stream_spdy_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/spdy/bidirectional_stream_spdy_impl.cc View 10 chunks +69 lines, -22 lines 0 comments Download
A net/spdy/bidirectional_stream_spdy_impl_unittest.cc View 1 chunk +373 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
xunjieli
Hi Misha, this is to merge into M52. I will CQ it once I confirm ...
4 years, 6 months ago (2016-06-06 15:45:51 UTC) #1
mef
lgtm
4 years, 6 months ago (2016-06-06 16:36:29 UTC) #2
xunjieli
On 2016/06/06 16:36:29, mef wrote: > lgtm Verified net_unittests and Cronet tests are still passing.
4 years, 6 months ago (2016-06-06 16:39:13 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046613002/1
4 years, 6 months ago (2016-06-06 16:39:54 UTC) #5
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 16:41:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1)

Powered by Google App Engine
This is Rietveld 408576698