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

Issue 131103017: ASSERTION FAILED: !remainder in WebCore::RenderTableSection::distributeExtraRowSpanHeightToAutoRows (Closed)

Created:
6 years, 11 months ago by a.suchit
Modified:
6 years, 9 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, eae
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

ASSERTION FAILED: !remainder in WebCore::RenderTableSection::distributeExtraRowSpanHeightToAutoRows While distributing the extra rowspan height in rows, result of multiplication is overflowing in integer and whole method is getting failed due to this. So typecasted a value to 'long long' and final result of the calculation always fits in integer range. BUG=334652 R=jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169843

Patch Set 1 #

Patch Set 2 : Used LayoutUnit for computation. It is just for reference because it does not work. #

Patch Set 3 : Updated #

Total comments: 7

Patch Set 4 : Review comments addressed #

Total comments: 4

Patch Set 5 : Added a test case and fixed review comments #

Total comments: 7

Patch Set 6 : Fixed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -4 lines) Patch
A LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value-expected.txt View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderTableSection.cpp View 1 2 3 4 5 3 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
suchit.agrawal
6 years, 11 months ago (2014-01-23 05:19:02 UTC) #1
a.suchit
On 2014/01/23 05:19:02, suchit.agrawal wrote: I do not think, typecasting is good way to solve ...
6 years, 11 months ago (2014-01-23 05:29:32 UTC) #2
Julien - ping for review
I don't have a good solution for an overflow triggering the ASSERT. However using LayoutUnit ...
6 years, 10 months ago (2014-02-06 22:55:09 UTC) #3
a.suchit
On 2014/02/06 22:55:09, Julien Chaffraix - PST wrote: > I don't have a good solution ...
6 years, 10 months ago (2014-02-19 13:35:00 UTC) #4
a.suchit
On 2014/02/19 13:35:00, a.suchit wrote: > On 2014/02/06 22:55:09, Julien Chaffraix - PST wrote: > ...
6 years, 9 months ago (2014-03-04 06:56:34 UTC) #5
a.suchit
I tried to fix it by LayoutUnit. But it did not solve this problem. Patch ...
6 years, 9 months ago (2014-03-05 12:38:15 UTC) #6
eseidel
Emil and Levi are layoutunit ninjas.
6 years, 9 months ago (2014-03-05 22:49:27 UTC) #7
leviw_travelin_and_unemployed
On 2014/03/05 12:38:15, a.suchit wrote: > I tried to fix it by LayoutUnit. But it ...
6 years, 9 months ago (2014-03-05 22:57:08 UTC) #8
leviw_travelin_and_unemployed
LayoutUnit has a smaller range than integer (INT_MAX/64). We explicitly don't use LayoutUnit for tables ...
6 years, 9 months ago (2014-03-05 23:01:42 UTC) #9
Julien - ping for review
https://codereview.chromium.org/131103017/diff/100001/Source/core/rendering/RenderTableSection.cpp File Source/core/rendering/RenderTableSection.cpp (right): https://codereview.chromium.org/131103017/diff/100001/Source/core/rendering/RenderTableSection.cpp#newcode349 Source/core/rendering/RenderTableSection.cpp:349: accumulatedPositionIncrease += ((long long)extraRowSpanningHeight * rowsHeight[row - rowIndex]) / ...
6 years, 9 months ago (2014-03-06 00:29:18 UTC) #10
a.suchit
https://codereview.chromium.org/131103017/diff/100001/Source/core/rendering/RenderTableSection.cpp File Source/core/rendering/RenderTableSection.cpp (right): https://codereview.chromium.org/131103017/diff/100001/Source/core/rendering/RenderTableSection.cpp#newcode346 Source/core/rendering/RenderTableSection.cpp:346: // One of the variable in calculation typecasted with ...
6 years, 9 months ago (2014-03-10 09:37:55 UTC) #11
Julien - ping for review
The code is fine, but the change needs a test. https://codereview.chromium.org/131103017/diff/100001/Source/core/rendering/RenderTableSection.cpp File Source/core/rendering/RenderTableSection.cpp (right): https://codereview.chromium.org/131103017/diff/100001/Source/core/rendering/RenderTableSection.cpp#newcode349 ...
6 years, 9 months ago (2014-03-10 18:36:39 UTC) #12
a.suchit
https://codereview.chromium.org/131103017/diff/120001/Source/core/rendering/RenderTableSection.cpp File Source/core/rendering/RenderTableSection.cpp (right): https://codereview.chromium.org/131103017/diff/120001/Source/core/rendering/RenderTableSection.cpp#newcode335 Source/core/rendering/RenderTableSection.cpp:335: static int calcIncreasedRowHeight(long long extraHeight, long long rowHeight, long ...
6 years, 9 months ago (2014-03-11 12:33:56 UTC) #13
a.suchit
On 2014/03/11 12:33:56, a.suchit wrote: > https://codereview.chromium.org/131103017/diff/120001/Source/core/rendering/RenderTableSection.cpp > File Source/core/rendering/RenderTableSection.cpp (right): > > https://codereview.chromium.org/131103017/diff/120001/Source/core/rendering/RenderTableSection.cpp#newcode335 > ...
6 years, 9 months ago (2014-03-15 02:12:52 UTC) #14
a.suchit
On 2014/03/15 02:12:52, a.suchit wrote: > On 2014/03/11 12:33:56, a.suchit wrote: > > > https://codereview.chromium.org/131103017/diff/120001/Source/core/rendering/RenderTableSection.cpp ...
6 years, 9 months ago (2014-03-18 10:50:41 UTC) #15
a.suchit2
On 2014/03/18 10:50:41, a.suchit wrote: > On 2014/03/15 02:12:52, a.suchit wrote: > > On 2014/03/11 ...
6 years, 9 months ago (2014-03-20 00:25:43 UTC) #16
Julien - ping for review
lgtm https://codereview.chromium.org/131103017/diff/140001/LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html File LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html (right): https://codereview.chromium.org/131103017/diff/140001/LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html#newcode10 LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html:10: </style> Nit: The indentation is not consistent above ...
6 years, 9 months ago (2014-03-21 04:18:04 UTC) #17
a.suchit
https://codereview.chromium.org/131103017/diff/140001/LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html File LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html (right): https://codereview.chromium.org/131103017/diff/140001/LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html#newcode10 LayoutTests/fast/table/table-rowspan-crash-with-huge-pedding-value.html:10: </style> On 2014/03/21 04:18:05, Julien Chaffraix - PST wrote: ...
6 years, 9 months ago (2014-03-24 10:53:58 UTC) #18
a.suchit
The CQ bit was checked by a.suchit@samsung.com
6 years, 9 months ago (2014-03-24 10:54:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/131103017/160001
6 years, 9 months ago (2014-03-24 10:54:14 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 10:56:38 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-24 10:56:38 UTC) #22
a.suchit
The CQ bit was checked by a.suchit@samsung.com
6 years, 9 months ago (2014-03-24 12:16:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a.suchit@samsung.com/131103017/160001
6 years, 9 months ago (2014-03-24 12:16:36 UTC) #24
commit-bot: I haz the power
6 years, 9 months ago (2014-03-24 12:16:53 UTC) #25
Message was sent while issue was closed.
Change committed as 169843

Powered by Google App Engine
This is Rietveld 408576698