blob: d29a26944eb1be2f7b14ee8bf695af5526fff8a9 [file] [log] [blame]
Kevin Lubick486ee3d2018-03-21 10:17:25 -04001/*
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 Lubickec1c6202018-12-14 11:42:53 -05009#include "SkFontMgrPriv.h"
Mike Klein0cffcbf92019-03-20 11:08:46 -050010#include "TestFontMgr.h"
Kevin Lubick486ee3d2018-03-21 10:17:25 -040011
12void fuzz_RasterN32Canvas(Fuzz* f);
13
14extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
Kevin Lubickec1c6202018-12-14 11:42:53 -050015 gSkFontMgr_DefaultFactory = &sk_tool_utils::MakePortableFontMgr;
Kevin Lubick486ee3d2018-03-21 10:17:25 -040016 auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
17 fuzz_RasterN32Canvas(&fuzz);
18 return 0;
19}