2020-07-01 13:21:03 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2020 Google, LLC
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "fuzz/Fuzz.h"
|
2020-07-08 16:37:22 +00:00
|
|
|
#include "src/core/SkFontMgrPriv.h"
|
|
|
|
#include "tools/fonts/TestFontMgr.h"
|
2020-07-01 13:21:03 +00:00
|
|
|
|
|
|
|
void fuzz_SVGCanvas(Fuzz* f);
|
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
2020-07-08 16:37:22 +00:00
|
|
|
gSkFontMgr_DefaultFactory = &ToolUtils::MakePortableFontMgr;
|
2020-07-01 13:21:03 +00:00
|
|
|
auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
|
|
|
|
fuzz_SVGCanvas(&fuzz);
|
|
|
|
return 0;
|
|
|
|
}
|