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

Issue 1825023002: Fix integer truncation in Character test functions (Closed)

Created:
4 years, 9 months ago by drott
Modified:
4 years, 9 months ago
Reviewers:
pdr., kojii, eae
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix integer truncation in Character test functions The test functions checking for treatAs*Space and isNormalizedCanvasSpaceCharacter were using UChar parameter types, while they were used with UChar32 arguments in HarfBuzzShaper. This leads to characters being truncated, equivalent to being masekd with 0xFFFF, before they get passed to the space-tester functions. If the truncated value matches in one of those, they get blanked out with a space in the normalization step in HarfBuzzShaper. BUG=595960 R=pdr,eae,kojii Committed: https://crrev.com/3f51d6256864b298b15feb93a57c6d986474245a Cr-Commit-Position: refs/heads/master@{#382569}

Patch Set 1 #

Patch Set 2 : Remove pragmas #

Patch Set 3 : Add test for isNormalizedCanvasSpaceCharacter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/fonts/Character.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/CharacterTest.cpp View 1 2 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1825023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1825023002/1
4 years, 9 months ago (2016-03-22 12:05:18 UTC) #2
drott
4 years, 9 months ago (2016-03-22 12:08:06 UTC) #3
drott
Remove pragmas
4 years, 9 months ago (2016-03-22 12:09:34 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1825023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1825023002/20001
4 years, 9 months ago (2016-03-22 12:10:17 UTC) #6
drott
Add test for isNormalizedCanvasSpaceCharacter
4 years, 9 months ago (2016-03-22 12:18:45 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1825023002/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1825023002/2
4 years, 9 months ago (2016-03-22 12:19:10 UTC) #10
kojii
lgtm, great finding!
4 years, 9 months ago (2016-03-22 13:10:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1825023002/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1825023002/2
4 years, 9 months ago (2016-03-22 13:46:36 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:2)
4 years, 9 months ago (2016-03-22 14:32:48 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 14:34:53 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3f51d6256864b298b15feb93a57c6d986474245a
Cr-Commit-Position: refs/heads/master@{#382569}

Powered by Google App Engine
This is Rietveld 408576698