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

Issue 209353004: Remove mutation foot-gun from CSSPrimitiveValue (Closed)

Created:
6 years, 9 months ago by eseidel
Modified:
6 years, 9 months ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Remove mutation foot-gun from CSSPrimitiveValue Misuse of this method could easily cause memory leaks and UAFs. It wasn't actually doing anything in the one place it was called, so I removed it. I also fixed another FIXME about how unsigned/signed constructors are confusing. At least now we'll ASSERT if you got the wrong one. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170029

Patch Set 1 #

Total comments: 1

Patch Set 2 : removed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -18 lines) Patch
M Source/core/css/CSSParserValues.cpp View 1 2 chunks +4 lines, -8 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.h View 4 chunks +9 lines, -8 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
eseidel
6 years, 9 months ago (2014-03-23 04:19:30 UTC) #1
esprehn
lgtm https://codereview.chromium.org/209353004/diff/1/Source/core/css/CSSParserValues.cpp File Source/core/css/CSSParserValues.cpp (right): https://codereview.chromium.org/209353004/diff/1/Source/core/css/CSSParserValues.cpp#newcode91 Source/core/css/CSSParserValues.cpp:91: // FIXME: Why do we have these special-case ...
6 years, 9 months ago (2014-03-23 06:14:49 UTC) #2
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 9 months ago (2014-03-26 05:01:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/209353004/20001
6 years, 9 months ago (2014-03-26 05:01:13 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 05:30:44 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-26 05:30:44 UTC) #6
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 9 months ago (2014-03-26 06:30:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/209353004/20001
6 years, 9 months ago (2014-03-26 06:30:37 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 07:05:58 UTC) #9
Message was sent while issue was closed.
Change committed as 170029

Powered by Google App Engine
This is Rietveld 408576698