Disallow negative radii in deserialized SkRRects
bug= chromium:787124
Change-Id: I232ccd6bdfc2c176f97b97e24eabad6a9ce8e5e2
Reviewed-on: https://skia-review.googlesource.com/73901
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/tests/RoundRectTest.cpp b/tests/RoundRectTest.cpp
index 2e31cf1..43a5143 100644
--- a/tests/RoundRectTest.cpp
+++ b/tests/RoundRectTest.cpp
@@ -786,6 +786,8 @@
test_read_rrect(reporter, rrect, false);
*innerRadius = SK_ScalarNaN;
test_read_rrect(reporter, rrect, false);
+ *innerRadius = -10.f;
+ test_read_rrect(reporter, rrect, false);
}
DEF_TEST(RoundRect, reporter) {