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

Issue 2695223007: Make LayoutListItem::value to use SaturatedAddition to prevent integer overflow (Closed)

Created:
3 years, 10 months ago by Gleb Lanbin
Modified:
3 years, 10 months ago
Reviewers:
cbiesinger, tkent
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, blink-reviews-layout_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make LayoutListItem::value to use SaturatedAddition to prevent integer overflow The problem has been spotted by UBSan. Detailed report: https://cluster-fuzz.appspot.com/testcase?key=4949437635100672 BUG=658714 Review-Url: https://codereview.chromium.org/2695223007 Cr-Commit-Position: refs/heads/master@{#451822} Committed: https://chromium.googlesource.com/chromium/src/+/e451db7ebedfa9a2b43b99f4c789cdde7ca97421

Patch Set 1 #

Patch Set 2 : Prevent integer overflow in LayoutListItem::calcValue #

Patch Set 3 : use SaturatedAddition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M third_party/WebKit/Source/core/layout/LayoutListItem.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (26 generated)
Gleb Lanbin
3 years, 10 months ago (2017-02-17 00:57:25 UTC) #3
Gleb Lanbin
3 years, 10 months ago (2017-02-17 21:01:19 UTC) #12
Gleb Lanbin
switched to SaturatedAddition per suggestion from cbiesinger@
3 years, 10 months ago (2017-02-17 21:07:32 UTC) #13
cbiesinger
lgtm but please update the description now that this uses saturated arithmetic
3 years, 10 months ago (2017-02-17 21:08:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695223007/40001
3 years, 10 months ago (2017-02-21 17:40:45 UTC) #29
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 19:41:51 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e451db7ebedfa9a2b43b99f4c789...

Powered by Google App Engine
This is Rietveld 408576698