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

Issue 1333003002: Correct a possible free after use. (Closed)

Created:
5 years, 3 months ago by herb_g
Modified:
5 years, 3 months ago
Reviewers:
mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Correct a possible free after use. This shows up in TSAN runs as a use-after-free warning. BUG=skia: Committed: https://skia.googlesource.com/skia/+/83e599a7ab49a9ef2e736d3d501b376f7b1993d6

Patch Set 1 #

Patch Set 2 : move purge code. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -9 lines) Patch
M src/core/SkGlyphCache.cpp View 1 3 chunks +3 lines, -8 lines 1 comment Download
M src/core/SkGlyphCache_Globals.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
herb_g
5 years, 3 months ago (2015-09-10 20:08:57 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1333003002/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1333003002/2
5 years, 3 months ago (2015-09-10 20:09:10 UTC) #4
mtklein
I don't think I understand the use-after-free and how this fixes it. Walk me through ...
5 years, 3 months ago (2015-09-10 20:17:33 UTC) #5
mtklein
https://codereview.chromium.org/1333003002/diff/2/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/1333003002/diff/2/src/core/SkGlyphCache.cpp#newcode433 src/core/SkGlyphCache.cpp:433: AutoAcquire ac(globals.fLock); Does this make sense? // Do not ...
5 years, 3 months ago (2015-09-10 20:35:47 UTC) #6
mtklein
lgtm as-is. my question is follow-up-y.
5 years, 3 months ago (2015-09-10 20:39:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1333003002/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1333003002/2
5 years, 3 months ago (2015-09-10 20:46:13 UTC) #11
commit-bot: I haz the power
5 years, 3 months ago (2015-09-10 21:16:15 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:2) as
https://skia.googlesource.com/skia/+/83e599a7ab49a9ef2e736d3d501b376f7b1993d6

Powered by Google App Engine
This is Rietveld 408576698