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

Issue 1285583004: Fix numeric overflow handling in LayoutRubyBase (Closed)

Created:
5 years, 4 months ago by eae
Modified:
5 years, 4 months ago
Reviewers:
wkorman
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix numeric overflow handling in LayoutRubyBase Prevent potential divide by zero in LayoutRubyBase by adding an explicit check for the maximum allowed value, thereby avoiding it to wrap around. R=wkorman@chromium.org BUG=518702 TEST=fast/dom/ruby-numeric-overflow.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200282

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, --1 lines) Patch
A LayoutTests/fast/dom/ruby-numeric-overflow.html View 1 chunk +24 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/ruby-numeric-overflow-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/layout/LayoutRubyBase.cpp View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (1 generated)
eae
5 years, 4 months ago (2015-08-10 20:48:52 UTC) #1
eae
Can haz review?
5 years, 4 months ago (2015-08-11 00:54:44 UTC) #2
wkorman
lgtm https://codereview.chromium.org/1285583004/diff/1/Source/core/layout/LayoutRubyBase.cpp File Source/core/layout/LayoutRubyBase.cpp (right): https://codereview.chromium.org/1285583004/diff/1/Source/core/layout/LayoutRubyBase.cpp#newcode143 Source/core/layout/LayoutRubyBase.cpp:143: unsigned maxCount = static_cast<unsigned>(LayoutUnit::max().floor()); Do we need to ...
5 years, 4 months ago (2015-08-11 01:03:32 UTC) #3
eae
> Unit tests for this class could be worthwhile at some point to catch this ...
5 years, 4 months ago (2015-08-11 01:09:14 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285583004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285583004/1
5 years, 4 months ago (2015-08-11 01:09:31 UTC) #6
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 01:12:55 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200282

Powered by Google App Engine
This is Rietveld 408576698