diff options
author | Stephen White <senorblanco@chromium.org> | 2017-03-02 16:16:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-03 00:44:54 +0000 |
commit | 90732fd36e22cbf0699ab1d0f08eb7e247dda30b (patch) | |
tree | 51ede05a9e2e1086f09cc77b28487aaa2b024ed9 /src | |
parent | 373b53850373e953449c0c3c7b3151031560a57e (diff) |
GrTessellator: add a null-check for a clusterfuzz test case.
BUG=695696
Change-Id: I1c001316721b3c042cff115c905ff0d2c2698ac0
Reviewed-on: https://skia-review.googlesource.com/9053
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrTessellator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp index 609b10c89b..80a813f802 100644 --- a/src/gpu/GrTessellator.cpp +++ b/src/gpu/GrTessellator.cpp @@ -793,7 +793,7 @@ void insert_edge(Edge* edge, Edge* prev, EdgeList* edges) { } void find_enclosing_edges(Vertex* v, EdgeList* edges, Edge** left, Edge** right) { - if (v->fFirstEdgeAbove) { + if (v->fFirstEdgeAbove && v->fLastEdgeAbove) { *left = v->fFirstEdgeAbove->fLeft; *right = v->fLastEdgeAbove->fRight; return; |