diff options
author | Mike Klein <mtklein@chromium.org> | 2017-09-08 15:00:25 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-08 19:56:38 +0000 |
commit | 1170a553be35920fe45d6a454a27d21167060977 (patch) | |
tree | d293631bb26ce038885723d75238c98658a62439 /include/private/SkPathRef.h | |
parent | 900cd05037739eac6fd7bb8611ac489bb5ad305e (diff) |
Don't allow iteration through non-finite points.
Added a unit test too.
BUG=chromium:756563
Change-Id: Ic77a89b4a98d1a553877af9807a3d3bdcd077bb9
Reviewed-on: https://skia-review.googlesource.com/44420
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'include/private/SkPathRef.h')
-rw-r--r-- | include/private/SkPathRef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/SkPathRef.h b/include/private/SkPathRef.h index 6d353089b0..aa01810890 100644 --- a/include/private/SkPathRef.h +++ b/include/private/SkPathRef.h @@ -124,6 +124,8 @@ public: /** Return the next verb in this iteration of the path. When all segments have been visited, return kDone_Verb. + If any point in the path is non-finite, return kDone_Verb immediately. + @param pts The points representing the current verb and/or segment This must not be NULL. @return The verb for the current segment |