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

Issue 189093020: Fix (1 << 31) to (1u << 31) in SkOTTable_OS_2. (Closed)

Created:
6 years, 9 months ago by bungeman-skia
Modified:
6 years, 9 months ago
Reviewers:
mtklein, Nico, bsalomon, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix (1 << 31) to (1u << 31) in SkOTTable_OS_2. When ints are 32 bits, (1 << 31) is undefined. R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=13757 Committed: https://code.google.com/p/skia/source/detail?r=13779

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Work around what appears to be a vc bug. #

Patch Set 5 : Pedantic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -567 lines) Patch
M include/core/SkTemplates.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M include/core/SkTypes.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/sfnt/SkOTTableTypes.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M src/sfnt/SkOTTable_OS_2_V0.h View 1 2 3 2 chunks +11 lines, -11 lines 0 comments Download
M src/sfnt/SkOTTable_OS_2_V1.h View 1 2 3 4 chunks +112 lines, -112 lines 0 comments Download
M src/sfnt/SkOTTable_OS_2_V2.h View 1 2 3 4 chunks +126 lines, -126 lines 0 comments Download
M src/sfnt/SkOTTable_OS_2_V3.h View 1 2 3 4 chunks +134 lines, -134 lines 0 comments Download
M src/sfnt/SkOTTable_OS_2_V4.h View 1 2 3 4 chunks +173 lines, -173 lines 0 comments Download
M src/sfnt/SkOTTable_OS_2_VA.h View 1 2 3 2 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bungeman-skia
I have opened skia:2285 for remaining cases.
6 years, 9 months ago (2014-03-10 23:13:05 UTC) #1
reed1
Why must we change *all* of the shifts, and not just the tricky ones? I ...
6 years, 9 months ago (2014-03-11 13:57:54 UTC) #2
bungeman-skia
On 2014/03/11 13:57:54, reed1 wrote: > Why must we change *all* of the shifts, and ...
6 years, 9 months ago (2014-03-11 15:50:54 UTC) #3
bungeman-skia
At PS3 here is a nice safe way to go about this which is clear ...
6 years, 9 months ago (2014-03-11 19:59:38 UTC) #4
reed1
lets also review this with klein when he's back. lgtm
6 years, 9 months ago (2014-03-11 20:01:40 UTC) #5
bungeman-skia
Committed patchset #3 manually as r13757.
6 years, 9 months ago (2014-03-12 03:14:23 UTC) #6
bungeman-skia
> Committed patchset #3 manually as r13757. Reverted r13758 due to odd vc++ behavior. typedef ...
6 years, 9 months ago (2014-03-12 05:36:03 UTC) #7
mtklein
Is there any way we can do this just big build-breaking warnings if things go ...
6 years, 9 months ago (2014-03-12 12:33:42 UTC) #8
bungeman-skia
On 2014/03/12 12:33:42, mtklein wrote: > Is there any way we can do this just ...
6 years, 9 months ago (2014-03-12 14:41:26 UTC) #9
bungeman-skia
I've opened https://connect.microsoft.com/VisualStudio/feedback/details/832915/ for what looks to be the vc++ bug which caused the Windows ...
6 years, 9 months ago (2014-03-12 20:15:31 UTC) #10
bungeman-skia
@reed: could you take a quick look at the SkTypes.h change I'm proposing to work ...
6 years, 9 months ago (2014-03-12 20:59:08 UTC) #11
reed1
adding Brian just in case, but lgtm
6 years, 9 months ago (2014-03-12 21:00:57 UTC) #12
bungeman-skia
Committed patchset #5 manually as r13779 (presubmit successful).
6 years, 9 months ago (2014-03-12 21:41:12 UTC) #13
Stephen White
On 2014/03/12 21:41:12, bungeman1 wrote: > Committed patchset #5 manually as r13779 (presubmit successful). Looks ...
6 years, 9 months ago (2014-03-12 21:53:16 UTC) #14
bungeman-skia
On 2014/03/12 21:53:16, Stephen White wrote: > On 2014/03/12 21:41:12, bungeman1 wrote: > > Committed ...
6 years, 9 months ago (2014-03-12 22:00:56 UTC) #15
bungeman-skia
6 years, 9 months ago (2014-03-13 17:36:16 UTC) #16
Message was sent while issue was closed.
On 2014/03/12 22:00:56, bungeman1 wrote:
> On 2014/03/12 21:53:16, Stephen White wrote:
> > On 2014/03/12 21:41:12, bungeman1 wrote:
> > > Committed patchset #5 manually as r13779 (presubmit successful).
> > 
> > Looks like this broke all the Linux builds. e.g.,
> > 
> >
>
http://108.170.217.252:10117/builders/Perf-Ubuntu12-ShuttleA-ATI5770-x86-Rele...
> 
> Should be fixed with r13781. With all the testing and mucking about, forgot
that
> the parens that were around the first cast are required to prevent a '>' in
the
> 'expr' from terminating the template type declaration. Of course, vc++ let
this
> slide.

Note that these extra parens were due to a bug in gcc, see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57771 . (How about that, two
compiler bugs, one for gcc and one for vc++, from one line of code.)

I am proposing that this be commented at
https://codereview.chromium.org/196473013/ .

Powered by Google App Engine
This is Rietveld 408576698