aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/FuzzCommon.h
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2018-01-11 14:50:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-11 20:19:48 +0000
commit54f20e0df694d0428442827bd0534afd579682ce (patch)
tree660d22320935280819256ff6fc062f34134685a8 /fuzz/FuzzCommon.h
parent1f096ac6abf10dccae190b63f8a0474139f05983 (diff)
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 <kjlubick@google.com> Reviewed-by: Hal Canary <halcanary@google.com>
Diffstat (limited to 'fuzz/FuzzCommon.h')
-rw-r--r--fuzz/FuzzCommon.h1
1 files changed, 1 insertions, 0 deletions
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;
}
}