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

Issue 2000123002: Fix a crash in HttpVaryData::MatchesRequests. (Closed)

Created:
4 years, 7 months ago by gabadie
Modified:
4 years, 7 months ago
Reviewers:
gavinp
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 a crash in HttpVaryData::MatchesRequests. crbug.com/469675 remove an implicit Vary: Cookie for redirected requests. But some cached redirected requests could still have HttpVaryData::is_valid_ == true. Therefore some requests could reach a NOTREACHED() in HttpVaryData::MatchesRequests() because comparing an HTTP request vary that have a HttpVaryData::Init() now returning false because no Vary from the request with a previously cached HttpVaryRequest that have is_valid_ == true. BUG=611575 Committed: https://crrev.com/7ec544a858f4dd2b5b3a0ad0949a1f24f55f10b4 Cr-Commit-Position: refs/heads/master@{#395317}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Addresses Gavin's nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M net/http/http_vary_data.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000123002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000123002/1
4 years, 7 months ago (2016-05-23 08:27:59 UTC) #2
gabadie
Hey Gavin, Here is the crash workaround in HttpVaryData::MatchesRequests. PTAL.
4 years, 7 months ago (2016-05-23 08:28:36 UTC) #4
gabadie
On 2016/05/23 08:28:36, gabadie wrote: > Hey Gavin, > > Here is the crash workaround ...
4 years, 7 months ago (2016-05-23 08:32:12 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/233676)
4 years, 7 months ago (2016-05-23 10:59:41 UTC) #7
gavinp
lgtm https://codereview.chromium.org/2000123002/diff/1/net/http/http_vary_data.cc File net/http/http_vary_data.cc (right): https://codereview.chromium.org/2000123002/diff/1/net/http/http_vary_data.cc#newcode71 net/http/http_vary_data.cc:71: // This case can happen if <this> was ...
4 years, 7 months ago (2016-05-23 11:37:35 UTC) #8
gavinp
It does make me sad that we're throwing away all these perfectly usable cached entries; ...
4 years, 7 months ago (2016-05-23 11:43:22 UTC) #9
gabadie
On 2016/05/23 11:43:22, gavinp wrote: > It does make me sad that we're throwing away ...
4 years, 7 months ago (2016-05-23 13:00:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000123002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000123002/20001
4 years, 7 months ago (2016-05-23 13:01:02 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-23 14:20:53 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 14:23:26 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7ec544a858f4dd2b5b3a0ad0949a1f24f55f10b4
Cr-Commit-Position: refs/heads/master@{#395317}

Powered by Google App Engine
This is Rietveld 408576698