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

Issue 197883021: Initialise raw pointer to null in FontBuilder constructor (Closed)

Created:
6 years, 9 months ago by alancutter (OOO until 2018)
Modified:
6 years, 9 months ago
Reviewers:
eseidel
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Initialise raw pointer to null in FontBuilder constructor RenderStyle* m_style on FontBuilder doesn't get initialised in the constructor. The majority of methods on FontBuilder will attempt to deref it as a garbage raw pointer if they get called before initForStyleResolve() is called. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169447

Patch Set 1 #

Patch Set 2 : Added unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M Source/core/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.cpp View 1 chunk +1 line, -0 lines 0 comments Download
A Source/core/css/resolver/FontBuilderTest.cpp View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
alancutter (OOO until 2018)
6 years, 9 months ago (2014-03-18 05:44:35 UTC) #1
eseidel
Test? lgtm on the code change, but I'd really like to land a test, even ...
6 years, 9 months ago (2014-03-18 05:47:38 UTC) #2
alancutter (OOO until 2018)
On 2014/03/18 05:47:38, eseidel wrote: > Test? lgtm on the code change, but I'd really ...
6 years, 9 months ago (2014-03-18 06:19:05 UTC) #3
alancutter (OOO until 2018)
On 2014/03/18 06:19:05, alancutter wrote: > On 2014/03/18 05:47:38, eseidel wrote: > > Test? lgtm ...
6 years, 9 months ago (2014-03-18 06:42:18 UTC) #4
eseidel
lgtm
6 years, 9 months ago (2014-03-18 07:04:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/197883021/20001
6 years, 9 months ago (2014-03-18 07:04:33 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 07:05:52 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_compile_dbg
6 years, 9 months ago (2014-03-18 07:05:52 UTC) #8
alancutter (OOO until 2018)
The CQ bit was checked by alancutter@chromium.org
6 years, 9 months ago (2014-03-18 12:28:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/197883021/20001
6 years, 9 months ago (2014-03-18 12:28:26 UTC) #10
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 14:04:08 UTC) #11
Message was sent while issue was closed.
Change committed as 169447

Powered by Google App Engine
This is Rietveld 408576698