Kevin Lubick | 486ee3d | 2018-03-21 10:17:25 -0400 | [diff] [blame] | 1 | /* |
| 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" |
Kevin Lubick | ec1c620 | 2018-12-14 11:42:53 -0500 | [diff] [blame] | 9 | #include "SkFontMgrPriv.h" |
Mike Klein | 0cffcbf9 | 2019-03-20 11:08:46 -0500 | [diff] [blame] | 10 | #include "TestFontMgr.h" |
Kevin Lubick | 486ee3d | 2018-03-21 10:17:25 -0400 | [diff] [blame] | 11 | |
| 12 | void fuzz_NullCanvas(Fuzz* f); |
| 13 | |
| 14 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
Kevin Lubick | ec1c620 | 2018-12-14 11:42:53 -0500 | [diff] [blame] | 15 | gSkFontMgr_DefaultFactory = &sk_tool_utils::MakePortableFontMgr; |
Kevin Lubick | 486ee3d | 2018-03-21 10:17:25 -0400 | [diff] [blame] | 16 | auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size)); |
| 17 | fuzz_NullCanvas(&fuzz); |
| 18 | return 0; |
| 19 | } |