blob: 71e5a95d4bd795700124a028cf0684034c075a78 [file] [log] [blame]
Kevin Lubickdb1e5c62018-02-27 08:30:43 -05001/*
2 * Copyright 2018 Google, LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "fuzz/Fuzz.h"
Kevin Lubickdb1e5c62018-02-27 08:30:43 -05009
10void fuzz_DrawFunctions(Fuzz* f);
11
12extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
Zepeng Hu5b35f212020-06-14 19:03:34 +000013 if (size > 4000) {
14 return 0;
15 }
Kevin Lubickdb1e5c62018-02-27 08:30:43 -050016 auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
17 fuzz_DrawFunctions(&fuzz);
18 return 0;
19}