Add DDL Fuzzer (#4202)

Co-authored-by: Zepeng Hu <zepenghu@google.com>
This commit is contained in:
werdnaH 2020-07-28 00:24:21 +00:00 committed by GitHub
parent 24b4bb32cb
commit 69869e098e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 1 deletions

View File

@ -117,6 +117,35 @@ test_app("animated_image_decode") {
]
}
test_app("api_create_ddl") {
include_dirs = [
"include",
"include/gpu",
]
sources = [
"fuzz/Fuzz.cpp",
"fuzz/FuzzCreateDDL.cpp",
"fuzz/FuzzCommon.cpp",
"fuzz/oss_fuzz/FuzzAPICreateDDL.cpp",
"tools/Resources.cpp",
"tools/UrlDataManager.cpp",
"tools/debugger/DebugCanvas.cpp",
"tools/debugger/DebugLayerManager.cpp",
"tools/debugger/DrawCommand.cpp",
"tools/debugger/JsonWriteBuffer.cpp",
"tools/fonts/TestFontMgr.cpp",
"tools/fonts/TestSVGTypeface.cpp",
"tools/fonts/TestTypeface.cpp",
]
deps = [
":experimental_svg_model",
":flags",
":gpu_tool_utils",
":skia",
"//third_party/libpng",
]
}
test_app("api_draw_functions") {
sources = [
"fuzz/Fuzz.cpp",

View File

@ -107,7 +107,7 @@ $SRC/depot_tools/ninja -C out/Fuzz region_deserialize region_set_path \
api_polyutils android_codec image_decode_incremental \
sksl2glsl sksl2spirv sksl2metal sksl2pipeline \
api_skdescriptor skdescriptor_deserialize\
svg_dom api_svg_canvas skruntimeeffect
svg_dom api_svg_canvas skruntimeeffect api_create_ddl
$SRC/depot_tools/ninja -C out/Fuzz_mem_constraints image_filter_deserialize \
api_raster_n32_canvas \
@ -221,3 +221,5 @@ cp ./canvas_seed_corpus.zip $OUT/api_svg_canvas_seed_corpus.zip
cp out/Fuzz/skruntimeeffect $OUT/skruntimeeffect
cp ./sksl_with_256_padding_seed_corpus.zip $OUT/skruntimeeffect_seed_corpus.zip
cp out/Fuzz/api_create_ddl $OUT/api_create_ddl