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

Issue 1537343002: Fix null dereference on MemoryCache. (Closed)

Created:
5 years ago by yhirano
Modified:
4 years, 11 months ago
Reviewers:
Nate Chapin
CC:
sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix null dereference on MemoryCache. Usually a valid MemoryCacheEntry holds a non-null Resource as |m_resource|. But when we hold a valid MemoryCacheEntry beyond destructive statements, it may be evicted from the cache and get stale. That means |m_resource| can be null in such cases. This CL checks it in order to avoid null dereference. BUG=488373 Committed: https://crrev.com/5de01d904d77ba5e5beaf4776e45e6eecd47a87b Cr-Commit-Position: refs/heads/master@{#367779} Committed: https://crrev.com/843010ff7eeda6e9e87347aaaa6365efecd1161d Cr-Commit-Position: refs/heads/master@{#367802}

Patch Set 1 #

Patch Set 2 : with test, without fix #

Patch Set 3 : with test & fix #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -8 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPropertyMetadata.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserSelector.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/StyleSheetResource.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 42 (22 generated)
yhirano
5 years ago (2015-12-21 07:16:35 UTC) #4
Nate Chapin
On 2015/12/21 07:16:35, yhirano wrote: Is this dependent on oilpan GC timing then?
5 years ago (2015-12-21 22:03:56 UTC) #5
yhirano
On 2015/12/21 22:03:56, Nate Chapin wrote: > On 2015/12/21 07:16:35, yhirano wrote: > > Is ...
5 years ago (2015-12-21 23:57:58 UTC) #6
Nate Chapin
On 2015/12/21 23:57:58, yhirano wrote: > On 2015/12/21 22:03:56, Nate Chapin wrote: > > On ...
5 years ago (2015-12-22 00:06:12 UTC) #7
yhirano
On 2015/12/22 00:06:12, Nate Chapin wrote: > On 2015/12/21 23:57:58, yhirano wrote: > > On ...
5 years ago (2015-12-22 00:19:39 UTC) #8
Nate Chapin
Ok. It's unfortunate that this requires breaking out of the loop, but it appears that ...
5 years ago (2015-12-22 00:33:06 UTC) #9
yhirano
On 2015/12/22 00:33:06, Nate Chapin wrote: > Ok. It's unfortunate that this requires breaking out ...
5 years ago (2015-12-24 07:40:53 UTC) #15
Nate Chapin
On 2015/12/24 07:40:53, yhirano wrote: > On 2015/12/22 00:33:06, Nate Chapin wrote: > > Ok. ...
4 years, 11 months ago (2015-12-29 23:53:25 UTC) #16
yhirano
On 2015/12/29 23:53:25, Nate Chapin wrote: > I wrote a change to do disperse the ...
4 years, 11 months ago (2016-01-05 08:07:56 UTC) #23
Nate Chapin
lgtm
4 years, 11 months ago (2016-01-05 22:07:58 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537343002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537343002/280001
4 years, 11 months ago (2016-01-06 02:17:32 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:280001)
4 years, 11 months ago (2016-01-06 05:23:04 UTC) #28
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/5de01d904d77ba5e5beaf4776e45e6eecd47a87b Cr-Commit-Position: refs/heads/master@{#367779}
4 years, 11 months ago (2016-01-06 05:24:01 UTC) #30
Noel Gordon
On 2016/01/06 05:24:01, commit-bot: I haz the power wrote: > Patchset 4 (id:??) landed as ...
4 years, 11 months ago (2016-01-06 06:46:58 UTC) #31
yhirano
On 2016/01/06 06:46:58, noel gordon wrote: > On 2016/01/06 05:24:01, commit-bot: I haz the power ...
4 years, 11 months ago (2016-01-06 06:49:46 UTC) #32
yhirano
A revert of this CL (patchset #4 id:280001) has been created in https://codereview.chromium.org/1566653002/ by yhirano@chromium.org. ...
4 years, 11 months ago (2016-01-06 06:51:11 UTC) #33
yhirano
Sorry, I didn't notice sigbjornf@ had already fixed the compile error and I reverted the ...
4 years, 11 months ago (2016-01-06 07:03:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537343002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537343002/300001
4 years, 11 months ago (2016-01-06 07:37:56 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:300001)
4 years, 11 months ago (2016-01-06 09:33:53 UTC) #40
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 09:35:25 UTC) #42
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/843010ff7eeda6e9e87347aaaa6365efecd1161d
Cr-Commit-Position: refs/heads/master@{#367802}

Powered by Google App Engine
This is Rietveld 408576698