Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(103)

Issue 110077: Limited precision in SkScan_Path.cpp edge_compare()

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 4 months ago by Stephen White
Modified:
16 years, 4 months ago
Reviewers:
reed
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Because this code is called with 14.18 fixed point values during antialiasing, using "valuea - valueb" as a comparison causes integer overflows for moderate values of valuea and valueb of opposite sign (eg., valuea = 8000.0f, valueb = -8000.0f). See http://crbug.com/18896, layout test LayoutTests/svg/carto.net/window.svg.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
src/core/SkScan_Path.cpp View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 1
Stephen White
16 years, 4 months ago (2009-08-24 22:21:41 UTC) #1

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b