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

Issue 951403002: Fix assert in GPU path rendering found by fuzzer. (Closed)

Created:
5 years, 10 months ago by Stephen White
Modified:
5 years, 9 months ago
Reviewers:
bsalomon, egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix assert in GPU path rendering found by fuzzer. Without this check, running the fuzzer in GPU mode asserts with: ../../include/gpu/GrTypes.h:115: failed assertion "n >= 0" R=bsalomon@google.com

Patch Set 1 #

Patch Set 2 : Return MAX_POINTS_PER_CURVE when the distance is infinite #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M src/gpu/GrPathUtils.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
Stephen White
Brian: PTAL. Thanks!
5 years, 10 months ago (2015-02-24 17:59:40 UTC) #1
bsalomon
Greg, is this related to the bug you're looking at?
5 years, 10 months ago (2015-02-24 18:20:58 UTC) #3
egdaniel
yeah this is the same issue. The only real difference between this solution and mine, ...
5 years, 10 months ago (2015-02-24 18:26:07 UTC) #4
bsalomon
On 2015/02/24 18:26:07, egdaniel wrote: > yeah this is the same issue. The only real ...
5 years, 10 months ago (2015-02-24 18:51:36 UTC) #5
Stephen White
On 2015/02/24 18:26:07, egdaniel wrote: > yeah this is the same issue. The only real ...
5 years, 10 months ago (2015-02-24 18:51:36 UTC) #6
egdaniel
The bug that popped up for me was drawing a conic circle that was radius ...
5 years, 10 months ago (2015-02-24 19:00:04 UTC) #7
Stephen White
On 2015/02/24 19:00:04, egdaniel wrote: > The bug that popped up for me was drawing ...
5 years, 10 months ago (2015-02-24 19:01:40 UTC) #8
bsalomon
On 2015/02/24 19:01:40, Stephen White wrote: > On 2015/02/24 19:00:04, egdaniel wrote: > > The ...
5 years, 10 months ago (2015-02-24 19:18:14 UTC) #9
egdaniel
Ah yes forgot about that. Yeah it checked that the value we call CeilToInt on ...
5 years, 10 months ago (2015-02-24 19:29:24 UTC) #10
Stephen White
On 2015/02/24 19:29:24, egdaniel wrote: > Ah yes forgot about that. Yeah it checked that ...
5 years, 10 months ago (2015-02-24 19:30:01 UTC) #11
Stephen White
5 years, 9 months ago (2015-03-20 13:44:08 UTC) #12
On 2015/02/24 19:30:01, Stephen White wrote:
> On 2015/02/24 19:29:24, egdaniel wrote:
> > Ah yes forgot about that. Yeah it checked that the value we call CeilToInt
on
> is
> > less than max int. We can land mine instead (also improves the
DistanceToLine
> > function to reduce chance of getting inf in first place).
> 
> SGTM

This assert was fixed elsewhere; closing.

Powered by Google App Engine
This is Rietveld 408576698