ba7cbf76d4
When manipulating svg file, the implementation of SkSVGCanvas will be used instead of the implementation of SkCanvas, so the api are tested against SkSVGCanvas. In addition, there are more api need to be covered in the function fuzz_canvas. As a result, the main changes are to add new DEF_FUZZ for SkSVGCanvas and to modify fuzz_canvas to increase the coverages of api. Change-Id: Iaf6114bb0e2929c73549ff398c3db5592e736ea2 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/298977 Commit-Queue: Zepeng Hu <zepenghu@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
17 lines
376 B
C++
17 lines
376 B
C++
/*
|
|
* 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"
|
|
|
|
void fuzz_SVGCanvas(Fuzz* f);
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|
auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
|
|
fuzz_SVGCanvas(&fuzz);
|
|
return 0;
|
|
}
|