From 54f20e0df694d0428442827bd0534afd579682ce Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Thu, 11 Jan 2018 14:50:21 -0500 Subject: Fix invalid switch in FuzzCanvas Also tweak when we report OOM - AFL-fuzz is fine, but libfuzzer should abort, not exit. Bug: skia: Change-Id: Ic19277bbceec5e7c0ac966d6d9ac677bcfebcfae Reviewed-on: https://skia-review.googlesource.com/93201 Commit-Queue: Kevin Lubick Reviewed-by: Hal Canary --- fuzz/FuzzCommon.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fuzz/FuzzCommon.h') diff --git a/fuzz/FuzzCommon.h b/fuzz/FuzzCommon.h index a538280c8c..f0efc19a1a 100644 --- a/fuzz/FuzzCommon.h +++ b/fuzz/FuzzCommon.h @@ -65,6 +65,7 @@ static void fuzz_path(Fuzz* fuzz, SkPath* path, int maxOps) { path->close(); break; default: + SkASSERT(false); break; } } -- cgit v1.2.3