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" 9 #include "SkTestFontMgr.h" 10 #include "SkFontMgrPriv.h" 11 12 void fuzz_RasterN32Canvas(Fuzz* f); 13 LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)14extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { 15 gSkFontMgr_DefaultFactory = &sk_tool_utils::MakePortableFontMgr; 16 auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size)); 17 fuzz_RasterN32Canvas(&fuzz); 18 return 0; 19 } 20