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

Issue 813993002: Fix crash in handling PushStreams (Closed)

Created:
6 years ago by bacek_yandex
Modified:
5 years, 11 months ago
Reviewers:
*Bence, Ryan Hamilton, bacek
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

Fix crash in handling PushStreams "pushed_it" created early can point to expired entry. DeleteExpiredPushedStreams will remove actual entry invalidating "pushed_it" iterator. std::map::insert will crash when invalid iterator passed as hint. Swap inserting new element and removing expired ones so iterator will stay valid until late. BUG=443490 R=bnc@chromium.org, rch@chromium.org Committed: https://crrev.com/3bf914c745aa34ba3bce47ec6e1d0b4aee7f0eb0 Cr-Commit-Position: refs/heads/master@{#311345}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix crash in handling PushStreams #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M net/spdy/spdy_session.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
bacek_yandex
6 years ago (2014-12-18 06:20:53 UTC) #1
szym
-szym Leaving this one to Johnny.
6 years ago (2014-12-18 06:25:00 UTC) #2
szym
https://codereview.chromium.org/813993002/diff/1/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (left): https://codereview.chromium.org/813993002/diff/1/net/spdy/spdy_session.cc#oldcode2706 net/spdy/spdy_session.cc:2706: DeleteExpiredPushedStreams(); This is definitely a bug and the solution ...
6 years ago (2014-12-18 06:34:38 UTC) #5
baranovich
I would suggest moving DeleteExpiredPushedStreams() before we check for duplicate. Now code may end up ...
6 years ago (2014-12-18 20:25:32 UTC) #6
Ryan Hamilton
https://codereview.chromium.org/813993002/diff/1/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (left): https://codereview.chromium.org/813993002/diff/1/net/spdy/spdy_session.cc#oldcode2706 net/spdy/spdy_session.cc:2706: DeleteExpiredPushedStreams(); On 2014/12/18 06:34:38, szym wrote: > This is ...
5 years, 11 months ago (2015-01-07 19:32:14 UTC) #9
bacek_yandex
On 2015/01/07 19:32:14, Ryan Hamilton wrote: > > The only thing that I'd ask for ...
5 years, 11 months ago (2015-01-07 23:24:36 UTC) #10
bacek_yandex
On 2015/01/07 23:24:36, bacek_yandex wrote: > On 2015/01/07 19:32:14, Ryan Hamilton wrote: > > > ...
5 years, 11 months ago (2015-01-09 00:13:36 UTC) #11
bacek_yandex
Unittest added.
5 years, 11 months ago (2015-01-09 00:14:21 UTC) #12
Ryan Hamilton
On 2015/01/09 00:14:21, bacek_yandex wrote: > Unittest added. To confirm, this test fails (crashes?) w/o ...
5 years, 11 months ago (2015-01-09 19:00:05 UTC) #15
bacek_yandex
On 2015/01/09 19:00:05, Ryan Hamilton wrote: > On 2015/01/09 00:14:21, bacek_yandex wrote: > > Unittest ...
5 years, 11 months ago (2015-01-11 08:00:18 UTC) #16
Ryan Hamilton
LGTM
5 years, 11 months ago (2015-01-12 01:01:42 UTC) #17
bacek_yandex
On 2015/01/12 01:01:42, Ryan Hamilton wrote: > LGTM Should I wait for Bence? Or find ...
5 years, 11 months ago (2015-01-13 03:45:35 UTC) #18
Bence
LGTM, sorry for the delay.
5 years, 11 months ago (2015-01-13 15:34:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/813993002/20001
5 years, 11 months ago (2015-01-13 21:23:57 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-13 22:20:01 UTC) #23
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 22:20:47 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3bf914c745aa34ba3bce47ec6e1d0b4aee7f0eb0
Cr-Commit-Position: refs/heads/master@{#311345}

Powered by Google App Engine
This is Rietveld 408576698