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 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "fuzz/Fuzz.h" |
| 9 | #include "src/core/SkFontMgrPriv.h" |
| 10 | #include "tools/fonts/TestFontMgr.h" |
Kevin Lubick | 486ee3d | 2018-03-21 10:17:25 -0400 | [diff] [blame] | 11 | |
| 12 | void fuzz_RasterN32Canvas(Fuzz* f); |
| 13 | |
| 14 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 15 | gSkFontMgr_DefaultFactory = &ToolUtils::MakePortableFontMgr; |
Kevin Lubick | 486ee3d | 2018-03-21 10:17:25 -0400 | [diff] [blame] | 16 | auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size)); |
| 17 | fuzz_RasterN32Canvas(&fuzz); |
| 18 | return 0; |
| 19 | } |