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

Issue 2044923003: QUIC/cronet - Fix crash bug b/28676259. Handle session_ being a nullptr. (Closed)

Created:
4 years, 6 months ago by ramant (doing other things)
Modified:
4 years, 6 months ago
Reviewers:
mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

QUIC/cronet - Fix crash bug b/28676259. Handle session_ being a nullptr. R=mef@chromium.org Committed: https://crrev.com/10c34f79c450f00cc12ee21cb69bba154dfeca53 Cr-Commit-Position: refs/heads/master@{#398392}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M net/quic/quic_http_stream.cc View 1 chunk +6 lines, -0 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 17 (7 generated)
ramant (doing other things)
4 years, 6 months ago (2016-06-07 19:54:10 UTC) #1
ramant (doing other things)
On 2016/06/07 19:54:10, ramant wrote: Hi Misha, This is a temporary fix and would like ...
4 years, 6 months ago (2016-06-07 19:56:27 UTC) #3
mef
lgtm
4 years, 6 months ago (2016-06-07 20:02:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2044923003/1
4 years, 6 months ago (2016-06-07 20:32:49 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-07 21:45:45 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/10c34f79c450f00cc12ee21cb69bba154dfeca53 Cr-Commit-Position: refs/heads/master@{#398392}
4 years, 6 months ago (2016-06-07 21:47:45 UTC) #10
xunjieli
https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc File net/quic/quic_http_stream.cc (right): https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc#newcode178 net/quic/quic_http_stream.cc:178: if (session_.get() == nullptr) { Could just do "if ...
4 years, 6 months ago (2016-06-07 23:46:25 UTC) #12
ramant (doing other things)
https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc File net/quic/quic_http_stream.cc (right): https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc#newcode178 net/quic/quic_http_stream.cc:178: if (session_.get() == nullptr) { On 2016/06/07 23:46:25, xunjieli ...
4 years, 6 months ago (2016-06-07 23:58:33 UTC) #15
xunjieli
On 2016/06/07 23:58:33, ramant wrote: > https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc > File net/quic/quic_http_stream.cc (right): > > https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc#newcode178 > ...
4 years, 6 months ago (2016-06-08 13:13:40 UTC) #16
ramant (doing other things)
4 years, 6 months ago (2016-06-18 00:18:05 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.cc
File net/quic/quic_http_stream.cc (right):

https://codereview.chromium.org/2044923003/diff/1/net/quic/quic_http_stream.c...
net/quic/quic_http_stream.cc:178: if (session_.get() == nullptr) {
On 2016/06/07 23:58:32, ramant wrote:
> On 2016/06/07 23:46:25, xunjieli wrote:
> > Could just do "if (!session_)". It's more consistent with the other null
> checks
> > in this file.  
> 
> Regarding WeakPtr, the following discussion could be interesting.
> 
>
https://mail.google.com/mail/u/0/#search/label%3Achromium-dev+weakptr/155189b...
> 
> Wanted to see if there is a platform specific bug. Will change it to
(!session_)
> and will add UMA histograms to track how many times we hit this condition.
> 

Uploaded CL: https://codereview.chromium.org/2073323003/ to collect histogram
data.

Powered by Google App Engine
This is Rietveld 408576698