blob: 539e989f56fcc4c0e2e1f622f592ec1be3129a3d [file] [log] [blame]
Jonathan Metzman8264b312018-03-29 11:59:58 -07001/*
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
8#include "../Fuzz.h"
9
Kevin Lubick27d42192018-04-03 12:30:32 -040010void fuzz_MockGPUCanvas(Fuzz* f);
Jonathan Metzman8264b312018-03-29 11:59:58 -070011
12extern "C" {
13
14 // Set default LSAN options.
15 const char *__lsan_default_options() {
16 // Don't print the list of LSAN suppressions on every execution.
17 return "print_suppressions=0";
18 }
19
20 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
21 auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
Kevin Lubick27d42192018-04-03 12:30:32 -040022 fuzz_MockGPUCanvas(&fuzz);
Jonathan Metzman8264b312018-03-29 11:59:58 -070023 return 0;
24 }
25} // extern "C"