aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-19 12:57:01 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-19 18:30:13 +0000
commit9cec1bc1a707b43e1c338c642b10f4ba9400d518 (patch)
treeba285a36a90822efd85e72e3d35d26935902fede /fuzz
parent07320e46c0064dc1fe876f4621e94cb9ad529f85 (diff)
check for crazy bounds from fuzzer
Bug: skia:7471 Change-Id: I1d6e2059a0c4f2b705d3b0fe2694f17b68c3ae5c Reviewed-on: https://skia-review.googlesource.com/97122 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/FuzzCanvas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fuzz/FuzzCanvas.cpp b/fuzz/FuzzCanvas.cpp
index 2e70024bd5..0334d85d36 100644
--- a/fuzz/FuzzCanvas.cpp
+++ b/fuzz/FuzzCanvas.cpp
@@ -1289,6 +1289,7 @@ static void fuzz_canvas(Fuzz* fuzz, SkCanvas* canvas, int depth = 9) {
canvas->drawOval(r, paint);
break;
}
+ case 28: break; // must have deleted this some time earlier
case 29: {
fuzz_paint(fuzz, &paint, depth - 1);
SkRRect rr;